Class StatementParameterMapping
java.lang.Object
org.datanucleus.store.rdbms.query.StatementParameterMapping
Definition of the mapping of parameters in a datastore statement.
A typical use is for RDBMS where we have a JDBC statement and each parameter is looked up
via its name. The mapping information for the parameter provides the mapping and the parameter
positions to use.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map
<String, StatementMappingIndex> Mappings for the parameters keyed by the parameter name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMappingForParameter
(String name, StatementMappingIndex mapping) getMappingForParameter
(String name) Accessor for the mapping information for the parameter with the specified name.getMappingForParameterPosition
(int pos) Convenience method to return the mapping for the parameter that is at the specified position.String[]
boolean
isEmpty()
toString()
-
Field Details
-
mappings
Map<String,StatementMappingIndex> mappingsMappings for the parameters keyed by the parameter name.
-
-
Constructor Details
-
StatementParameterMapping
public StatementParameterMapping()
-
-
Method Details
-
getMappingForParameter
Accessor for the mapping information for the parameter with the specified name.- Parameters:
name
- Parameter name- Returns:
- The mapping information
-
getMappingForParameterPosition
Convenience method to return the mapping for the parameter that is at the specified position. The position should use the same origin as the parameter positions here.- Parameters:
pos
- The position- Returns:
- The mapping (if any)
-
addMappingForParameter
-
getParameterNames
-
isEmpty
public boolean isEmpty() -
toString
-