# Class PojoMapper<T>

java.lang.Object
org.apache.cayenne.reflect.PojoMapper<T>

Type Parameters:
  `T` - type of object to produce

All Implemented Interfaces:
  `Function<Object[],T>`

public class PojoMapper<T> extends Object implements Function<Object[],T>
Simple mapper of Object[] to a POJO class. Target class must have default constructor and at least as many fields as a processed array.
Note: Current implementation relies on the field order, so use with caution as this order may vary on different JDK platforms.

Since:
  4.2
See Also:
  - `ColumnSelect.map(Function)`
  - `SQLSelect.map(Function)`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PojoMapper(Class<T> type)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `apply(Object[] data)`

  ### Methods inherited from class Object

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

  ### Methods inherited from interface Function

  `andThen, compose`

- ## Constructor Details

  - ### PojoMapper

    public PojoMapper(Class<T> type)

- ## Method Details

  - ### apply

    public T apply(Object[] data)
    Specified by:
      `apply` in interface `Function<Object[],T>`