Package org.apache.openjpa.kernel
Class ResultShapePacker
- java.lang.Object
-
- org.apache.openjpa.kernel.ResultPacker
-
- org.apache.openjpa.kernel.ResultShapePacker
-
public class ResultShapePacker extends ResultPacker
Packs result by delegation to a ResultShape.- Author:
- Pinaki Poddar
-
-
Constructor Summary
Constructors Constructor Description ResultShapePacker(java.lang.Class<?>[] types, java.lang.String[] aliases, java.lang.Class resultClass, ResultShape<?> shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
pack(java.lang.Object o)
Pack the given object into an instance of the query's result class.java.lang.Object
pack(java.lang.Object[] values)
Pack the given array into an instance of the query's result class.
-
-
-
Constructor Detail
-
ResultShapePacker
public ResultShapePacker(java.lang.Class<?>[] types, java.lang.String[] aliases, java.lang.Class resultClass, ResultShape<?> shape)
-
-
Method Detail
-
pack
public java.lang.Object pack(java.lang.Object o)
Description copied from class:ResultPacker
Pack the given object into an instance of the query's result class.- Overrides:
pack
in classResultPacker
-
pack
public java.lang.Object pack(java.lang.Object[] values)
Description copied from class:ResultPacker
Pack the given array into an instance of the query's result class.- Overrides:
pack
in classResultPacker
-
-