sf logo

sf.qof.codegen
Class QueryObjectGenerator

java.lang.Object
  extended by sf.qof.codegen.QueryObjectGenerator

public class QueryObjectGenerator
extends Object

Internal - QueryObjectGenerator is the main generator class for query objects.


Field Summary
static int DEFAULT_BATCH_SIZE
          Default batch size used if not defined in query definition class.
static int DEFAULT_FETCH_SIZE
          Default fetch size used if not defined in query definition class.
 
Constructor Summary
QueryObjectGenerator(Customizer customizer, SQLDialect sqlDialect)
           
 
Method Summary
<T> Class<T>
create(Class<T> queryDefinitionClass, List<Mapper> mappers)
           
<T> Class<T>
create(Class<T> queryDefinitionClass, List<Mapper> mappers, Class<?> superClass)
           
 void emitGetField(net.sf.cglib.core.CodeEmitter co, String fieldName)
           
 void emitPutField(net.sf.cglib.core.CodeEmitter co, String fieldName)
           
static String getAdapterFieldName(Class<?> adapterClass)
           
 String getClassNameType()
           
 Customizer getCustomizer()
           
 boolean getImplementPaging()
           
 SQLDialect getSqlDialect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FETCH_SIZE

public static final int DEFAULT_FETCH_SIZE
Default fetch size used if not defined in query definition class.

See Also:
Constant Field Values

DEFAULT_BATCH_SIZE

public static final int DEFAULT_BATCH_SIZE
Default batch size used if not defined in query definition class.

See Also:
Constant Field Values
Constructor Detail

QueryObjectGenerator

public QueryObjectGenerator(Customizer customizer,
                            SQLDialect sqlDialect)
Method Detail

getSqlDialect

public SQLDialect getSqlDialect()

getImplementPaging

public boolean getImplementPaging()

getClassNameType

public String getClassNameType()

getCustomizer

public Customizer getCustomizer()

create

public <T> Class<T> create(Class<T> queryDefinitionClass,
                           List<Mapper> mappers)

create

public <T> Class<T> create(Class<T> queryDefinitionClass,
                           List<Mapper> mappers,
                           Class<?> superClass)

getAdapterFieldName

public static String getAdapterFieldName(Class<?> adapterClass)

emitGetField

public void emitGetField(net.sf.cglib.core.CodeEmitter co,
                         String fieldName)

emitPutField

public void emitPutField(net.sf.cglib.core.CodeEmitter co,
                         String fieldName)

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.