|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.server.DefaultTxnHandlerImpl
public class DefaultTxnHandlerImpl
The default implementation of the TransactionHandler interface. DefaultTxnHandlerImpl provides transaction handling when running under non-EJB platforms. Hence the name "Default". Examples of non-EJB platforms are LOCAL, 8i (Oracle8i), CORBA, and VB (Visibroker). When running under a non-EJB platform, transactions are committed using the JDBC API. In contrast, when running under EJB, transactions are committed using the JTS API.
TransactionHandler
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Constructor Summary | |
---|---|
DefaultTxnHandlerImpl()
Creates a transaction handler on a JDBC connection. |
Method Summary | |
---|---|
void |
begin()
|
void |
beginActivation()
|
void |
beginPassivation()
|
void |
end()
|
void |
endActivation()
|
void |
endPassivation()
|
void |
handleClose(Connection conn)
Issues a close() command to the JDBC connection. |
void |
handleCommit(Connection conn,
boolean autoStart)
Issues a commit() command to the JDBC connection. |
void |
handleOpen(Connection conn)
Opens a transaction. |
void |
handleRollback(Connection conn,
boolean autoStart)
Issues a rollback() command to the JDBC connection. |
void |
resume()
|
void |
suspend()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
Constructor Detail |
---|
public DefaultTxnHandlerImpl()
Method Detail |
---|
public void begin()
begin
in interface TransactionHandler
public void end()
public void suspend()
suspend
in interface TransactionHandler
public void resume()
resume
in interface TransactionHandler
public void beginActivation()
beginActivation
in interface TransactionHandler
public void endActivation()
endActivation
in interface TransactionHandler
public void beginPassivation()
beginPassivation
in interface TransactionHandler
public void endPassivation()
endPassivation
in interface TransactionHandler
public void handleOpen(Connection conn)
handleOpen
in interface TransactionHandler
public void handleCommit(Connection conn, boolean autoStart)
handleCommit
in interface TransactionHandler
DMLException
- if an attempt to post to the database was unsuccessful.public void handleRollback(Connection conn, boolean autoStart)
handleRollback
in interface TransactionHandler
DMLException
- if an attempt to post to the database was unsuccessful.public void handleClose(Connection conn)
handleClose
in interface TransactionHandler
DMLException
- if an attempt to post to the database was unsuccessful.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |