org.seasar.eclipselink.jpa.metadata
クラス EclipseLinkEntityDesc

java.lang.Object
  上位を拡張 org.seasar.eclipselink.jpa.metadata.EclipseLinkEntityDesc
すべての実装されたインタフェース:
EntityDesc

public class EclipseLinkEntityDesc
extends Object
implements EntityDesc

EclipseLink用のEntityDesc実装です。

作成者:
Hidenoshin Yoshida

フィールドの概要
protected  Map<String,EclipseLinkAttributeDesc> attributeDescMap
          フィールド名をキー、EclipseLinkAttributeDescを値に持つMap
protected  EclipseLinkAttributeDesc[] attributeDescs
          このオブジェクトに関連するEclipseLinkAttributeDesc配列
protected  String[] attributeNames
          このオブジェクトに関連するEclipseLinkAttributeDesc名
protected  ClassDescriptor classDescriptor
          ClassDescriptorオブジェクト
protected  EclipseLinkAttributeDesc idAttributeDesc
          このオブジェクトに関連するEntityクラスのIDフィールドを表すAttributeDesc
protected  ServerSession serverSession
          ServerSessionオブジェクト
protected  List<String> tableNames
          このオブジェクトに関連するEntityクラスがマッピングされているテーブル名のList
 
コンストラクタの概要
EclipseLinkEntityDesc(Class<?> entityClass, ServerSession serverSession)
          コンストラクタ。
 
メソッドの概要
 EclipseLinkAttributeDesc getAttributeDesc(String attributeName)
           
 EclipseLinkAttributeDesc[] getAttributeDescs()
           
 String[] getAttributeNames()
           
 Class<?> getEntityClass()
           
 String getEntityName()
           
 EclipseLinkAttributeDesc getIdAttributeDesc()
           
 InheritancePolicy getInheritancePolicy()
          ClassDescriptorからInheritancePolicyを取得して返します。
 ServerSession getServerSession()
          ServerSessionを返します。
 List<String> getTableNames()
          テーブル名一覧のListを返します。
 boolean hasDiscriminatorColumn()
          ClassDescriptorがInheritancePolicyを保持していた場合trueを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

classDescriptor

protected ClassDescriptor classDescriptor
ClassDescriptorオブジェクト


serverSession

protected ServerSession serverSession
ServerSessionオブジェクト


attributeDescMap

protected Map<String,EclipseLinkAttributeDesc> attributeDescMap
フィールド名をキー、EclipseLinkAttributeDescを値に持つMap


attributeDescs

protected EclipseLinkAttributeDesc[] attributeDescs
このオブジェクトに関連するEclipseLinkAttributeDesc配列


attributeNames

protected String[] attributeNames
このオブジェクトに関連するEclipseLinkAttributeDesc名


idAttributeDesc

protected EclipseLinkAttributeDesc idAttributeDesc
このオブジェクトに関連するEntityクラスのIDフィールドを表すAttributeDesc


tableNames

protected List<String> tableNames
このオブジェクトに関連するEntityクラスがマッピングされているテーブル名のList

コンストラクタの詳細

EclipseLinkEntityDesc

public EclipseLinkEntityDesc(Class<?> entityClass,
                             ServerSession serverSession)
コンストラクタ。 引数で渡されたentityClassの情報をserverSessionから取得してオブジェクトを生成します。

パラメータ:
entityClass - Entityクラスのクラスオブジェクト
serverSession - ServerSession
メソッドの詳細

getAttributeDesc

public EclipseLinkAttributeDesc getAttributeDesc(String attributeName)
定義:
インタフェース EntityDesc 内の getAttributeDesc
関連項目:
EntityDesc.getAttributeDesc(java.lang.String)

getAttributeDescs

public EclipseLinkAttributeDesc[] getAttributeDescs()
定義:
インタフェース EntityDesc 内の getAttributeDescs
関連項目:
EntityDesc.getAttributeDescs()

getAttributeNames

public String[] getAttributeNames()
定義:
インタフェース EntityDesc 内の getAttributeNames
関連項目:
EntityDesc.getAttributeNames()

getEntityClass

public Class<?> getEntityClass()
定義:
インタフェース EntityDesc 内の getEntityClass
関連項目:
EntityDesc.getEntityClass()

getEntityName

public String getEntityName()
定義:
インタフェース EntityDesc 内の getEntityName
関連項目:
EntityDesc.getEntityName()

getIdAttributeDesc

public EclipseLinkAttributeDesc getIdAttributeDesc()
定義:
インタフェース EntityDesc 内の getIdAttributeDesc
関連項目:
EntityDesc.getIdAttributeDesc()

getTableNames

public List<String> getTableNames()
テーブル名一覧のListを返します。

戻り値:
テーブル名一覧のList

getServerSession

public ServerSession getServerSession()
ServerSessionを返します。

戻り値:
ServerSession

hasDiscriminatorColumn

public boolean hasDiscriminatorColumn()
ClassDescriptorがInheritancePolicyを保持していた場合trueを返します。

戻り値:
ClassDescriptorがInheritancePolicyを保持していた場合true

getInheritancePolicy

public InheritancePolicy getInheritancePolicy()
ClassDescriptorからInheritancePolicyを取得して返します。

戻り値:
InheritancePolicy


Copyright © 2008 The Seasar Foundation. All Rights Reserved.