robbie.dao.resource
クラス SimpleConnectionWrapper

java.lang.Object
  拡張robbie.dao.ConnectionWrapper
      拡張robbie.dao.resource.SimpleConnectionWrapper
すべての実装インタフェース:
java.sql.Connection, java.io.Serializable

public class SimpleConnectionWrapper
extends ConnectionWrapper

SimpleJdbcConnectionWrapperクラス。

DIコンテナ上でデータソース経由で使用するためcloseメソッドを 利用できないようにしています。

導入されたバージョン:
1.4
作成者:
Tadahiro Murakami
関連項目:
直列化された形式

フィールドの概要
protected  boolean isCommit
           
 
クラス robbie.dao.ConnectionWrapper から継承したフィールド
conn
 
インタフェース java.sql.Connection から継承したフィールド
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
コンストラクタの概要
SimpleConnectionWrapper(java.sql.Connection conn)
          Connectionインスタンスを指定してインスタンスを作成。
SimpleConnectionWrapper(java.sql.Connection conn, boolean isAutoCommit)
          Connectionインスタンス、オートコミットモードを指定してインスタンスを作成。
 
メソッドの概要
 void close()
          Connectionを閉じます。
 
クラス robbie.dao.ConnectionWrapper から継承したメソッド
clearWarnings, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

isCommit

protected boolean isCommit
コンストラクタの詳細

SimpleConnectionWrapper

public SimpleConnectionWrapper(java.sql.Connection conn)
Connectionインスタンスを指定してインスタンスを作成。

パラメータ:
conn - Connectionインスタンス

SimpleConnectionWrapper

public SimpleConnectionWrapper(java.sql.Connection conn,
                               boolean isAutoCommit)
Connectionインスタンス、オートコミットモードを指定してインスタンスを作成。

パラメータ:
conn - Connectionインスタンス
isAutoCommit - オートコミットモード
メソッドの詳細

close

public void close()
           throws java.sql.SQLException
Connectionを閉じます。

このメソッドはラップしているコネクションに対して何も行いません.

定義:
インタフェース java.sql.Connection 内の close
オーバーライド:
クラス ConnectionWrapper 内の close
例外:
java.sql.SQLException