org.apache.openjpa.kernel
Class ResultShapePacker

java.lang.Object
  extended by org.apache.openjpa.kernel.ResultPacker
      extended by org.apache.openjpa.kernel.ResultShapePacker

public class ResultShapePacker
extends ResultPacker

Packs result by delegation to a ResultShape.

Author:
Pinaki Poddar

Constructor Summary
ResultShapePacker(Class<?>[] types, String[] aliases, Class resultClass, ResultShape<?> shape)
           
 
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
 

Constructor Detail

ResultShapePacker

public ResultShapePacker(Class<?>[] types,
                         String[] aliases,
                         Class resultClass,
                         ResultShape<?> shape)
Method Detail

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-2010 Apache Software Foundation. All Rights Reserved.