Interface IPersistenceEvent
public interface IPersistenceEvent
The persistence event groups the information on objects,
which were changed together (i.e. during one commit).
The event might contain one or more objects, empty events are not passed.
Depending on the storage support, the getRevision()
and
getPreviousRevision()
methods return null
or
useful value. If they return null
, then it is likely
that the storage has no way of grouping events and in such a case
only a single object is likely to be contained in the event.
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getCreated
IPObjectList getCreated()- Returns:
- Collection of unresolved
IPObject
s, which were created during the operation. The objects are not revisioned. Nevernull
.
-
getModified
IPObjectList getModified()- Returns:
- Collection of
IPObject
s, which were modified during the operation. The objects are not revisioned. Nevernull
.
-
getDeleted
IPObjectList getDeleted()- Returns:
- Collection of
IPObject
s, which were deleted during the operation. The objects are not revisioned. Nevernull
.
-
getRevision
String getRevision()- Returns:
- The identifier of the revision, which corresponds to
this event. Might be
null
if the underlying storage does not support revisions.Either none or both of this method and
getPreviousRevision()
returnnull
.
-
getPreviousRevision
String getPreviousRevision()- Returns:
- The identifier of the revision, which marks the state
just before this change occurred. Might be
null
if the underlying storage does not support revisions.Either none or both of this method and
getPreviousRevision()
returnnull
-