@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DatabaseChangeRecord extends java.lang.Object
fetchEntry()
method on the JDBCSyncSource
extension.Modifier and Type | Class and Description |
---|---|
static class |
DatabaseChangeRecord.Builder
This class is used to construct DatabaseChangeRecord instances.
|
static class |
DatabaseChangeRecord.ChangeType
Potential types of database changes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getChangedColumns()
Get the set of changed columns for this change entry.
|
long |
getChangeNumber()
Get the change number that identifies this particular change.
|
long |
getChangeTime()
Get the time at which the change occurred.
|
DatabaseChangeRecord.ChangeType |
getChangeType()
Get the change type (insert/update/delete/resync).
|
CompletionStatus |
getCompletionStatus()
Gets the completion status for this change.
|
java.lang.String |
getEntryType()
Get the database entry type that this change corresponds to (for example
"account" or "subscriber").
|
DN |
getIdentifiableInfo()
Get the DN that identifies the row that changed (for example
"accountID=123").
|
java.lang.String |
getModifier()
Get the database user that made the change.
|
java.lang.Object |
getProperty(java.lang.Object key)
Get the property value (if one exists) for the given key.
|
java.lang.String |
getTableName()
Get the database table on which the change occurred.
|
void |
setCompletionStatus(CompletionStatus status)
This method is used by the Sync Pipe to indicate if the completion status
of a synchronization operation.
|
java.lang.String |
toString() |
public long getChangeNumber()
public DatabaseChangeRecord.ChangeType getChangeType()
public java.lang.String getTableName()
public DN getIdentifiableInfo()
public java.lang.String getEntryType()
public java.lang.String[] getChangedColumns()
public java.lang.String getModifier()
public long getChangeTime()
public java.lang.Object getProperty(java.lang.Object key)
key
- the property key whose value to returnnull
if the key is null@InternalUseOnly public void setCompletionStatus(CompletionStatus status)
status
- the completion status for this DatabaseChangeRecordpublic CompletionStatus getCompletionStatus()
public java.lang.String toString()
toString
in class java.lang.Object