|
|||||||||||
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 java.lang.String |
PARAM_DETECT_ALL
Parameter name. |
static java.lang.String |
PARAM_DETECT_ATTRIBUTES
Parameter name. |
static java.lang.String |
PARAM_IGNORE_ATTRIBUTES
Parameter name. |
static java.lang.String |
PARAM_READ_COMMITTED
|
static java.lang.String |
PARAM_READ_UNCOMMITTED
|
static java.lang.String |
PARAM_REPEATABLE_READ
|
static java.lang.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. |
java.lang.String |
getStatisticsString()
This method is used to report different types of made changes. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object obj)
Called once to initialize the Delta Function Component. |
boolean |
isReadingDeleted()
Returns true if we are reading deleted entries at the moment |
boolean |
markEntryInDeltaStore(Entry work)
Marks an Entry in the Delta Store. |
Entry |
nextDeletedEntry(Entry work)
Return the next deleted entry. |
java.lang.Object |
perform(java.lang.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 java.lang.String PARAM_READ_UNCOMMITTED
public static final java.lang.String PARAM_READ_COMMITTED
public static final java.lang.String PARAM_REPEATABLE_READ
public static final java.lang.String PARAM_SERIALIZABLE
public static final java.lang.String PARAM_IGNORE_ATTRIBUTES
public static final java.lang.String PARAM_DETECT_ATTRIBUTES
public static final java.lang.String PARAM_DETECT_ALL
Constructor Detail |
---|
public DeltaFC()
Method Detail |
---|
public static ResourceHash getResHash()
public void initialize(java.lang.Object obj) throws java.lang.Exception
initialize
in interface FunctionInterface
initialize
in class Function
obj
- ignored
java.lang.Exception
- if an error occurspublic java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
obj
- Entry object
java.lang.Exception
- if the parameter is not an instance of the Entry
class, if the FC has not been initialized or if the method
failspublic Entry nextDeletedEntry(Entry work) throws java.lang.Exception
work
- the work entry to fill in
java.lang.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 Storepublic void rollbackDeltaState() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occursmarkEntryInDeltaStore(Entry)
public void saveDeltaState() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurspublic void commitOnEndIter() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurspublic void commitDeltaState() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurspublic void closeDelta() throws java.lang.Exception
java.lang.Exception
public java.lang.String getStatisticsString()
public java.lang.String getVersion()
public void terminate() throws java.lang.Exception
terminate
in interface FunctionInterface
terminate
in class Function
java.lang.Exception
- An exception is thrown if this method fails.public boolean isReadingDeleted()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |