|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.seasar.toplink.jpa.unit.TopLinkEntityReader
public class TopLinkEntityReader
TopLink Essentials用のEntityReader実装です。
フィールドの概要 | |
---|---|
protected DataSet |
dataSet
DataSetオブジェクト |
コンストラクタの概要 | |
---|---|
protected |
TopLinkEntityReader()
コンストラクタ |
|
TopLinkEntityReader(Object entity,
TopLinkEntityDesc topLinkEntityDesc)
コンストラクタ |
メソッドの概要 | |
---|---|
protected TopLinkEntityDesc |
getEntityDesc()
entityDescを返します。 |
protected DataRow |
getRow(Map<String,DataRow> rowMap,
DataTable table)
tableに紐づくDataRowがrowMapに存在していれば返し、無かった場合は新規作成してrowMapにセットして返します。 |
DataSet |
read()
|
protected void |
setAdditionalIdRow(Map<String,DataRow> rowMap,
oracle.toplink.essentials.internal.helper.DatabaseField field,
Object value)
継承戦略を使った子クラスのID値をDataRowにセットします。 |
protected void |
setupAttributeColumns()
entityDescからdataSetのカラム定義を生成します。 |
protected void |
setupColumns()
dataSetのカラム定義を生成します。 |
protected void |
setupDiscriminatorColumn()
entityDescからInheritancePolicyを取得し、継承関連のカラムをdataSetに定義します。 |
protected void |
setupRow(Object entity)
dataSetの行データを生成します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected final DataSet dataSet
コンストラクタの詳細 |
---|
protected TopLinkEntityReader()
public TopLinkEntityReader(Object entity, TopLinkEntityDesc topLinkEntityDesc)
entity
- 対象EntityオブジェクトtopLinkEntityDesc
- entityに対応するTopLinkEntityDescメソッドの詳細 |
---|
public DataSet read()
DataReader
内の read
DataReader.read()
protected void setupColumns()
protected void setupAttributeColumns()
protected void setupDiscriminatorColumn()
protected void setupRow(Object entity)
entity
- 対象Entityオブジェクトprotected DataRow getRow(Map<String,DataRow> rowMap, DataTable table)
rowMap
- テーブル名をキー、DataRowを値に持つMaptable
- DataTableオブジェクト
protected void setAdditionalIdRow(Map<String,DataRow> rowMap, oracle.toplink.essentials.internal.helper.DatabaseField field, Object value)
rowMap
- テーブル名をキー、DataRowを値に持つMapfield
- DatabaseFieldvalue
- ID値protected TopLinkEntityDesc getEntityDesc()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |