|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This module is intended to be used only within the RawStore. RawStore functionality is accessed only through the RawStoreFactory interface. The transaction manager is responsible for:
RawStoreFactory
,
Transaction
Field Summary | |
static java.lang.String |
MODULE
|
Method Summary | |
void |
createFinished()
Database creation finished |
boolean |
findTransaction(TransactionId id,
RawTransaction tran)
Find a transaction using a transactionId and make the passed in transaction assume the identity and properties of that transaction. |
RawTransaction |
findUserTransaction(RawStoreFactory rsf,
ContextManager contextMgr,
java.lang.String transName)
Find a user transaction within the given raw store and the given contextMgr. |
LogInstant |
firstUpdateInstant()
The first log instant that belongs to a transaction that is still active in the raw store. |
LockFactory |
getLockFactory()
Get the LockFactory to use with this store. |
TransactionInfo[] |
getTransactionInfo()
|
Formatable |
getTransactionTable()
Return the transaction table so it can get logged with the checkpoint log record. |
java.lang.Object |
getXAResourceManager()
|
void |
handlePreparedXacts(RawStoreFactory rsf)
Run through all prepared transactions known to this factory and restore their state such that they remain after recovery, and can be found and handled by a XA transaction manager. |
boolean |
noActiveUpdateTransaction()
Returns true if the transaction factory has no active updating transaction |
void |
resetTranId()
Reset any resettable transaction Id |
void |
rollbackAllTransactions(RawTransaction recoveryTransaction,
RawStoreFactory rsf)
Rollback and close all transactions known to this factory using a passed in transaction. |
void |
setRawStoreFactory(RawStoreFactory rsf)
make Transaction factory aware of which raw store factory it belongs to |
RawTransaction |
startGlobalTransaction(RawStoreFactory rsf,
ContextManager contextMgr,
int format_id,
byte[] global_id,
byte[] branch_id)
Start a new transaction within the given raw store. |
RawTransaction |
startInternalTransaction(RawStoreFactory rsf,
ContextManager contextMgr)
Start a new internal transaction within the given raw store. |
RawTransaction |
startNestedReadOnlyUserTransaction(RawStoreFactory rsf,
java.lang.Object compatibilitySpace,
ContextManager contextMgr,
java.lang.String transName)
Start a new read only transaction within the given raw store. |
RawTransaction |
startNestedTopTransaction(RawStoreFactory rsf,
ContextManager contextMgr)
Start a new nested top transaction within the given raw store. |
RawTransaction |
startNestedUpdateUserTransaction(RawStoreFactory rsf,
ContextManager contextMgr,
java.lang.String transName)
Start a new update transaction within the given raw store. |
RawTransaction |
startTransaction(RawStoreFactory rsf,
ContextManager contextMgr,
java.lang.String transName)
Start a new transaction within the given raw store. |
boolean |
submitPostCommitWork(Serviceable work)
Submit a post commit work to the post commit daemon. |
void |
useTransactionTable(Formatable transactionTable)
Use this transaction table, which is gotten from a checkpoint operation. |
Methods inherited from interface org.apache.derby.iapi.store.raw.Corruptable |
markCorrupt |
Field Detail |
public static final java.lang.String MODULE
Method Detail |
public LockFactory getLockFactory()
public java.lang.Object getXAResourceManager() throws StandardException
StandardException
public RawTransaction startTransaction(RawStoreFactory rsf, ContextManager contextMgr, java.lang.String transName) throws StandardException
contextMgr
- is the context manager to use. It must be the current
context manager.transName
- is the transaction name. It will be displayed in the
transactiontable VTI.
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startTransaction(org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
public RawTransaction startNestedReadOnlyUserTransaction(RawStoreFactory rsf, java.lang.Object compatibilitySpace, ContextManager contextMgr, java.lang.String transName) throws StandardException
compatibilitySpace
- compatibility space to use for locks.contextMgr
- is the context manager to use. It must be
the current context manager.transName
- is the transaction name. It will be
displayed in the transactiontable VTI.
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startNestedReadOnlyUserTransaction(java.lang.Object, org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
public RawTransaction startNestedUpdateUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, java.lang.String transName) throws StandardException
contextMgr
- is the context manager to use. It must be
the current context manager.transName
- is the transaction name. It will be
displayed in the transactiontable VTI.
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startNestedUpdateUserTransaction(org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
public RawTransaction startGlobalTransaction(RawStoreFactory rsf, ContextManager contextMgr, int format_id, byte[] global_id, byte[] branch_id) throws StandardException
format_id
- the format id part of the Xid - ie. Xid.getFormatId().global_id
- the global transaction identifier part of XID - ie.
Xid.getGlobalTransactionId().branch_id
- The branch qualifier of the Xid - ie.
Xid.getBranchQaulifier()contextMgr
- is the context manager to use. It must be the current
context manager.
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startGlobalTransaction(org.apache.derby.iapi.services.context.ContextManager, int, byte[], byte[])
public RawTransaction findUserTransaction(RawStoreFactory rsf, ContextManager contextMgr, java.lang.String transName) throws StandardException
StandardException
- Standard Cloudscape error policy.RawStoreFactory.findUserTransaction(org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
,
RawStoreFactory.startTransaction(org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
public RawTransaction startNestedTopTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startTransaction(ContextManager, String)
public RawTransaction startInternalTransaction(RawStoreFactory rsf, ContextManager contextMgr) throws StandardException
StandardException
- Standard Cloudscape error policy.RawStoreFactory.startTransaction(org.apache.derby.iapi.services.context.ContextManager, java.lang.String)
public boolean findTransaction(TransactionId id, RawTransaction tran)
public void resetTranId() throws StandardException
StandardException
- Standard Cloudscape error policy.public LogInstant firstUpdateInstant()
public void handlePreparedXacts(RawStoreFactory rsf) throws StandardException
StandardException
- Cloudscape Standard Error policypublic void rollbackAllTransactions(RawTransaction recoveryTransaction, RawStoreFactory rsf) throws StandardException
recoveryTransaction
- the transaction used to rollback
StandardException
- Cloudscape Standard Error policypublic boolean submitPostCommitWork(Serviceable work)
public void setRawStoreFactory(RawStoreFactory rsf) throws StandardException
StandardException
public boolean noActiveUpdateTransaction()
public void createFinished() throws StandardException
StandardException
- Standard cloudscape exception policy.public Formatable getTransactionTable()
public void useTransactionTable(Formatable transactionTable) throws StandardException
StandardException
- Standard cloudscape exception policy.public TransactionInfo[] getTransactionInfo()
AccessFactory.getTransactionInfo()
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |