org.objectweb.jonas.jdbc_xa.ConnectionImpl Class Reference

Collaboration diagram for org.objectweb.jonas.jdbc_xa.ConnectionImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Connection getConnection ()
void close () throws SQLException
void commit () throws SQLException
void rollback () throws SQLException
void setAutoCommit (boolean autoCommit) throws SQLException
boolean getAutoCommit () throws SQLException

Detailed Description

This class is a wrapper class on a standard java.sql.Connection class. Its goal is to prevent explicit close of a connection and transaction management (should be done via XAResource)
Author:
Philippe Durieux Contributor(s): oe Gittings/Dmitry Melekhov for Sybase pb.

Definition at line 44 of file ConnectionImpl.java.


Member Function Documentation

void org.objectweb.jonas.jdbc_xa.ConnectionImpl.close  )  throws SQLException
 

Trigger an event to the listener.

Definition at line 220 of file ConnectionImpl.java.

References org.objectweb.jonas.jdbc_xa.XAConnectionImpl.notifyClose().

Referenced by org.objectweb.jonas.dbm.Pool.openConnection().

Here is the call graph for this function:

void org.objectweb.jonas.jdbc_xa.ConnectionImpl.commit  )  throws SQLException
 

In a JDBC-XA driver, Connection.commit is only called if we are outside a global transaction.

Definition at line 278 of file ConnectionImpl.java.

References org.objectweb.jonas.jdbc_xa.XAConnectionImpl.notifyError().

Here is the call graph for this function:

boolean org.objectweb.jonas.jdbc_xa.ConnectionImpl.getAutoCommit  )  throws SQLException
 

In a JDBC-XA driver, autocommit is false if we are in a global Tx

Definition at line 355 of file ConnectionImpl.java.

References org.objectweb.jonas.jdbc_xa.XAConnectionImpl.notifyError().

Here is the call graph for this function:

Connection org.objectweb.jonas.jdbc_xa.ConnectionImpl.getConnection  ) 
 

Get the actual connection on database

Definition at line 75 of file ConnectionImpl.java.

void org.objectweb.jonas.jdbc_xa.ConnectionImpl.rollback  )  throws SQLException
 

In a JDBC-XA driver, Connection.rollback is only called if we are outside a global transaction.

Definition at line 294 of file ConnectionImpl.java.

References org.objectweb.jonas.jdbc_xa.XAConnectionImpl.notifyError().

Here is the call graph for this function:

void org.objectweb.jonas.jdbc_xa.ConnectionImpl.setAutoCommit boolean  autoCommit  )  throws SQLException
 

In a JDBC-XA driver, autocommit is false if we are in a global Tx

Definition at line 309 of file ConnectionImpl.java.

References org.objectweb.jonas.jdbc_xa.XAConnectionImpl.notifyError().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:57 2005 for JOnAS by  doxygen 1.3.9.1