Top Description Fields Constructors Methods
org.hibernate

public abstract Class ReplicationMode

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.HashMap, .Map, org.hibernate.type.VersionType

Represents a replication strategy.
Author
Gavin King
See Also
Session#replicate(Object, ReplicationMode)

Field Summary

Modifier and TypeField and Description
public static final ReplicationMode
EXCEPTION

Throw an exception when a row already exists.

public static final ReplicationMode
IGNORE

Ignore replicated entities when a row already exists.

private static final Map<K, V>
public static final ReplicationMode
LATEST_VERSION

When a row already exists, choose the latest version.

private final String
public static final ReplicationMode
OVERWRITE

Overwrite existing rows when a row already exists.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Object
public abstract boolean
shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType<T> versionType)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

EXCEPTIONback to summary
public static final ReplicationMode EXCEPTION

Throw an exception when a row already exists.

IGNOREback to summary
public static final ReplicationMode IGNORE

Ignore replicated entities when a row already exists.

INSTANCESback to summary
private static final Map<K, V> INSTANCES
LATEST_VERSIONback to summary
public static final ReplicationMode LATEST_VERSION

When a row already exists, choose the latest version.

nameback to summary
private final String name
OVERWRITEback to summary
public static final ReplicationMode OVERWRITE

Overwrite existing rows when a row already exists.

Constructor Detail

ReplicationModeback to summary
public ReplicationMode(String name)

Method Detail

readResolveback to summary
private Object readResolve()
shouldOverwriteCurrentVersionback to summary
public abstract boolean shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType<T> versionType)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.