Package org.apache.torque.om.mapper
Class MappingStrategy<T>
java.lang.Object
org.apache.torque.om.mapper.MappingStrategy<T>
- Type Parameters:
T-
Mapping strategy used in processRow method of generated mappers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(int offset, org.apache.commons.lang3.function.FailableBiConsumer<ResultSet, T, TorqueException> setter) voidIterates through thetaskslist and executes each task.voidfinish(int num_fields, boolean sort) Last finishing steps before execute.booleanisAllSet()booleanisEmpty()voidreset()
-
Constructor Details
-
MappingStrategy
public MappingStrategy()
-
-
Method Details
-
addColumn
public void addColumn(int offset, org.apache.commons.lang3.function.FailableBiConsumer<ResultSet, T, TorqueException> setter) -
finish
public void finish(int num_fields, boolean sort) Last finishing steps before execute.- Parameters:
num_fields- the total column size of the objectsort-trueexplicitely sort withPair.getLeft()of thetasks.
-
isEmpty
public boolean isEmpty() -
isAllSet
public boolean isAllSet() -
reset
public void reset() -
execute
Iterates through thetaskslist and executes each task.- Parameters:
result- Resultsetinstance- target object
-