| java.lang.Object org.ow2.easybeans.component.jdbcpool.JConnection
JConnection | public class JConnection implements Connection(Code) | | This class represent a connection linked to the physical and XA connections.
All errors are reported to the managed connection.
This connection is returned to the client.
author: Philippe Durieux author: Florent Benoit |
Constructor Summary | |
public | JConnection(JManagedConnection xaConnection, Connection physicalConnection) Buils a Connection (viewed by the user) which rely on a Managed
connection and a physical connection. |
Method Summary | |
public void | clearWarnings() | public void | close() Trigger an event to the listener. | public void | commit() In a JDBC-XA driver, Connection.commit is only called if we are outside a
global transaction. | public Statement | createStatement() | public Statement | createStatement(int resultSetType, int resultSetConcurrency) | public Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public boolean | getAutoCommit() In a JDBC-XA driver, autocommit is false if we are in a global Tx. | public String | getCatalog() | public Connection | getConnection() Gets the physical connection to the database. | public int | getHoldability() | public DatabaseMetaData | getMetaData() | public int | getTransactionIsolation() | public Map<String, Class<?>> | getTypeMap() | public SQLWarning | getWarnings() | public boolean | isClosed() | public boolean | isPhysicallyClosed() | public boolean | isReadOnly() | public String | nativeSQL(String sql) | public CallableStatement | prepareCall(String sql) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public PreparedStatement | prepareStatement(String sql, int[] columnIndexes) | public PreparedStatement | prepareStatement(String sql, String[] columnNames) | public void | releaseSavepoint(Savepoint savepoint) | public void | rollback() In a JDBC-XA driver, Connection.rollback is only called if we are outside
a global transaction. | public void | rollback(Savepoint savepoint) | public void | setAutoCommit(boolean autoCommit) In a JDBC-XA driver, autocommit is false if we are in a global Tx. | public void | setCatalog(String catalog) | public void | setHoldability(int holdability) | public void | setReadOnly(boolean readOnly) | public Savepoint | setSavepoint() | public java.sql.Savepoint | setSavepoint(String name) | public void | setTransactionIsolation(int level) | public void | setTypeMap(Map<String, Class<?>> map) |
JConnection | public JConnection(JManagedConnection xaConnection, Connection physicalConnection)(Code) | | Buils a Connection (viewed by the user) which rely on a Managed
connection and a physical connection.
Parameters: xaConnection - the XA connection. Parameters: physicalConnection - the connection to the database. |
commit | public void commit() throws SQLException(Code) | | In a JDBC-XA driver, Connection.commit is only called if we are outside a
global transaction.
|
createStatement | public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
getAutoCommit | public boolean getAutoCommit() throws SQLException(Code) | | In a JDBC-XA driver, autocommit is false if we are in a global Tx.
|
getConnection | public Connection getConnection()(Code) | | Gets the physical connection to the database.
physical connection to the database |
isPhysicallyClosed | public boolean isPhysicallyClosed() throws SQLException(Code) | | true if the connection to the database is closed or not. throws: SQLException - if a database access error occurs |
rollback | public void rollback() throws SQLException(Code) | | In a JDBC-XA driver, Connection.rollback is only called if we are outside
a global transaction.
|
setAutoCommit | public void setAutoCommit(boolean autoCommit) throws SQLException(Code) | | In a JDBC-XA driver, autocommit is false if we are in a global Tx.
|
setTransactionIsolation | public void setTransactionIsolation(int level) throws SQLException(Code) | | |
|
|