com.mysema.query.sql.dml
Class AnnotationMapper

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

public class AnnotationMapper
extends Object
implements Mapper<Object>

Creates the mapping via @Column annotated fields in the object. Field names don't have to match those in the RelationalPath.

Author:
tiwe

Field Summary
static AnnotationMapper DEFAULT
           
static AnnotationMapper WITH_NULL_BINDINGS
           
 
Constructor Summary
AnnotationMapper()
           
AnnotationMapper(boolean withNullBindings)
           
 
Method Summary
 Map<Path<?>,Object> createMap(RelationalPath<?> path, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final AnnotationMapper DEFAULT

WITH_NULL_BINDINGS

public static final AnnotationMapper WITH_NULL_BINDINGS
Constructor Detail

AnnotationMapper

public AnnotationMapper()

AnnotationMapper

public AnnotationMapper(boolean withNullBindings)
Method Detail

createMap

public Map<Path<?>,Object> createMap(RelationalPath<?> path,
                                     Object object)
Specified by:
createMap in interface Mapper<Object>
Returns:


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