Package com.ibm.di.connector
Interface ChangelogInterface
-
- All Known Implementing Classes:
ADChangelogConnectorv2,ChangeDetectionConnectorDelegate,DBChangelogConnector,DominoChangeDetectionConnector,IDSChangelogConnector,NetscapeChangelogConnector,ZOSChangelogConnector
public interface ChangelogInterfaceThe interface object which all ChangelogConnectors should implement.- See Also:
ChangelogConnector
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONN_PARAM_STATE_KEY_PERSISTENCEThe name of the parameter which value specifies the method, used for storing the StateKey.static java.lang.StringPARAM_MERGE_BOTH_NOT_MERGEDPossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter.static java.lang.StringPARAM_MERGE_CHANGELOG_AND_DATAPossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter.static java.lang.StringPARAM_MERGE_ONLY_CHANGED_DATAPossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter.static java.lang.StringPARAM_VAL_AFTER_READPossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter.static java.lang.StringPARAM_VAL_END_OF_CYCLEPossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter.static java.lang.StringPARAM_VAL_MANUALPossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter.static intSAVE_STATE_AFTER_READThis constant is usually used to specify that the StateKey should be persisted after each received entry.static intSAVE_STATE_END_OF_CYCLEThis constant is usually used to specify that the StatKey should be persisted after each AL cycle ends.static intSAVE_STATE_MANUALThis constant is usually used to specify that the StatKey persistence is not done automatically by the TDI Server.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetStateKeyObject()Retrieves state key.intgetStateKeySaveMethod()Retrieves the method for storing StateKey.voidsaveStateKey()Stores the USN values for the next synchronization.
-
-
-
Field Detail
-
CONN_PARAM_STATE_KEY_PERSISTENCE
static final java.lang.String CONN_PARAM_STATE_KEY_PERSISTENCE
The name of the parameter which value specifies the method, used for storing the StateKey.- See Also:
- Constant Field Values
-
PARAM_VAL_AFTER_READ
static final java.lang.String PARAM_VAL_AFTER_READ
PossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter. If that parameter have this value then thegetStateKeySaveMethod()will returnSAVE_STATE_AFTER_READ(0)- See Also:
- Constant Field Values
-
PARAM_VAL_END_OF_CYCLE
static final java.lang.String PARAM_VAL_END_OF_CYCLE
PossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter. If that parameter have this value then thegetStateKeySaveMethod()will returnSAVE_STATE_END_OF_CYCLE(1)- See Also:
- Constant Field Values
-
PARAM_VAL_MANUAL
static final java.lang.String PARAM_VAL_MANUAL
PossibleStringvalue of theCONN_PARAM_STATE_KEY_PERSISTENCEparameter. If that parameter have this value then thegetStateKeySaveMethod()will returnSAVE_STATE_MANUAL(2)- See Also:
- Constant Field Values
-
PARAM_MERGE_CHANGELOG_AND_DATA
static final java.lang.String PARAM_MERGE_CHANGELOG_AND_DATA
PossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter. If that parameter have this value then theChangelogConnector.defaultMergewill have a value oftrue.- See Also:
- Constant Field Values
-
PARAM_MERGE_ONLY_CHANGED_DATA
static final java.lang.String PARAM_MERGE_ONLY_CHANGED_DATA
PossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter. If that parameter have this value then theChangelogConnector.onlyChangeswill have a value oftrue.- See Also:
- Constant Field Values
-
PARAM_MERGE_BOTH_NOT_MERGED
static final java.lang.String PARAM_MERGE_BOTH_NOT_MERGED
PossibleStringvalue of theChangelogConnector.PARAM_MERGE_MODEparameter. If that parameter have this value then theChangelogConnector.bothSeparatedwill have a value oftrue.- See Also:
- Constant Field Values
-
SAVE_STATE_AFTER_READ
static final int SAVE_STATE_AFTER_READ
This constant is usually used to specify that the StateKey should be persisted after each received entry.- See Also:
- Constant Field Values
-
SAVE_STATE_END_OF_CYCLE
static final int SAVE_STATE_END_OF_CYCLE
This constant is usually used to specify that the StatKey should be persisted after each AL cycle ends.- See Also:
- Constant Field Values
-
SAVE_STATE_MANUAL
static final int SAVE_STATE_MANUAL
This constant is usually used to specify that the StatKey persistence is not done automatically by the TDI Server. The user is supposed to call thesaveStateKey()method in order to store the StateKey.- See Also:
- Constant Field Values
-
-
Method Detail
-
getStateKeySaveMethod
int getStateKeySaveMethod() throws java.lang.ExceptionRetrieves the method for storing StateKey.- Returns:
- the identifier of the method used for storing the StateKey in the TDI Store.
- Throws:
java.lang.Exception- - never- See Also:
SAVE_STATE_AFTER_READ,SAVE_STATE_END_OF_CYCLE,SAVE_STATE_MANUAL
-
saveStateKey
void saveStateKey() throws java.lang.ExceptionStores the USN values for the next synchronization. This method will skip the storing of the StateKey if the StateKey save method is set toSAVE_STATE_AFTER_READ- Throws:
java.lang.Exception- - never
-
getStateKeyObject
java.lang.Object getStateKeyObject() throws java.lang.ExceptionRetrieves state key.- Returns:
- the StateKey, wrapped in some kind of object.
- Throws:
java.lang.Exception- if an error occurs.
-
-