tyrex.resource.jdbc.xa
public abstract class TyrexConnection extends Object implements Connection
Subclasses are to implement TyrexConnection, TyrexConnection, {@ #getUnderlyingConnection}.
Constructor Summary | |
---|---|
TyrexConnection() |
Method Summary | |
---|---|
void | clearWarnings() |
void | close()
Close this connection which may or may not close the
underlying connection. |
void | commit() |
Statement | createStatement() |
Statement | createStatement(int resultSetType, int resultSetConcurrency) |
Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
protected void | finalize()
Close the connection when it is being garbage collected. |
boolean | getAutoCommit() |
String | getCatalog() |
int | getHoldability() |
DatabaseMetaData | getMetaData() |
int | getTransactionIsolation() |
Map | getTypeMap() |
SQLWarning | getWarnings() |
protected abstract void | internalClose()
Method that actually closes the connection.
|
protected abstract Connection | internalGetUnderlyingConnection()
Return the underlying connection.
|
abstract boolean | isClosed()
Return true if the connection is closed.
|
boolean | isReadOnly() |
String | nativeSQL(String sql) |
protected void | notifyError(SQLException exception)
Called when an exception is thrown by the underlying connection.
|
CallableStatement | prepareCall(String sql) |
CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) |
CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
PreparedStatement | prepareStatement(String sql) |
PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) |
PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) |
PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) |
PreparedStatement | prepareStatement(String sql, int[] columnIndexes) |
PreparedStatement | prepareStatement(String sql, String[] columnNames) |
void | releaseSavepoint(Savepoint savepoint) |
void | rollback() |
void | rollback(Savepoint savepoint) |
void | setAutoCommit(boolean autoCommit) |
void | setCatalog(String catalog) |
void | setHoldability(int holdability) |
void | setReadOnly(boolean readOnly) |
Savepoint | setSavepoint() |
Savepoint | setSavepoint(String name) |
void | setTransactionIsolation(int level) |
void | setTypeMap(Map map) |
Throws: SQLException if there is a problem closing the connection
See Also: TyrexConnection
Throws: SQLException if there is a problem closing the connection
See Also: TyrexConnection
The connection is not closed ie TyrexConnection returns false.
Returns: the underlying connection
Throws: SQLException if the connection cannot be retrieved.
See Also: TyrexConnection
Returns: true if the connection is closed.
The default implementation is to do nothing
Parameters: except The exception thrown by the underlying connection