org.datanucleus.store.mapped
Class StatementResultMapping
java.lang.Object
org.datanucleus.store.mapped.StatementResultMapping
public class StatementResultMapping
- extends java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StatementResultMapping
public StatementResultMapping()
getMappingForResultExpression
public java.lang.Object getMappingForResultExpression(int position)
- Accessor for the mapping information for the result expression at the position.
- Parameters:
position - The position in the result
- Returns:
- The mapping information
addMappingForResultExpression
public void addMappingForResultExpression(int position,
StatementMappingIndex mapping)
addMappingForResultExpression
public void addMappingForResultExpression(int position,
StatementNewObjectMapping mapping)
addMappingForResultExpression
public void addMappingForResultExpression(int position,
StatementClassMapping mapping)
isEmpty
public boolean isEmpty()
getNumberOfResultExpressions
public int getNumberOfResultExpressions()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011. All Rights Reserved.