|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneratorMappingAdapter
Interface for generator custom mappers.
Method Summary | |
---|---|
void |
generateFromResult(ResultMapping resultMapping,
net.sf.cglib.core.CodeEmitter co,
net.sf.cglib.core.Local result,
int[] indexes)
Method to map the current record of a result set or the result of a callable statement to an object on the stack. |
void |
generateFromResultSet(ResultMapping resultMapping,
net.sf.cglib.core.CodeEmitter co,
net.sf.cglib.core.Local resultSet,
String[] columns)
Method to map the current record of a result set to an object on the stack. |
void |
generateRegisterOutputParameters(ResultMapping resultMapping,
net.sf.cglib.core.CodeEmitter co,
net.sf.cglib.core.Local callableStatement,
int[] indexes)
Method to register an output parameter in a callable statement. |
void |
generateToPreparedStatement(ParameterMapping parameterMapping,
net.sf.cglib.core.CodeEmitter co,
net.sf.cglib.core.Local preparedStatement,
int[] indexes,
net.sf.cglib.core.Local indexOffset)
Method to map the object on top of the stack to a prepared statement. |
Methods inherited from interface sf.qof.mapping.MappingAdapter |
---|
getNumberOfColumns, getTypes |
Method Detail |
---|
void generateFromResult(ResultMapping resultMapping, net.sf.cglib.core.CodeEmitter co, net.sf.cglib.core.Local result, int[] indexes)
indexes
defines the SQL indexes for the result set
to be used in functions such a getInt(index)
.
resultMapping
- the result mappingco
- code emitterresult
- ResultSet
or CallableStatement
local variableindexes
- array of SQL indexesvoid generateFromResultSet(ResultMapping resultMapping, net.sf.cglib.core.CodeEmitter co, net.sf.cglib.core.Local resultSet, String[] columns)
columns
defines the SQL column name for the result set to be used
in functions such a getInt(name)
.
resultMapping
- the result mappingco
- code emitterresultSet
- ResultSet
local variablecolumns
- array of SQL column namesvoid generateToPreparedStatement(ParameterMapping parameterMapping, net.sf.cglib.core.CodeEmitter co, net.sf.cglib.core.Local preparedStatement, int[] indexes, net.sf.cglib.core.Local indexOffset)
indexes
defines the SQL index for the prepared statement to be used
in functions such a setInt(index, value)
.
parameterMapping
- the parameter mappingco
- code emitterpreparedStatement
- prepared statement local variableindexes
- array of SQL indexesindexOffset
- offset to be added to the indexes if not nullvoid generateRegisterOutputParameters(ResultMapping resultMapping, net.sf.cglib.core.CodeEmitter co, net.sf.cglib.core.Local callableStatement, int[] indexes)
resultMapping
- the result mappingco
- code emittercallableStatement
- callable statement local variableindexes
- array of SQL indexes
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |