|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.jdoql.scope.AbstractValueTable
org.apache.jdo.impl.jdoql.scope.ParameterTable
The query parameter table.
Field Summary | |
(package private) java.util.Map |
declMap
Map of declarations. |
protected static org.apache.jdo.util.I18NHelper |
msg
I18N support |
(package private) java.util.List |
names
List of query parameter names. |
(package private) java.util.Map |
valueMap
Map of values. |
Constructor Summary | |
ParameterTable()
|
Method Summary | |
private void |
checkCompatibility(java.lang.String name,
java.lang.Object value)
Checks the type compatibility of the specified value and throws a JDOQueryException if the value has an incompatible type. |
protected void |
checkDeclaredIdentifier(java.lang.String name,
Declaration decl)
Internal method to check whether the specified identifier is declared. |
void |
checkUnboundParams()
Checks whether all query parameters are bound. |
void |
declare(Declaration decl)
Adds a new declaration. |
ParameterTable |
getCopy()
Returns a copy of this ParameterTable. |
java.lang.Object |
getValue(java.lang.String name)
Returns the current value for the specified identifier. |
void |
initValueHandling()
This method initializes the map of values for this ValueTable. |
boolean |
isCompatibleValue(java.lang.String name,
java.lang.Object value)
Checks whether the type of the specified value is compatible of the type of the identifier from its declaration. |
void |
setValue(java.lang.String name,
java.lang.Object value)
Sets the value for the specified identifier. |
void |
setValues(org.apache.jdo.pm.PersistenceManagerInternal queryPM,
java.util.Map paramValues)
Sets all query parameter values. |
void |
setValues(org.apache.jdo.pm.PersistenceManagerInternal queryPM,
java.lang.Object[] paramValues)
Sets all query parameter values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.List names
java.util.Map declMap
transient java.util.Map valueMap
protected static final org.apache.jdo.util.I18NHelper msg
Constructor Detail |
public ParameterTable()
Method Detail |
public void declare(Declaration decl)
declare
in interface ValueTable
declare
in class AbstractValueTable
decl
- the declaration nodepublic ParameterTable getCopy()
protected void checkDeclaredIdentifier(java.lang.String name, Declaration decl)
checkDeclaredIdentifier
in class AbstractValueTable
public void setValues(org.apache.jdo.pm.PersistenceManagerInternal queryPM, java.lang.Object[] paramValues)
paramValues
- the parameter valuespublic void setValues(org.apache.jdo.pm.PersistenceManagerInternal queryPM, java.util.Map paramValues)
paramValues
- the parameter valuespublic void checkUnboundParams()
private void checkCompatibility(java.lang.String name, java.lang.Object value)
public void initValueHandling()
public void setValue(java.lang.String name, java.lang.Object value)
setValue
in interface ValueTable
name
- the name of the identifiervalue
- the current value of the identifierpublic java.lang.Object getValue(java.lang.String name)
getValue
in interface ValueTable
name
- the name of the identifier
public boolean isCompatibleValue(java.lang.String name, java.lang.Object value)
isCompatibleValue
in interface ValueTable
name
- the name of the identifiervalue
- the value to be checked
true
if the type of the value is compatible with the
type of the identifier; false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |