Package org.apache.cayenne.reflect
Class PojoMapper<T>
- java.lang.Object
-
- org.apache.cayenne.reflect.PojoMapper<T>
-
- Type Parameters:
T
- type of object to produce
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)
-