Klasse MappingStrategy<T>

java.lang.Object
org.apache.torque.om.mapper.MappingStrategy<T>
Typparameter:
T -

public class MappingStrategy<T> extends Object
Mapping strategy used in processRow method of generated mappers.
  • 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 object
      sort - true explicitely sort with Pair.getLeft() of the tasks.
    • isEmpty

      public boolean isEmpty()
    • isAllSet

      public boolean isAllSet()
    • reset

      public void reset()
    • execute

      public void execute(ResultSet result, T instance) throws TorqueException
      Iterates through the tasks list and executes each task.
      Parameter:
      result - Resultset
      instance - target object
      Löst aus:
      TorqueException