|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.mapper.AbstractEntityMapper
public abstract class AbstractEntityMapper
エンティティマッパーや関連マッパーのための抽象クラスです。
| フィールドの概要 | |
|---|---|
protected java.lang.Class<?> |
entityClass
エンティティクラスです。 |
protected int[] |
idIndices
識別子のインデックスの配列です。 |
protected PropertyMapper[] |
propertyMappers
プロパティマッパーの配列です。 |
protected java.util.List<RelationshipEntityMapper> |
relationshipEntityMapperList
関連エンティティマッパーのリストです。 |
| コンストラクタの概要 | |
|---|---|
AbstractEntityMapper(java.lang.Class<?> entityClass,
PropertyMapper[] propertyMappers,
int[] idIndices)
AbstractEntityMapperを作成します。 |
|
| メソッドの概要 | |
|---|---|
void |
addRelationshipEntityMapper(RelationshipEntityMapper relationshipEntityMapper)
関連のエンティティマッパーを追加します。 |
protected java.lang.Object |
createEntity(java.lang.Object[] values,
MappingContext mappingContext,
java.lang.Object key)
エンティティを作成します。 |
protected java.lang.Object |
getEntity(java.lang.Object[] values,
MappingContext mappingContext,
java.lang.Object key)
エンティティを返します。。 |
java.lang.Class<?> |
getEntityClass()
エンティティクラスを返します。 |
int[] |
getIdIndices()
識別子のインデックスの配列を返します。 |
java.lang.Object |
getKey(java.lang.Object[] values)
キーを返します。 |
PropertyMapper[] |
getPropertyMappers()
プロパティマッパーの配列を返します。 |
RelationshipEntityMapper[] |
getRelationshipEntityMappers()
関連のエンティティマッパーの配列を返します。 |
protected void |
mapRelationships(java.lang.Object entity,
java.lang.Object[] values,
MappingContext mappingContext)
関連エンティティマッパーの処理を行ないます。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected java.lang.Class<?> entityClass
protected PropertyMapper[] propertyMappers
protected int[] idIndices
protected java.util.List<RelationshipEntityMapper> relationshipEntityMapperList
| コンストラクタの詳細 |
|---|
public AbstractEntityMapper(java.lang.Class<?> entityClass,
PropertyMapper[] propertyMappers,
int[] idIndices)
AbstractEntityMapperを作成します。
entityClass - エンティティクラスpropertyMappers - プロパティマッパーの配列idIndices - 識別子のインデックスの配列| メソッドの詳細 |
|---|
public java.lang.Object getKey(java.lang.Object[] values)
values - 結果セットの1行分のデータ
protected java.lang.Object getEntity(java.lang.Object[] values,
MappingContext mappingContext,
java.lang.Object key)
values - 結果セットの1行分のデータmappingContext - マッピングコンテキストkey - キー
protected java.lang.Object createEntity(java.lang.Object[] values,
MappingContext mappingContext,
java.lang.Object key)
values - 結果セットの1行分のデータmappingContext - マッピングコンテキストkey - キー
protected void mapRelationships(java.lang.Object entity,
java.lang.Object[] values,
MappingContext mappingContext)
entity - エンティティvalues - 結果セットの1行分のデータmappingContext - マッピングコンテキストpublic java.lang.Class<?> getEntityClass()
public int[] getIdIndices()
public PropertyMapper[] getPropertyMappers()
public RelationshipEntityMapper[] getRelationshipEntityMappers()
public void addRelationshipEntityMapper(RelationshipEntityMapper relationshipEntityMapper)
relationshipEntityMapper - 関連のエンティティマッパー
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||