org.seasar.doma.jdbc
クラス DomaAbstractDao

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.DomaAbstractDao

public abstract class DomaAbstractDao
extends Object

Dao が注釈されたインタフェースの実装クラスのための骨格実装です。

作成者:
taedium

フィールドの概要
protected  Config config
          実行時用の設定です。
 
コンストラクタの概要
DomaAbstractDao(Config config)
          実行時用の設定を作成します。
DomaAbstractDao(Config config, DataSource dataSource)
          実行時用の設定を作成します。
 
メソッドの概要
protected  void entering(String callerClassName, String callerMethodName, Object... args)
          この Data Access Object の public なメソッドの実行開始を記録します。
protected  void exiting(String callerClassName, String callerMethodName, Object result)
          この Data Access Object の public なメソッドの実行終了を記録します。
protected  DataSource getDataSource()
          データソースを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

config

protected final Config config
実行時用の設定です。

コンストラクタの詳細

DomaAbstractDao

public DomaAbstractDao(Config config)
実行時用の設定を作成します。

パラメータ:
config - JDBCの設定
例外:
DomaNullPointerException - confignull の場合
ConfigException - config の メソッドのどれかが null を返す場合

DomaAbstractDao

public DomaAbstractDao(Config config,
                       DataSource dataSource)
実行時用の設定を作成します。

パラメータ:
config - JDBCの設定
dataSource - データソース
例外:
DomaNullPointerException - confignull の場合
ConfigException - config の メソッドのどれかが null を返す場合
メソッドの詳細

getDataSource

protected DataSource getDataSource()
データソースを返します。

戻り値:
データソース

entering

protected void entering(String callerClassName,
                        String callerMethodName,
                        Object... args)
この Data Access Object の public なメソッドの実行開始を記録します。

パラメータ:
callerClassName - クラス名前
callerMethodName - メソッド名
args - 引数

exiting

protected void exiting(String callerClassName,
                       String callerMethodName,
                       Object result)
この Data Access Object の public なメソッドの実行終了を記録します。

パラメータ:
callerClassName - クラス名
callerMethodName - メソッド名
result - 結果の値


Copyright © 2009 The Seasar Foundation. All Rights Reserved.