Session#replicate(Object, ReplicationMode)
| Modifier and Type | Field 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 | |
| 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| public abstract boolean | shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType<T> versionType)
|
| public String |
| EXCEPTION | back to summary |
|---|---|
| public static final ReplicationMode EXCEPTION Throw an exception when a row already exists. | |
| IGNORE | back to summary |
|---|---|
| public static final ReplicationMode IGNORE Ignore replicated entities when a row already exists. | |
| INSTANCES | back to summary |
|---|---|
| private static final Map<K, V> INSTANCES | |
| LATEST_VERSION | back to summary |
|---|---|
| public static final ReplicationMode LATEST_VERSION When a row already exists, choose the latest version. | |
| name | back to summary |
|---|---|
| private final String name | |
| OVERWRITE | back to summary |
|---|---|
| public static final ReplicationMode OVERWRITE Overwrite existing rows when a row already exists. | |
| ReplicationMode | back to summary |
|---|---|
| public ReplicationMode(String name) | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| shouldOverwriteCurrentVersion | back to summary |
|---|---|
| public abstract boolean shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType<T> versionType) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |