sf logo

sf.qof.customizer
Class DefaultCustomizer

java.lang.Object
  extended by sf.qof.customizer.DefaultCustomizer
All Implemented Interfaces:
Customizer

public class DefaultCustomizer
extends Object
implements Customizer

Provides the default implementation to customize the generation process.

See Also:
Customizer

Constructor Summary
DefaultCustomizer()
           
 
Method Summary
 String getClassName(Class<?> queryDefinitionClass)
          Customizes the class name of the generated query object.
 ConnectionFactoryCustomizer getConnectionFactoryCustomizer(Class<?> queryDefinitionClass)
          Customizes the implementation of getConnection() and setConnection() methods.
 org.objectweb.asm.Type getListType()
          Customizes the type of List implementations.
 org.objectweb.asm.Type getMapType()
          Customizes the type of Map implementations.
 org.objectweb.asm.Type getSetType()
          Customizes the type of Set implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCustomizer

public DefaultCustomizer()
Method Detail

getListType

public org.objectweb.asm.Type getListType()
Customizes the type of List implementations.

Specified by:
getListType in interface Customizer
Returns:
ArrayList type
See Also:
List

getMapType

public org.objectweb.asm.Type getMapType()
Customizes the type of Map implementations.

Specified by:
getMapType in interface Customizer
Returns:
HashMap type
See Also:
Map

getSetType

public org.objectweb.asm.Type getSetType()
Customizes the type of Set implementations.

Specified by:
getSetType in interface Customizer
Returns:
HashSet type
See Also:
Set

getClassName

public String getClassName(Class<?> queryDefinitionClass)
Customizes the class name of the generated query object.

Specified by:
getClassName in interface Customizer
Parameters:
queryDefinitionClass - query definition class or interface
Returns:
class name of the query definition class with "$Impl" appended
See Also:
Customizer.getClassName(Class)

getConnectionFactoryCustomizer

public ConnectionFactoryCustomizer getConnectionFactoryCustomizer(Class<?> queryDefinitionClass)
Customizes the implementation of getConnection() and setConnection() methods.

Specified by:
getConnectionFactoryCustomizer in interface Customizer
Parameters:
queryDefinitionClass - query definition class or interface
Returns:
a ConnectionFactoryCustomizer
See Also:
Customizer.getConnectionFactoryCustomizer(Class), ConnectionFactoryCustomizer

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.