Skip to main content


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 KaracaFriend
Messages: 854
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 KaracaFriend
Messages: 854
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: Tue Apr 16 18:16:54 GMT 2024

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

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

Back to the top