org.seasar.doma.jdbc.entity
クラス BuiltinEntityUtilDelegate

java.lang.Object
  上位を拡張 org.seasar.doma.jdbc.entity.BuiltinEntityUtilDelegate
すべての実装されたインタフェース:
EntityUtilDelegate

public class BuiltinEntityUtilDelegate
extends Object
implements EntityUtilDelegate

EntityUtilDelegate のデフォルトの実装です。

作成者:
taedium

コンストラクタの概要
BuiltinEntityUtilDelegate()
           
 
メソッドの概要
<D extends Domain<?,?>>
D
getDomain(Object entity, Class<D> domainClass, String propertyName)
          エンティティが保持するドメインをプロパティ名で返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

BuiltinEntityUtilDelegate

public BuiltinEntityUtilDelegate()
メソッドの詳細

getDomain

public <D extends Domain<?,?>> D getDomain(Object entity,
                                           Class<D> domainClass,
                                           String propertyName)
                                throws DomaNullPointerException,
                                       DomaIllegalArgumentException
インタフェース EntityUtilDelegate の記述:
エンティティが保持するドメインをプロパティ名で返します。

定義:
インタフェース EntityUtilDelegate 内の getDomain
型パラメータ:
D - ドメインの型
パラメータ:
entity - エンティティ
domainClass - ドメインのクラス
propertyName - プロパティ名
戻り値:
ドメイン、 ただしエンティティが propertyName に対応するプロパティを持たない場合 null 、 また、 プロパティのドメインのクラスが、 domainClass のサブタイプでない場合 null
例外:
DomaNullPointerException - 引数のいずれかが null の場合
DomaIllegalArgumentException - entity がエンティティでない場合


Copyright © 2009 The Seasar Foundation. All Rights Reserved.