org.apache.cayenne.remote
Class SyncMessage
java.lang.Object
org.apache.cayenne.remote.SyncMessage
- All Implemented Interfaces:
- java.io.Serializable, ClientMessage
public class SyncMessage
- extends java.lang.Object
- implements ClientMessage
A message used for synchronization of the child with parent. It defines a few types of
synchronization: "flush" (when the child sends its changes without a commit), "commit"
(cascading flush with ultimate commit to the database), and "rollback" - cascading
reverting of all uncommitted changes.
- Since:
- 1.2
- Author:
- Andrus Adamchik
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
source
protected transient ObjectContext source
type
protected int type
senderChanges
protected GraphDiff senderChanges
SyncMessage
public SyncMessage(ObjectContext source,
int syncType,
GraphDiff senderChanges)
getSource
public ObjectContext getSource()
- Returns a source of SyncMessage.
getType
public int getType()
getSenderChanges
public GraphDiff getSenderChanges()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001-2006 Apache.org All Rights Reserved.