|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.store.DeltaStore
public class DeltaStore
This class implements the functionality for creating and maintaining a single Delta Store table.
Note: For internal use only!
Field Summary | |
---|---|
static String |
TABLE_PREFIX
|
Constructor Summary | |
---|---|
DeltaStore(String identifier,
boolean isRestarting)
|
|
DeltaStore(String identifier,
boolean isRestarting,
Log logger,
boolean removeDeleted)
|
Method Summary | |
---|---|
void |
closeDelta()
|
void |
closeReusedStatements()
|
void |
commit()
Commit the last transactions. |
void |
commitOnEndIter()
Commit if in commit mode "On end of AL cycle". |
void |
deleteEntry(String key)
|
Entry |
findEntry(String key)
|
Entry |
findEntryVerify(String key)
|
Entry |
getNextDeletedEntry(boolean deleteEntry)
Returns the next deleted Entry. |
Entry |
getNextDeletedEntry(boolean deleteEntry,
Set<String> keys)
Returns the next deleted Entry, given a Set of keys for unchanged Entries. |
Entry |
getStatistics()
|
String |
getStatisticsString()
|
void |
insertEntry(String key,
Entry entry)
|
void |
rollback()
Rollback the last transactions. |
void |
selectDeletedEntries()
Selects the deleted entries from the Delta Store table. |
void |
setAllowDuplicateDeltaKeys(boolean allowDuplicateDeltaKeys)
Indicates whether the duplicate delta keys are allowed. |
boolean |
setCommitMode(String mode)
Set the commit behavior of Delta. |
void |
setRowLocking(int level)
This method sets the transaction isolation level used when working with the Delta Store. |
void |
updateEntry(String key,
Entry entry)
|
void |
updateSequence(String key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TABLE_PREFIX
Constructor Detail |
---|
public DeltaStore(String identifier, boolean isRestarting, Log logger, boolean removeDeleted) throws Exception
Exception
public DeltaStore(String identifier, boolean isRestarting) throws Exception
Exception
Method Detail |
---|
public boolean setCommitMode(String mode)
mode
- The intended behavior. Possible values are:
public void closeDelta() throws SQLException
SQLException
public void closeReusedStatements() throws SQLException
SQLException
public void updateSequence(String key) throws Exception
Exception
public void updateEntry(String key, Entry entry) throws Exception
Exception
public void insertEntry(String key, Entry entry) throws Exception
Exception
public Entry findEntry(String key) throws Exception
Exception
public Entry findEntryVerify(String key) throws Exception
Exception
public void deleteEntry(String key) throws Exception
Exception
public void selectDeletedEntries() throws Exception
Exception
- if a database access error occurs or the given parameters are
not ResultSet constants indicating type and concurrencypublic Entry getNextDeletedEntry(boolean deleteEntry) throws Exception
Exception
public Entry getNextDeletedEntry(boolean deleteEntry, Set<String> keys) throws Exception
deleteEntry
- - If set, also delete the Entry from the deltaStorekeys
- - Should be null, or a Set containing keys for unchanged
entries
Exception
public Entry getStatistics()
public String getStatisticsString()
public void commit() throws SQLException
SQLException
- Thrown if an error occurspublic void rollback() throws SQLException
SQLException
- Thrown if an error occurspublic void commitOnEndIter() throws SQLException
SQLException
- Thrown if an error occurspublic void setAllowDuplicateDeltaKeys(boolean allowDuplicateDeltaKeys)
allowDuplicateDeltaKeys
- true
if duplicate delta keys are allowed
false
otherwisepublic void setRowLocking(int level) throws Exception
The transaction level is set only if transactions and the specified level are supported by the underlying database.
level
- the integer value of the level as defined in the
Connection
SQLException
- if a database access error occurs.
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |