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. |
| public static final ReplicationMode | LATEST_VERSION
When a row already exists, choose the latest version. |
| public static final ReplicationMode | OVERWRITE
Overwrite existing rows when a row already exists. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public abstract boolean | Returns: true indicates the data should be overwritten; false indicates it should not.The entity being replicated entity, Object The version currently on the target database table. currentVersion, Object The replicating version newVersion, VersionType<T> The version type versionType)Determine whether the mode dictates that the data being replicated should overwrite the data found. |
| public static ReplicationMode | |
| public static ReplicationMode[] |
| 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. | |
| LATEST_VERSION | back to summary |
|---|---|
| public static final ReplicationMode LATEST_VERSION When a row already exists, choose the latest version. | |
| OVERWRITE | back to summary |
|---|---|
| public static final ReplicationMode OVERWRITE Overwrite existing rows when a row already exists. | |
| ReplicationMode | back to summary |
|---|---|
| private ReplicationMode() | |
| shouldOverwriteCurrentVersion | back to summary |
|---|---|
| public abstract boolean shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType<T> versionType) Determine whether the mode dictates that the data being replicated should overwrite the data found.
| |
| valueOf | back to summary |
|---|---|
| public static ReplicationMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ReplicationMode[] values() | |