|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by classes that customize transaction operations.
Applications that need to control a database transaction's lifecycle can implement this interface to provide a non-standard transaction handler for DBTransaction instances. TransactionHandler is called by the DBTransaction to support multiple platforms, such as EJB, LOCAL, VB (Visibroker), 8i (Oracle8i), and CORBA. Customizations to the transaction processing, if any, should be done by providing a subclass of DBTransactionImpl.
The TransactionHandler interface provides the abstraction for all these platforms. Application developers should never use the TransactionHandler interface directly.
DBTransactionImpl
, DBTransaction
Method Summary | |
void |
begin() |
void |
handleClose(java.sql.Connection c) Terminates the transaction. |
void |
handleCommit(java.sql.Connection c, boolean autoStart) Commits changes to the database. |
void |
handleOpen(java.sql.Connection conn) Initializes the transaction. |
void |
handleRollback(java.sql.Connection c, boolean autoStart) Discards changes to the database. |
void |
resume() |
void |
suspend() |
Method Detail |
public void begin()
public void handleOpen(java.sql.Connection conn)
public void handleCommit(java.sql.Connection c, boolean autoStart)
public void handleRollback(java.sql.Connection c, boolean autoStart)
public void handleClose(java.sql.Connection c)
public void suspend()
public void resume()
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.