com.mysema.query.sql.dml
Class DefaultMapper

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

public class DefaultMapper
extends AbstractMapper<Object>

Creates the mapping by inspecting the RelationalPath and Object via reflection. 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 DefaultMapper DEFAULT
           
static DefaultMapper WITH_NULL_BINDINGS
           
 
Constructor Summary
DefaultMapper()
           
DefaultMapper(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 DefaultMapper DEFAULT

WITH_NULL_BINDINGS

public static final DefaultMapper WITH_NULL_BINDINGS
Constructor Detail

DefaultMapper

public DefaultMapper()

DefaultMapper

public DefaultMapper(boolean withNullBindings)
Method Detail

createMap

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


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