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