Class AbstractResultClassMapper
java.lang.Object
org.datanucleus.store.query.inmemory.AbstractResultClassMapper
- Direct Known Subclasses:
JDOQLResultClassMapper, JPQLResultClassMapper
Abstract mapper for getting results from a query. Extend for the specific query language.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) FieldgetFieldForFieldNameInResultClass(Class cls, String fieldName) Accessor for the Field for the specified field name of the supplied class.(package private) ObjectgetResultForResultSetRow(Object inputResult, String[] fieldNames, Field[] fields) Method to take the result(s) of a row of the query and convert it into an object of the resultClass type, using the rules from the JDO spec.map(Collection inputResults, Expression[] resultNames) Method to map the input results to the required result class type.
-
Field Details
-
resultClass
-
-
Constructor Details
-
AbstractResultClassMapper
-
-
Method Details
-
map
Method to map the input results to the required result class type.- Parameters:
inputResults- The results to processresultNames- Expressions for the result components of the input results (columns)- Returns:
- Collection<resultClass>
-
getResultForResultSetRow
Method to take the result(s) of a row of the query and convert it into an object of the resultClass type, using the rules from the JDO spec.- Parameters:
inputResult- The result from the queryfieldNames- Names of the fields (in the query, ordered)fields- The Field objects for the fields of the result class (ordered)- Returns:
- Object of the resultClass type for the input result
-
getFieldForFieldNameInResultClass
-