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

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

public class EntityMapperImpl
extends AbstractEntityMapper
implements EntityMapper

EntityMapperの実装クラスです。

作成者:
higa

フィールドの概要
 
クラス org.seasar.extension.jdbc.mapper.AbstractEntityMapper から継承されたフィールド
entityClass, idIndices, propertyMappers, relationshipEntityMapperList
 
コンストラクタの概要
EntityMapperImpl(Class<?> entityClass, PropertyMapper[] propertyMappers, int[] idIndices)
          EntityMapperImplを作成します。
 
メソッドの概要
 Object map(Object[] values, MappingContext mappingContext)
          結果セットの1行をエンティティにマッピングします。
 
クラス 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
 

コンストラクタの詳細

EntityMapperImpl

public EntityMapperImpl(Class<?> entityClass,
                        PropertyMapper[] propertyMappers,
                        int[] idIndices)
EntityMapperImplを作成します。

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

map

public Object map(Object[] values,
                  MappingContext mappingContext)
インタフェース EntityMapper の記述:
結果セットの1行をエンティティにマッピングします。

定義:
インタフェース EntityMapper 内の map
パラメータ:
values - 結果セットの1行分のデータ
mappingContext - マッピングコンテキスト
戻り値:
エンティティ


Copyright ? 2004-2008 The Seasar Foundation. All Rights Reserved.