org.datanucleus.store.rdbms.query
Class StatementParameterMapping
java.lang.Object
org.datanucleus.store.rdbms.query.StatementParameterMapping
public class StatementParameterMapping
- extends java.lang.Object
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.
|
Method Summary |
void |
addMappingForParameter(java.lang.String name,
org.datanucleus.store.mapped.StatementMappingIndex mapping)
|
org.datanucleus.store.mapped.StatementMappingIndex |
getMappingForParameter(java.lang.String name)
Accessor for the mapping information for the parameter with the specified name. |
org.datanucleus.store.mapped.StatementMappingIndex |
getMappingForParameterPosition(int pos)
Convenience method to return the mapping for the parameter that is at the specified position. |
java.lang.String[] |
getParameterNames()
|
boolean |
isEmpty()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StatementParameterMapping
public StatementParameterMapping()
getMappingForParameter
public org.datanucleus.store.mapped.StatementMappingIndex getMappingForParameter(java.lang.String name)
- Accessor for the mapping information for the parameter with the specified name.
- Parameters:
name - Parameter name
- Returns:
- The mapping information
getMappingForParameterPosition
public org.datanucleus.store.mapped.StatementMappingIndex getMappingForParameterPosition(int pos)
- 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
public void addMappingForParameter(java.lang.String name,
org.datanucleus.store.mapped.StatementMappingIndex mapping)
getParameterNames
public java.lang.String[] getParameterNames()
isEmpty
public boolean isEmpty()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2012. All Rights Reserved.