|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.event.RemoteCommitEvent
Utility structure to hold the IDs of additions, updates, and deletes. This event type is also fully serializable for remote communication.
Field Summary | |
static int |
PAYLOAD_EXTENTS
Names of added, updated, and deleted classes only. |
static int |
PAYLOAD_OIDS
Names of added classes, upated, and deleted Object IDs. |
static int |
PAYLOAD_OIDS_WITH_ADDS
Names of added classes, added, upated, and deleted Object IDs. |
static int |
TYPE_EXTENT
|
static int |
TYPE_OBJECTS
|
static int |
TYPE_OBJECTS_W_ADDS
|
Constructor Summary | |
RemoteCommitEvent()
Constructor used during externalization. |
|
RemoteCommitEvent(Collection adds,
Collection updates,
Collection deletes)
|
|
RemoteCommitEvent(Collection adds,
Collection updates,
Collection deletes,
Collection addClasses,
Collection updateClasses,
Collection deleteClasses,
int payloadType)
Constructor. |
Method Summary | |
Collection |
getAddedClassNames()
For all event types, return the set of class names for the classes of inserted objects. |
Collection |
getAddedObjectIds()
When the event type is PAYLOAD_OIDS_WITH_ADDS, return the set of object IDs for added objects. |
Collection |
getDeletedClassNames()
When the event type is PAYLOAD_EXTENTS, return the set of class names for the classes of deleted objects. |
Collection |
getDeletedObjectIds()
When the event type is not PAYLOAD_EXTENTS, return the set of object IDs for deleted objects. |
int |
getPayloadType()
Return the event PAYLOAD constant for this RemoteCommitEvent. |
Collection |
getUpdatedClassNames()
When the event type is PAYLOAD_EXTENTS, return the set of class names for the classes of updated objects. |
Collection |
getUpdatedObjectIds()
When the event type is not PAYLOAD_EXTENTS, return the set of object IDs for updated objects. |
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_OBJECTS
public static final int TYPE_OBJECTS_W_ADDS
public static final int TYPE_EXTENT
public static final int PAYLOAD_OIDS
public static final int PAYLOAD_OIDS_WITH_ADDS
public static final int PAYLOAD_EXTENTS
Constructor Detail |
public RemoteCommitEvent()
public RemoteCommitEvent(Collection adds, Collection updates, Collection deletes)
public RemoteCommitEvent(Collection adds, Collection updates, Collection deletes, Collection addClasses, Collection updateClasses, Collection deleteClasses, int payloadType)
adds
- set of object IDs for added instancesupdates
- set of object IDs for updated instancesdeletes
- set of object IDs for deleted instancesaddClasses
- set of class names for added instancesupdateClasses
- set of class names for updated instancesdeleteClasses
- set of class names for deleted instancespayloadType
- PAYLOAD constant for type of data in this eventMethod Detail |
public int getPayloadType()
public Collection getAddedObjectIds()
public Collection getUpdatedObjectIds()
public Collection getDeletedObjectIds()
public Collection getAddedClassNames()
public Collection getUpdatedClassNames()
public Collection getDeletedClassNames()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |