Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.jbo.server
Interface TransactionHandler

All Known Subinterfaces:
JTATransactionHandler
All Known Implementing Classes:
ContainerManagedTxnHandlerImpl, DefaultJTATxnHandlerImpl, DefaultTxnHandlerImpl, EJBTxnHandlerImpl, JTATxnHandlerImpl, ServiceJTATxnHandlerImpl, ServiceNonJTATxnHandlerImpl

public interface TransactionHandler

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.

Since:
JDeveloper 3.0
See Also:
DBTransactionImpl, DBTransaction

Method Summary
 void begin()
           
 void beginActivation()
           
 void beginPassivation()
           
 void endActivation()
           
 void endPassivation()
           
 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

begin

void begin()

handleOpen

void handleOpen(java.sql.Connection conn)
Initializes the transaction.


handleCommit

void handleCommit(java.sql.Connection c,
                  boolean autoStart)
Commits changes to the database.


handleRollback

void handleRollback(java.sql.Connection c,
                    boolean autoStart)
Discards changes to the database.


handleClose

void handleClose(java.sql.Connection c)
Terminates the transaction.


suspend

void suspend()

resume

void resume()

beginActivation

void beginActivation()

endActivation

void endActivation()

beginPassivation

void beginPassivation()

endPassivation

void endPassivation()

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.