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
           
static BeanMapper WITH_NULL_BINDINGS
           
 
Constructor Summary
BeanMapper()
           
BeanMapper(boolean withNullBindings)
           
 
Method Summary
 Map<Path<?>,Object> createMap(RelationalPath<?> entity, Object bean)
           
 
Methods inherited from class com.mysema.query.sql.dml.AbstractMapper
getPathFields, isPrimaryKeyColumn
 
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

WITH_NULL_BINDINGS

public static final BeanMapper WITH_NULL_BINDINGS
Constructor Detail

BeanMapper

public BeanMapper()

BeanMapper

public BeanMapper(boolean withNullBindings)
Method Detail

createMap

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


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