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:
  • Constructor Details

    • PojoMapper

      public PojoMapper(Class<T> type)
  • Method Details