|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.directory.sdk.sync.types.DatabaseChangeRecord
@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class DatabaseChangeRecord
This class represents the basis for a single database change record. A
JDBCSyncSource implementation should create instances of this
class based on changes detected in the database (either from a changelog
table or some other change tracking mechanism). The resync process will also
use instances of this class to identify database entries, which can then be
fetched using the fetchEntry()
method on the JDBCSyncSource
extension.
Nested Class Summary | |
---|---|
static class |
DatabaseChangeRecord.Builder
This class is used to construct DatabaseChangeRecord instances. |
static class |
DatabaseChangeRecord.ChangeType
Potential types of database changes. |
Method Summary | |
---|---|
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"). |
com.unboundid.ldap.sdk.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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public long getChangeNumber()
public DatabaseChangeRecord.ChangeType getChangeType()
public java.lang.String getTableName()
public com.unboundid.ldap.sdk.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 return
null
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |