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