Package org.apache.torque.om.mapper

# Class MappingStrategy<T>

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

Type Parameters:
  `T` -

public class MappingStrategy<T> extends Object
Mapping strategy used in processRow method of generated mappers.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MappingStrategy()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addColumn(int offset, org.apache.commons.lang3.function.FailableBiConsumer<ResultSet,T,TorqueException> setter)`
  `void`
  `execute(ResultSet result, T instance)`
  Iterates through the `tasks` list and executes each task.
  `void`
  `finish(int num_fields, boolean sort)`
  Last finishing steps before execute.
  `boolean`
  `isAllSet()`
  `boolean`
  `isEmpty()`
  `void`
  `reset()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 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)
    Iterates through the `tasks` list and executes each task.
    Parameters:
      `result` - Resultset
      `instance` - target object