com.mysema.query.sql.dml
Class BeanMapper

java.lang.Object
  extended by com.mysema.query.sql.dml.AbstractMapper<Object>
      extended by com.mysema.query.sql.dml.BeanMapper
All Implemented Interfaces:
Mapper<Object>

public class BeanMapper
extends AbstractMapper<Object>

Creates the mapping by inspecting the RelationalPath via reflection and object via bean inspection. Given bean doesn't need to have @Column metadata, but the fields need to have the same name as in the given relational path.

Author:
tiwe

Field Summary
static BeanMapper DEFAULT
           
 
Constructor Summary
BeanMapper()
           
 
Method Summary
 Map<Path<?>,Object> createMap(RelationalPath<?> entity, Object bean)
           
 
Methods inherited from class com.mysema.query.sql.dml.AbstractMapper
getPathFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final BeanMapper DEFAULT
Constructor Detail

BeanMapper

public BeanMapper()
Method Detail

createMap

public Map<Path<?>,Object> createMap(RelationalPath<?> entity,
                                     Object bean)
Returns:


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.