Package org.apache.torque.om.mapper

# 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.

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `MappingStrategy()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `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()`

  ### Von Klasse geerbte Methoden java.lang.Object

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

- ## 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`