|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.kernel.ResultPacker
public class ResultPacker
Helper class to pack results into the result class set on the query.
| Constructor Summary | |
|---|---|
protected |
ResultPacker()
Protected constructor to bypass this implementation but allow extension. |
|
ResultPacker(Class<?>[] types,
String[] aliases,
Class<?> resultClass)
Constructor for standard projection. |
|
ResultPacker(Class<?> candidate,
String alias,
Class<?> resultClass)
Constructor for result class without a projection. |
| Method Summary | |
|---|---|
(package private) boolean |
isInterface(Class<?> intf,
Class<?> actual)
|
Object |
pack(Object result)
Pack the given object into an instance of the query's result class. |
Object |
pack(Object[] result)
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 |
|---|
protected ResultPacker()
public ResultPacker(Class<?> candidate,
String alias,
Class<?> resultClass)
public ResultPacker(Class<?>[] types,
String[] aliases,
Class<?> resultClass)
types - the projection value typesaliases - the alias for each projection valueresultClass - the class to pack into| Method Detail |
|---|
boolean isInterface(Class<?> intf,
Class<?> actual)
public Object pack(Object result)
public Object pack(Object[] result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||