Package org.apache.openjpa.jdbc.meta
Class QueryResultMapping.PCResult
java.lang.Object
org.apache.openjpa.jdbc.meta.QueryResultMapping.PCResult
- Enclosing class:
- QueryResultMapping
A persistence-capable result.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstructorParam
(String name) void
addMapping
(String path, Object id) Map the given path to the given result id.Class<?>
The result candidate class.Candidate mapping.getExcludes
(List<MetaDataContext> path) Return the field indexes to exclude when loading data for the given path.getMapping
(String path) Return the mapping id for the given path supplied withaddMapping(java.lang.String, java.lang.Object)
, or null if none.String[]
Return the raw mapping paths supplied withaddMapping(java.lang.String, java.lang.Object)
, or empty array if none.boolean
hasEager
(List<MetaDataContext> path, FieldMapping field) Return true if the mapped result contains eager data for the given field at the given path.map
(List<MetaDataContext> path, Object id, Joins joins) Map the given request onto a result id.
-
Field Details
-
DISCRIMINATOR
Path token to represent a discriminator.- See Also:
-
-
Method Details
-
getCandidateType
The result candidate class. -
getCandidateTypeMapping
Candidate mapping. -
getMappingPaths
Return the raw mapping paths supplied withaddMapping(java.lang.String, java.lang.Object)
, or empty array if none. -
getMapping
Return the mapping id for the given path supplied withaddMapping(java.lang.String, java.lang.Object)
, or null if none. -
addMapping
Map the given path to the given result id. -
map
Map the given request onto a result id.- Parameters:
path
- stack of data requests (seeResult.startDataRequest(java.lang.Object)
)id
- requested id or column (seeResult
APIs)joins
- requested joins, or null- Returns:
- the id or column to fetch from the result (typically a column name)
-
hasEager
Return true if the mapped result contains eager data for the given field at the given path.- Parameters:
path
- stack of data requests (seeResult.startDataRequest(java.lang.Object)
)
-
getExcludes
Return the field indexes to exclude when loading data for the given path. -
addConstructorParam
-