|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.ReplicationMode
Represents a replication strategy.
Session.replicate(Object, ReplicationMode)
,
Serialized FormField Summary | |
static ReplicationMode |
EXCEPTION
Throw an exception when a row already exists. |
static ReplicationMode |
IGNORE
Ignore replicated entities when a row already exists. |
static ReplicationMode |
LATEST_VERSION
When a row already exists, choose the latest version. |
static ReplicationMode |
OVERWRITE
Overwrite existing rows when a row already exists. |
Constructor Summary | |
ReplicationMode(int level,
String name)
|
Method Summary | |
abstract boolean |
shouldOverwriteCurrentVersion(Object entity,
Object currentVersion,
Object newVersion,
VersionType versionType)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ReplicationMode EXCEPTION
public static final ReplicationMode IGNORE
public static final ReplicationMode OVERWRITE
public static final ReplicationMode LATEST_VERSION
Constructor Detail |
public ReplicationMode(int level, String name)
Method Detail |
public String toString()
public abstract boolean shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType versionType)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |