org.seasar.doma.jdbc.domain
クラス DomainTypeFactory

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

public final class DomainTypeFactory
extends Object

DomainType のファクトリクラスです。

導入されたバージョン:
1.8.0
作成者:
taedium

コンストラクタの概要
DomainTypeFactory()
           
 
メソッドの概要
static
<V,D> DomainType<V,D>
getDomainType(Class<D> domainClass)
          推奨されていません。 getDomainType(Class, ClassHelper) を使ってください。
static
<V,D> DomainType<V,D>
getDomainType(Class<D> domainClass, ClassHelper classHelper)
          DomainType のインスタンスを生成します。
static
<V,D> DomainType<V,D>
getExternalDomainType(Class<D> domainClass)
          推奨されていません。 getExternalDomainType(Class, ClassHelper) を使ってください。
static
<V,D> DomainType<V,D>
getExternalDomainType(Class<D> domainClass, ClassHelper classHelper)
          DomainType のインスタンスを生成します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DomainTypeFactory

public DomainTypeFactory()
メソッドの詳細

getDomainType

@Deprecated
public static <V,D> DomainType<V,D> getDomainType(Class<D> domainClass)
推奨されていません。 getDomainType(Class, ClassHelper) を使ってください。

DomainType のインスタンスを生成します。

型パラメータ:
V - ドメインクラスが扱う値の型
D - ドメインクラスの型
パラメータ:
domainClass - ドメインクラス
戻り値:
DomainType のインスタンス
例外:
DomaNullPointerException - 引数が null の場合
DomaIllegalArgumentException - ドメインクラスに Domain もしくは EnumDomain が注釈されていない場合
DomainTypeNotFoundException - ドメインクラスに対応するメタクラスが見つからない場合

getDomainType

public static <V,D> DomainType<V,D> getDomainType(Class<D> domainClass,
                                                  ClassHelper classHelper)
DomainType のインスタンスを生成します。

型パラメータ:
V - ドメインクラスが扱う値の型
D - ドメインクラスの型
パラメータ:
domainClass - ドメインクラス
classHelper - クラスヘルパー
戻り値:
DomainType のインスタンス
例外:
DomaNullPointerException - 引数が null の場合
DomaIllegalArgumentException - ドメインクラスに Domain もしくは EnumDomain が注釈されていない場合
DomainTypeNotFoundException - ドメインクラスに対応するメタクラスが見つからない場合
導入されたバージョン:
1.27.0

getExternalDomainType

@Deprecated
public static <V,D> DomainType<V,D> getExternalDomainType(Class<D> domainClass)
推奨されていません。 getExternalDomainType(Class, ClassHelper) を使ってください。

DomainType のインスタンスを生成します。

型パラメータ:
V - ドメインクラスが扱う値の型
D - ドメインクラスの型
パラメータ:
domainClass - ドメインクラス
戻り値:
DomainType のインスタンス、存在しない場合 null
例外:
DomaNullPointerException - 引数が null の場合
導入されたバージョン:
1.25.0

getExternalDomainType

public static <V,D> DomainType<V,D> getExternalDomainType(Class<D> domainClass,
                                                          ClassHelper classHelper)
DomainType のインスタンスを生成します。

型パラメータ:
V - ドメインクラスが扱う値の型
D - ドメインクラスの型
パラメータ:
domainClass - ドメインクラス
classHelper - クラスヘルパー
戻り値:
DomainType のインスタンス、存在しない場合 null
例外:
DomaNullPointerException - 引数が null の場合
導入されたバージョン:
1.27.0


Copyright © 2009-2014 The Seasar Foundation. All Rights Reserved.