Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] ObjectCommitHistory get N last commits/items
[CDO] ObjectCommitHistory get N last commits/items [message #1008198] Mon, 11 February 2013 11:48 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 750
Registered: July 2009
Senior Member
Is there a way to tell the CDOObjectHistory to return the N last/latest commits?
Re: [CDO] ObjectCommitHistory get N last commits/items [message #1008213 is a reply to message #1008198] Mon, 11 February 2013 13:51 Go to previous message
Erdal Karaca is currently offline Erdal Karaca
Messages: 750
Registered: July 2009
Senior Member
OK, this will do the trick:

      CDOObjectHistory cdoObjectHistory = cdoObject.cdoHistory();
      cdoObjectHistory.setLoadCount(loadCount);


The loadCount option tells it to fetch N (=loadCount) elements.

Thanks, Eike!

Erdal Karaca wrote on Mon, 11 February 2013 12:48
Is there a way to tell the CDOObjectHistory to return the N last/latest commits?

Previous Topic:[EMF] ClassCastException: $Proxy cannot be cast...
Next Topic:uri fragments vs. ID's in serialized Non-Containment references
Goto Forum:
  


Current Time: Sat Oct 25 01:42:11 GMT 2014

Powered by FUDForum. Page generated in 0.01881 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software