Package com.ibm.di.connector
Interface ChangelogInterface
-
- All Known Implementing Classes:
ADChangelogConnectorv2
,ChangeDetectionConnectorDelegate
,DBChangelogConnector
,DominoChangeDetectionConnector
,IDSChangelogConnector
,NetscapeChangelogConnector
,ZOSChangelogConnector
public interface ChangelogInterface
The interface object which all ChangelogConnectors should implement.- See Also:
ChangelogConnector
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONN_PARAM_STATE_KEY_PERSISTENCE
The name of the parameter which value specifies the method, used for storing the StateKey.static java.lang.String
PARAM_MERGE_BOTH_NOT_MERGED
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter.static java.lang.String
PARAM_MERGE_CHANGELOG_AND_DATA
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter.static java.lang.String
PARAM_MERGE_ONLY_CHANGED_DATA
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter.static java.lang.String
PARAM_VAL_AFTER_READ
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter.static java.lang.String
PARAM_VAL_END_OF_CYCLE
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter.static java.lang.String
PARAM_VAL_MANUAL
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter.static int
SAVE_STATE_AFTER_READ
This constant is usually used to specify that the StateKey should be persisted after each received entry.static int
SAVE_STATE_END_OF_CYCLE
This constant is usually used to specify that the StatKey should be persisted after each AL cycle ends.static int
SAVE_STATE_MANUAL
This 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.Object
getStateKeyObject()
Retrieves state key.int
getStateKeySaveMethod()
Retrieves the method for storing StateKey.void
saveStateKey()
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
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter. 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
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter. 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
PossibleString
value of theCONN_PARAM_STATE_KEY_PERSISTENCE
parameter. 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
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter. If that parameter have this value then theChangelogConnector.defaultMerge
will have a value oftrue
.- See Also:
- Constant Field Values
-
PARAM_MERGE_ONLY_CHANGED_DATA
static final java.lang.String PARAM_MERGE_ONLY_CHANGED_DATA
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter. If that parameter have this value then theChangelogConnector.onlyChanges
will have a value oftrue
.- See Also:
- Constant Field Values
-
PARAM_MERGE_BOTH_NOT_MERGED
static final java.lang.String PARAM_MERGE_BOTH_NOT_MERGED
PossibleString
value of theChangelogConnector.PARAM_MERGE_MODE
parameter. If that parameter have this value then theChangelogConnector.bothSeparated
will 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.Exception
Retrieves 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.Exception
Stores 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.Exception
Retrieves state key.- Returns:
- the StateKey, wrapped in some kind of object.
- Throws:
java.lang.Exception
- if an error occurs.
-
-