|
|||||||||||
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 java.lang.String |
TABLE_PREFIX
|
Constructor Summary | |
---|---|
DeltaStore(java.lang.String identifier,
boolean isRestarting)
|
|
DeltaStore(java.lang.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(java.lang.String key)
|
Entry |
findEntry(java.lang.String key)
|
byte[] |
findEntryBytesVerify(java.lang.String key)
|
Entry |
findEntryVerify(java.lang.String key)
|
Entry |
getNextDeletedEntry(boolean deleteEntry)
Returns the next deleted Entry. |
Entry |
getNextDeletedEntry(boolean deleteEntry,
java.util.Set<java.lang.String> keys)
Returns the next deleted Entry, given a Set of keys for unchanged Entries. |
Entry |
getStatistics()
|
java.lang.String |
getStatisticsString()
|
void |
insertEntry(java.lang.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(java.lang.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(java.lang.String key,
Entry entry)
|
void |
updateEntryBytes(java.lang.String key,
byte[] entryBytes)
|
void |
updateSequence(java.lang.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 java.lang.String TABLE_PREFIX
Constructor Detail |
---|
public DeltaStore(java.lang.String identifier, boolean isRestarting, Log logger, boolean removeDeleted) throws java.lang.Exception
java.lang.Exception
public DeltaStore(java.lang.String identifier, boolean isRestarting) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean setCommitMode(java.lang.String mode)
mode
- The intended behavior. Possible values are:
public void closeDelta() throws java.sql.SQLException
java.sql.SQLException
public void closeReusedStatements() throws java.sql.SQLException
java.sql.SQLException
public void updateSequence(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public void updateEntry(java.lang.String key, Entry entry) throws java.lang.Exception
java.lang.Exception
public void updateEntryBytes(java.lang.String key, byte[] entryBytes) throws java.lang.Exception
java.lang.Exception
public void insertEntry(java.lang.String key, Entry entry) throws java.lang.Exception
java.lang.Exception
public Entry findEntry(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public Entry findEntryVerify(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public byte[] findEntryBytesVerify(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public void deleteEntry(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public void selectDeletedEntries() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs or the given parameters are
not ResultSet constants indicating type and concurrencypublic Entry getNextDeletedEntry(boolean deleteEntry) throws java.lang.Exception
java.lang.Exception
public Entry getNextDeletedEntry(boolean deleteEntry, java.util.Set<java.lang.String> keys) throws java.lang.Exception
deleteEntry
- - If set, also delete the Entry from the deltaStorekeys
- - Should be null, or a Set containing keys for unchanged
entries
java.lang.Exception
public Entry getStatistics()
public java.lang.String getStatisticsString()
public void commit() throws java.sql.SQLException
java.sql.SQLException
- Thrown if an error occurspublic void rollback() 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 setAllowDuplicateDeltaKeys(boolean allowDuplicateDeltaKeys)
allowDuplicateDeltaKeys
- true
if duplicate delta keys are allowed
false
otherwisepublic void setRowLocking(int level) throws java.lang.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
java.sql.SQLException
- if a database access error occurs.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |