|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsf.qof.customizer.DefaultConnectionFactoryCustomizer
public class DefaultConnectionFactoryCustomizer
Provides the default implementation of a ConnectionFactoryCustomizer.
This customizer implements getConnection() and setConnection() methods and
a private field to store it if the super class does not have a getConnection()
method defined.
ConnectionFactoryCustomizer
Constructor Summary | |
---|---|
DefaultConnectionFactoryCustomizer()
|
Method Summary | |
---|---|
void |
emitFields(Class<?> queryDefinitionClass,
Class<?> superClass,
net.sf.cglib.core.ClassEmitter ce)
This method can add fields to the generated query object if needed by the getConnection() and setConnection() implementation. |
void |
emitGetConnection(Class<?> queryDefinitionClass,
Class<?> superClass,
net.sf.cglib.core.ClassEmitter ce)
This method must implement the getConnection()
method as specified in the BaseQuery interface. |
void |
emitSetConnection(Class<?> queryDefinitionClass,
Class<?> superClass,
net.sf.cglib.core.ClassEmitter ce)
This method must implement the setConnection()
method as specified in the BaseQuery interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConnectionFactoryCustomizer()
Method Detail |
---|
public void emitFields(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
ConnectionFactoryCustomizer
getConnection()
and setConnection()
implementation.
emitFields
in interface ConnectionFactoryCustomizer
queryDefinitionClass
- the annotated query definition classsuperClass
- the super classce
- the class emitterpublic void emitGetConnection(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
ConnectionFactoryCustomizer
getConnection()
method as specified in the BaseQuery
interface.
emitGetConnection
in interface ConnectionFactoryCustomizer
queryDefinitionClass
- the annotated query definition classsuperClass
- the super classce
- the class emitterBaseQuery.getConnection()
public void emitSetConnection(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
ConnectionFactoryCustomizer
setConnection()
method as specified in the BaseQuery
interface.
emitSetConnection
in interface ConnectionFactoryCustomizer
queryDefinitionClass
- the annotated query definition classsuperClass
- the super classce
- the class emitterBaseQuery.setConnection(java.sql.Connection)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |