|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionFactoryCustomizer
Defines the methods of a customizer for the implementation of the
getConnection()
and setConnection()
.
The emit methods are called during the code generation to implement
connection handling in the generated query object class. It allows query
object classes to aquire the database connection from different data sources.
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. |
Method Detail |
---|
void emitFields(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
getConnection()
and setConnection()
implementation.
queryDefinitionClass
- the annotated query definition classsuperClass
- the super classce
- the class emittervoid emitGetConnection(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
getConnection()
method as specified in the BaseQuery
interface.
queryDefinitionClass
- the annotated query definition classsuperClass
- the super classce
- the class emitterBaseQuery.getConnection()
void emitSetConnection(Class<?> queryDefinitionClass, Class<?> superClass, net.sf.cglib.core.ClassEmitter ce)
setConnection()
method as specified in the BaseQuery
interface.
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 |