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
           
 
Constructor Summary
DefaultMapper()
           
 
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 DefaultMapper DEFAULT
Constructor Detail

DefaultMapper

public DefaultMapper()
Method Detail

createMap

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


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