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
Method Summary |
Object |
pack(Object o)
Pack the given object into an instance of the query's result class. |
Object |
pack(Object[] values)
Pack the given array into an instance of the query's result class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultShapePacker
public ResultShapePacker(Class<?>[] types,
String[] aliases,
Class resultClass,
ResultShape<?> shape)
pack
public Object pack(Object o)
- Description copied from class:
ResultPacker
- Pack the given object into an instance of the query's result class.
- Overrides:
pack
in class ResultPacker
pack
public Object pack(Object[] values)
- Description copied from class:
ResultPacker
- Pack the given array into an instance of the query's result class.
- Overrides:
pack
in class ResultPacker
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.