|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.fc.Function
com.ibm.di.fc.DeltaFC
public class DeltaFC
The Delta Function Component encapsulates the Delta functionality for tracking changes in an input source using underlying database for comparison.
The main logic of this component is reused by the
CSDeltaTaskComponent to maintain the Delta tab functionality for
connectors in Iterator mode.
| Field Summary | |
|---|---|
static String |
PARAM_DETECT_ALL
Parameter name. |
static String |
PARAM_DETECT_ATTRIBUTES
Parameter name. |
static String |
PARAM_IGNORE_ATTRIBUTES
Parameter name. |
static String |
PARAM_READ_COMMITTED
|
static String |
PARAM_READ_UNCOMMITTED
|
static String |
PARAM_REPEATABLE_READ
|
static String |
PARAM_SERIALIZABLE
|
TaskStatistics |
stats
This is the statistics object for the component |
| Fields inherited from class com.ibm.di.fc.Function |
|---|
logger |
| Constructor Summary | |
|---|---|
DeltaFC()
|
|
| Method Summary | |
|---|---|
void |
closeDelta()
Closes connection to the Delta Store. |
void |
commitDeltaState()
Commit the last transactions in Derby database |
void |
commitOnEndIter()
Commit if in commit mode "On end of AL cycle" |
static ResourceHash |
getResHash()
Used by the script 'deleteDelta' in the tdi.xml for this component. |
String |
getStatisticsString()
This method is used to report different types of made changes. |
String |
getVersion()
Version information. |
void |
initialize(Object obj)
Called once to initialize the Delta Function Component. |
boolean |
markEntryInDeltaStore(Entry work)
Marks an Entry in the Delta Store. |
Entry |
nextDeletedEntry(Entry work)
Return the next deleted entry. |
Object |
perform(Object obj)
This method accepts an object of type Entry and computes Delta changes based on the used underlying Delta Store table. |
void |
rollbackDeltaState()
Rollback the last transactions in Derby database |
void |
saveDeltaState()
Commit the last transactions in Derby database (alias for commitDeltaState) |
void |
terminate()
This method closes the internally used Delta Store. |
| Methods inherited from class com.ibm.di.fc.Function |
|---|
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, updateSchema, verifyInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public TaskStatistics stats
public static final String PARAM_READ_UNCOMMITTED
public static final String PARAM_READ_COMMITTED
public static final String PARAM_REPEATABLE_READ
public static final String PARAM_SERIALIZABLE
public static final String PARAM_IGNORE_ATTRIBUTES
public static final String PARAM_DETECT_ATTRIBUTES
public static final String PARAM_DETECT_ALL
| Constructor Detail |
|---|
public DeltaFC()
| Method Detail |
|---|
public static ResourceHash getResHash()
public void initialize(Object obj)
throws Exception
initialize in interface FunctionInterfaceinitialize in class Functionobj - ignored
Exception - if an error occurs
public Object perform(Object obj)
throws Exception
obj - Entry object
Exception - if the parameter is not an instance of the Entry
class, if the FC has not been initialized or if the method
fails
public Entry nextDeletedEntry(Entry work)
throws Exception
work - the work entry to fill in
Exception - if a problem occurspublic boolean markEntryInDeltaStore(Entry work)
MyComponent.rollbackDeltaState(); MyComponent.markEntryInDeltaStore(work); MyComponent.commitDeltaState();
work - The Entry that contains the key information
true if the Entry contained a meaningful key and
could be marked in the Delta Store
public void rollbackDeltaState()
throws SQLException
SQLException - Thrown if an error occursmarkEntryInDeltaStore(Entry)
public void saveDeltaState()
throws SQLException
SQLException - Thrown if an error occurs
public void commitOnEndIter()
throws SQLException
SQLException - Thrown if an error occurs
public void commitDeltaState()
throws SQLException
SQLException - Thrown if an error occurs
public void closeDelta()
throws Exception
Exceptionpublic String getStatisticsString()
public String getVersion()
public void terminate()
throws Exception
terminate in interface FunctionInterfaceterminate in class FunctionException - An exception is thrown if this method fails.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||