Package org.apache.torque.om.mapper
Klasse MappingStrategy<T>
java.lang.Object
org.apache.torque.om.mapper.MappingStrategy<T>
- Typparameter:
T
-
Mapping strategy used in processRow method of generated mappers.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addColumn
(int offset, org.apache.commons.lang3.function.FailableBiConsumer<ResultSet, T, TorqueException> setter) void
Iterates through thetasks
list and executes each task.void
finish
(int num_fields, boolean sort) Last finishing steps before execute.boolean
isAllSet()
boolean
isEmpty()
void
reset()
-
Konstruktordetails
-
MappingStrategy
public MappingStrategy()
-
-
Methodendetails
-
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.- Parameter:
num_fields
- the total column size of the objectsort
-true
explicitely sort withPair.getLeft()
of thetasks
.
-
isEmpty
public boolean isEmpty() -
isAllSet
public boolean isAllSet() -
reset
public void reset() -
execute
Iterates through thetasks
list and executes each task.- Parameter:
result
- Resultsetinstance
- target object- Löst aus:
TorqueException
-