org.hsqldb
Interface TransactionManager
-
- All Known Implementing Classes:
- TransactionManager2PL, TransactionManagerMV2PL, TransactionManagerMVCC
public interface TransactionManagerManages rows involved in transactions- Since:
- 2.0.0
-
-
Field Summary
Fields Modifier and Type Field and Description static intACTION_DUPstatic intACTION_READstatic intACTION_REFstatic intLOCKSstatic intMVCCstatic intMVLOCKS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description RowActionaddDeleteAction(Session session, Table table, PersistentStore store, Row row, int[] colMap)voidaddInsertAction(Session session, Table table, PersistentStore store, Row row, int[] changedColumns)voidaddTransactionInfo(CachedObject object)store transaction info for a new row.voidbeginAction(Session session, Statement cs)add session to the end of queue when a transaction starts (depending on isolation mode)voidbeginActionResume(Session session)voidbeginTransaction(Session session)booleancanRead(Session session, PersistentStore store, long id, int mode)booleancanRead(Session session, PersistentStore store, Row row, int mode, int[] colMap)booleancommitTransaction(Session session)voidcompleteActions(Session session)longgetGlobalChangeTimestamp()longgetNextGlobalChangeTimestamp()intgetTransactionControl()booleanisMVCC()booleanisMVRows()booleanprepareCommitActions(Session session)voidremoveTransactionInfo(CachedObject object)remove the transaction infovoidremoveTransactionInfo(long id)voidrollback(Session session)voidrollbackAction(Session session)voidrollbackPartial(Session session, int start, long timestamp)voidrollbackSavepoint(Session session, int index)voidsetTransactionControl(Session session, int mode)voidsetTransactionInfo(PersistentStore store, CachedObject object)add transaction info to a row just loaded from the cache.
-
-
-
Field Detail
-
LOCKS
static final int LOCKS
- See Also:
- Constant Field Values
-
MVLOCKS
static final int MVLOCKS
- See Also:
- Constant Field Values
-
MVCC
static final int MVCC
- See Also:
- Constant Field Values
-
ACTION_READ
static final int ACTION_READ
- See Also:
- Constant Field Values
-
ACTION_DUP
static final int ACTION_DUP
- See Also:
- Constant Field Values
-
ACTION_REF
static final int ACTION_REF
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGlobalChangeTimestamp
long getGlobalChangeTimestamp()
-
getNextGlobalChangeTimestamp
long getNextGlobalChangeTimestamp()
-
addDeleteAction
RowAction addDeleteAction(Session session, Table table, PersistentStore store, Row row, int[] colMap)
-
addInsertAction
void addInsertAction(Session session, Table table, PersistentStore store, Row row, int[] changedColumns)
-
beginAction
void beginAction(Session session, Statement cs)
add session to the end of queue when a transaction starts (depending on isolation mode)
-
beginActionResume
void beginActionResume(Session session)
-
beginTransaction
void beginTransaction(Session session)
-
canRead
boolean canRead(Session session, PersistentStore store, Row row, int mode, int[] colMap)
-
canRead
boolean canRead(Session session, PersistentStore store, long id, int mode)
-
commitTransaction
boolean commitTransaction(Session session)
-
completeActions
void completeActions(Session session)
-
getTransactionControl
int getTransactionControl()
-
isMVRows
boolean isMVRows()
-
isMVCC
boolean isMVCC()
-
prepareCommitActions
boolean prepareCommitActions(Session session)
-
rollback
void rollback(Session session)
-
rollbackAction
void rollbackAction(Session session)
-
rollbackSavepoint
void rollbackSavepoint(Session session, int index)
-
rollbackPartial
void rollbackPartial(Session session, int start, long timestamp)
-
setTransactionControl
void setTransactionControl(Session session, int mode)
-
addTransactionInfo
void addTransactionInfo(CachedObject object)
store transaction info for a new row. called only for CACHED tables
-
setTransactionInfo
void setTransactionInfo(PersistentStore store, CachedObject object)
add transaction info to a row just loaded from the cache. called only for CACHED tables
-
removeTransactionInfo
void removeTransactionInfo(CachedObject object)
remove the transaction info
-
removeTransactionInfo
void removeTransactionInfo(long id)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG