org.seasar.toplink.jpa.metadata
クラス TopLinkEntityDesc

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

public class TopLinkEntityDesc
extends Object
implements EntityDesc

TopLink Essentials用のEntityDesc実装です。

作成者:
Hidenoshin Yoshida

フィールドの概要
protected  Map<String,TopLinkAttributeDesc> attributeDescMap
          フィールド名をキー、TopLinkAttributeDescを値に持つMap
protected  TopLinkAttributeDesc[] attributeDescs
          このオブジェクトに関連するTopLinkAttributeDesc配列
protected  String[] attributeNames
          このオブジェクトに関連するTopLinkAttributeDesc名
protected  oracle.toplink.essentials.descriptors.ClassDescriptor classDescriptor
          ClassDescriptorオブジェクト
protected  TopLinkAttributeDesc idAttributeDesc
          このオブジェクトに関連するEntityクラスのIDフィールドを表すAttributeDesc
protected  oracle.toplink.essentials.threetier.ServerSession serverSession
          ServerSessionオブジェクト
protected  List<String> tableNames
          このオブジェクトに関連するEntityクラスがマッピングされているテーブル名のList
 
コンストラクタの概要
TopLinkEntityDesc(Class<?> entityClass, oracle.toplink.essentials.threetier.ServerSession serverSession)
          コンストラクタ。
 
メソッドの概要
 TopLinkAttributeDesc getAttributeDesc(String attributeName)
           
 TopLinkAttributeDesc[] getAttributeDescs()
           
 String[] getAttributeNames()
           
 Class<?> getEntityClass()
           
 String getEntityName()
           
 TopLinkAttributeDesc getIdAttributeDesc()
           
 oracle.toplink.essentials.descriptors.InheritancePolicy getInheritancePolicy()
          ClassDescriptorからInheritancePolicyを取得して返します。
 oracle.toplink.essentials.threetier.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 oracle.toplink.essentials.descriptors.ClassDescriptor classDescriptor
ClassDescriptorオブジェクト


serverSession

protected oracle.toplink.essentials.threetier.ServerSession serverSession
ServerSessionオブジェクト


attributeDescMap

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


attributeDescs

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


attributeNames

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


idAttributeDesc

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


tableNames

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

コンストラクタの詳細

TopLinkEntityDesc

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

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

getAttributeDesc

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

getAttributeDescs

public TopLinkAttributeDesc[] 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 TopLinkAttributeDesc getIdAttributeDesc()
定義:
インタフェース EntityDesc 内の getIdAttributeDesc
関連項目:
EntityDesc.getIdAttributeDesc()

getTableNames

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

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

getServerSession

public oracle.toplink.essentials.threetier.ServerSession getServerSession()
ServerSessionを返します。

戻り値:
ServerSession

hasDiscriminatorColumn

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

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

getInheritancePolicy

public oracle.toplink.essentials.descriptors.InheritancePolicy getInheritancePolicy()
ClassDescriptorからInheritancePolicyを取得して返します。

戻り値:
InheritancePolicy


Copyright © 2006-2008 The Seasar Foundation. All Rights Reserved.