|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoSessionTxnMgr
FarragoSessionTxnMgr defines the interface for transaction management across sessions. It is under development and currently only addresses table access, so it is likely to change drastically. In particular, it will be refined to allow different data wrappers to use different transaction managers; once that happens, most extensions will probably use a common implementation which knows how to coordinate two-phase commits across wrapper-level managers. Until then, transaction management is up to each extension. Another major change required is coordination with Fennel's notion of transactions.
Method Summary | |
---|---|
void |
accessTables(FarragoSessionTxnId txnId,
TableAccessMap tableAccessMap)
Notifies transaction manager that a collection of tables is about to be accessed. |
void |
addListener(FarragoSessionTxnListener listener)
Adds a listener for transaction events. |
FarragoSessionTxnId |
beginTxn(FarragoSession session)
Begins a new transaction. |
void |
endTxn(FarragoSessionTxnId txnId,
FarragoSessionTxnEnd endType)
Notifies transaction manager that a transaction is ending. |
void |
removeListener(FarragoSessionTxnListener listener)
Removes a listener for transaction events. |
Method Detail |
---|
void addListener(FarragoSessionTxnListener listener)
listener
- new listenervoid removeListener(FarragoSessionTxnListener listener)
listener
- listener to removeFarragoSessionTxnId beginTxn(FarragoSession session)
session
- session initiating the transaction
void accessTables(FarragoSessionTxnId txnId, TableAccessMap tableAccessMap)
txnId
- ID of accessing transactiontableAccessMap
- information about planned table accessesvoid endTxn(FarragoSessionTxnId txnId, FarragoSessionTxnEnd endType)
txnId
- ID of ending transactionendType
- how transaction is ending
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |