Class StatementResultMapping
java.lang.Object
org.datanucleus.store.rdbms.query.StatementResultMapping
Definition of the mapping of result expressions in a datastore statement.
In a typical RDBMS SQL statement the result clause will contain many expressions.
If the overall result of the statement maps to a class then we use StatementClassMapping.
If the overall result has various expressions then we use this.
Each position in the result can either be a StatementMappingIndex, or a StatementNewObjectMapping,
or a StatementClassMapping.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingForResultExpression
(int position, StatementClassMapping mapping) void
addMappingForResultExpression
(int position, StatementMappingIndex mapping) void
addMappingForResultExpression
(int position, StatementNewObjectMapping mapping) getMappingForResultExpression
(int position) Accessor for the mapping information for the result expression at the position.int
boolean
isEmpty()
toString()
-
Field Details
-
mappings
Mappings for the result expressions keyed by the position.
-
-
Constructor Details
-
StatementResultMapping
public StatementResultMapping()
-
-
Method Details
-
getMappingForResultExpression
Accessor for the mapping information for the result expression at the position.- Parameters:
position
- The position in the result- Returns:
- The mapping information
-
addMappingForResultExpression
-
addMappingForResultExpression
-
addMappingForResultExpression
-
isEmpty
public boolean isEmpty() -
getNumberOfResultExpressions
public int getNumberOfResultExpressions() -
toString
-