|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.event.RemoteCommitEvent
public class RemoteCommitEvent
Event type 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. |
Constructor Summary | |
---|---|
RemoteCommitEvent()
Constructor used during externalization. |
|
RemoteCommitEvent(int payloadType,
Collection addIds,
Collection addClasses,
Collection updates,
Collection deletes)
Constructor. |
Method Summary | |
---|---|
Collection |
getDeletedObjectIds()
When the event type is not PAYLOAD_EXTENTS, return the set of object IDs for deleted objects. |
Collection |
getDeletedTypeNames()
When the event type is PAYLOAD_EXTENTS, return the set of class names for the classes of deleted objects. |
int |
getPayloadType()
The event PAYLOAD constant. |
Collection |
getPersistedObjectIds()
When the event type is PAYLOAD_OIDS_WITH_ADDS, return the set of object IDs for added objects. |
Collection |
getPersistedTypeNames()
For all event types, return the set of class names for the classes of inserted objects. |
Collection |
getUpdatedObjectIds()
When the event type is not PAYLOAD_EXTENTS, return the set of object IDs for updated objects. |
Collection |
getUpdatedTypeNames()
When the event type is PAYLOAD_EXTENTS, return the set of class names for the classes of 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 PAYLOAD_OIDS
public static final int PAYLOAD_OIDS_WITH_ADDS
public static final int PAYLOAD_EXTENTS
Constructor Detail |
---|
public RemoteCommitEvent()
public RemoteCommitEvent(int payloadType, Collection addIds, Collection addClasses, Collection updates, Collection deletes)
payloadType
- PAYLOAD constant for type of data in this eventaddIds
- set of object IDs for added instances, or nulladdClasses
- set of class names for added instancesupdates
- set of class names or object IDs for updated instancesdeletes
- set of class names or object IDs for deleted instancesMethod Detail |
---|
public int getPayloadType()
public Collection getPersistedObjectIds()
public Collection getUpdatedObjectIds()
public Collection getDeletedObjectIds()
public Collection getPersistedTypeNames()
public Collection getUpdatedTypeNames()
public Collection getDeletedTypeNames()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |