|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectorg.seasar.extension.dbcp.impl.ConnectionWrapperImpl
ConnectionWrapperの実装クラスです。
| フィールドの概要 |
| インタフェース java.sql.Connection から継承したフィールド |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| コンストラクタの概要 | |
ConnectionWrapperImpl(javax.sql.XAConnection xaConnection,
java.sql.Connection physicalConnection,
ConnectionPool connectionPool,
Transaction tx)
ConnectionWrapperImplを作成します。 |
|
| メソッドの概要 | |
void |
cleanup()
クリーンアップします。 |
void |
clearWarnings()
|
void |
close()
|
void |
closeReally()
本当にクローズします。 |
void |
commit()
|
void |
connectionClosed(javax.sql.ConnectionEvent event)
|
void |
connectionErrorOccurred(javax.sql.ConnectionEvent event)
|
java.sql.Statement |
createStatement()
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
|
java.sql.Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
boolean |
getAutoCommit()
|
java.lang.String |
getCatalog()
|
int |
getHoldability()
|
java.sql.DatabaseMetaData |
getMetaData()
|
java.sql.Connection |
getPhysicalConnection()
物理的なコネクションを返します。 |
int |
getTransactionIsolation()
|
java.util.Map |
getTypeMap()
|
java.sql.SQLWarning |
getWarnings()
|
javax.sql.XAConnection |
getXAConnection()
XAコネクションを返します。 |
XAResource |
getXAResource()
XAリソースを返します。 |
void |
init(Transaction tx)
初期化します。 |
boolean |
isClosed()
|
boolean |
isReadOnly()
|
java.lang.String |
nativeSQL(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] columnIndexes)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
|
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
|
void |
release()
解放します。 |
void |
releaseSavepoint(java.sql.Savepoint savepoint)
|
void |
rollback()
|
void |
rollback(java.sql.Savepoint savepoint)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setCatalog(java.lang.String catalog)
|
void |
setHoldability(int holdability)
|
void |
setReadOnly(boolean readOnly)
|
java.sql.Savepoint |
setSavepoint()
|
java.sql.Savepoint |
setSavepoint(java.lang.String name)
|
void |
setTransactionIsolation(int level)
|
void |
setTypeMap(java.util.Map map)
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public ConnectionWrapperImpl(javax.sql.XAConnection xaConnection,
java.sql.Connection physicalConnection,
ConnectionPool connectionPool,
Transaction tx)
throws java.sql.SQLException
ConnectionWrapperImplを作成します。
xaConnection - XAコネクションphysicalConnection - 物理コネクションconnectionPool - コネクションプールtx - トランザクション
java.sql.SQLException - SQL例外が発生した場合| メソッドの詳細 |
public java.sql.Connection getPhysicalConnection()
ConnectionWrapper の記述:
ConnectionWrapper 内の getPhysicalConnectionpublic XAResource getXAResource()
ConnectionWrapper の記述:
ConnectionWrapper 内の getXAResourcepublic javax.sql.XAConnection getXAConnection()
ConnectionWrapper の記述:
ConnectionWrapper 内の getXAConnectionpublic void init(Transaction tx)
ConnectionWrapper の記述:
ConnectionWrapper 内の inittx - トランザクションpublic void cleanup()
ConnectionWrapper の記述:
ConnectionWrapper 内の cleanuppublic void closeReally()
ConnectionWrapper の記述: Connection.close()を呼び出すとプールに返るだけで実際にはクローズしません。
ConnectionWrapper 内の closeReally
public void release()
throws java.sql.SQLException
ConnectionWrapper の記述:
ConnectionWrapper 内の releasejava.sql.SQLException - SQL例外が発生した場合public void connectionClosed(javax.sql.ConnectionEvent event)
javax.sql.ConnectionEventListener 内の connectionClosedpublic void connectionErrorOccurred(javax.sql.ConnectionEvent event)
javax.sql.ConnectionEventListener 内の connectionErrorOccurred
public java.sql.Statement createStatement()
throws java.sql.SQLException
java.sql.Connection 内の createStatementjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
java.sql.Connection 内の prepareCalljava.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
java.sql.Connection 内の nativeSQLjava.sql.SQLException
public boolean isClosed()
throws java.sql.SQLException
java.sql.Connection 内の isClosedjava.sql.SQLException
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
java.sql.Connection 内の getMetaDatajava.sql.SQLException
public void setReadOnly(boolean readOnly)
throws java.sql.SQLException
java.sql.Connection 内の setReadOnlyjava.sql.SQLException
public boolean isReadOnly()
throws java.sql.SQLException
java.sql.Connection 内の isReadOnlyjava.sql.SQLException
public void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
java.sql.Connection 内の setCatalogjava.sql.SQLException
public java.lang.String getCatalog()
throws java.sql.SQLException
java.sql.Connection 内の getCatalogjava.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.Connection 内の closejava.sql.SQLException
public void setTransactionIsolation(int level)
throws java.sql.SQLException
java.sql.Connection 内の setTransactionIsolationjava.sql.SQLException
public int getTransactionIsolation()
throws java.sql.SQLException
java.sql.Connection 内の getTransactionIsolationjava.sql.SQLException
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
java.sql.Connection 内の getWarningsjava.sql.SQLException
public void clearWarnings()
throws java.sql.SQLException
java.sql.Connection 内の clearWarningsjava.sql.SQLException
public void commit()
throws java.sql.SQLException
java.sql.Connection 内の commitjava.sql.SQLException
public void rollback()
throws java.sql.SQLException
java.sql.Connection 内の rollbackjava.sql.SQLException
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
java.sql.Connection 内の setAutoCommitjava.sql.SQLException
public boolean getAutoCommit()
throws java.sql.SQLException
java.sql.Connection 内の getAutoCommitjava.sql.SQLException
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
java.sql.Connection 内の createStatementjava.sql.SQLException
public java.util.Map getTypeMap()
throws java.sql.SQLException
java.sql.Connection 内の getTypeMapjava.sql.SQLException
public void setTypeMap(java.util.Map map)
throws java.sql.SQLException
java.sql.Connection 内の setTypeMapjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
java.sql.Connection 内の prepareCalljava.sql.SQLException
public void setHoldability(int holdability)
throws java.sql.SQLException
java.sql.Connection 内の setHoldabilityjava.sql.SQLException
public int getHoldability()
throws java.sql.SQLException
java.sql.Connection 内の getHoldabilityjava.sql.SQLException
public java.sql.Savepoint setSavepoint()
throws java.sql.SQLException
java.sql.Connection 内の setSavepointjava.sql.SQLException
public java.sql.Savepoint setSavepoint(java.lang.String name)
throws java.sql.SQLException
java.sql.Connection 内の setSavepointjava.sql.SQLException
public void rollback(java.sql.Savepoint savepoint)
throws java.sql.SQLException
java.sql.Connection 内の rollbackjava.sql.SQLException
public void releaseSavepoint(java.sql.Savepoint savepoint)
throws java.sql.SQLException
java.sql.Connection 内の releaseSavepointjava.sql.SQLException
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
java.sql.Connection 内の createStatementjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
java.sql.Connection 内の prepareCalljava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
java.sql.Connection 内の prepareStatementjava.sql.SQLException
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||