org.seasar.extension.jdbc.mapper
クラス OneToManyEntityMapperImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.mapper.AbstractEntityMapper
      上位を拡張 org.seasar.extension.jdbc.mapper.AbstractRelationshipEntityMapper
          上位を拡張 org.seasar.extension.jdbc.mapper.OneToManyEntityMapperImpl
すべての実装されたインタフェース:
RelationshipEntityMapper

public class OneToManyEntityMapperImpl
extends AbstractRelationshipEntityMapper

一対多関連のエンティティマッパーです。

作成者:
higa

フィールドの概要
 
クラス org.seasar.extension.jdbc.mapper.AbstractRelationshipEntityMapper から継承されたフィールド
field, inverseField
 
クラス org.seasar.extension.jdbc.mapper.AbstractEntityMapper から継承されたフィールド
entityClass, idIndices, propertyMappers, relationshipEntityMapperList
 
コンストラクタの概要
OneToManyEntityMapperImpl(java.lang.Class<?> entityClass, PropertyMapper[] propertyMappers, int[] idIndices, java.lang.reflect.Field field, java.lang.reflect.Field inverseField)
          OneToManyEntityMapperImplを作成します。
 
メソッドの概要
protected  void mapRelationship(java.lang.Object target, java.lang.Object entity)
          関連をマッピングします。
 
クラス org.seasar.extension.jdbc.mapper.AbstractRelationshipEntityMapper から継承されたメソッド
contains, getField, getInverseField, map
 
クラス 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
 

コンストラクタの詳細

OneToManyEntityMapperImpl

public OneToManyEntityMapperImpl(java.lang.Class<?> entityClass,
                                 PropertyMapper[] propertyMappers,
                                 int[] idIndices,
                                 java.lang.reflect.Field field,
                                 java.lang.reflect.Field inverseField)
OneToManyEntityMapperImplを作成します。

パラメータ:
entityClass - エンティティクラス
propertyMappers - プロパティマッパーの配列
idIndices - 識別子のインデックスの配列
field - 関連エンティティのフィールド
inverseField - 逆側の関連エンティティのフィールド
メソッドの詳細

mapRelationship

protected void mapRelationship(java.lang.Object target,
                               java.lang.Object entity)
クラス AbstractRelationshipEntityMapper の記述:
関連をマッピングします。

定義:
クラス AbstractRelationshipEntityMapper 内の mapRelationship
パラメータ:
target - 関連元のエンティティ
entity - エンティティ


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.