Package | Description |
---|---|
javax.persistence |
Java Persistence is the API for the management for persistence and object/relational mapping.
|
javax.persistence.criteria |
Java Persistence Criteria API
|
Modifier and Type | Method and Description |
---|---|
Parameter<?> |
Query.getParameter(int position)
Get the parameter object corresponding to the declared
positional parameter with the given position.
|
<T> Parameter<T> |
Query.getParameter(int position,
Class<T> type)
Get the parameter object corresponding to the declared
positional parameter with the given position and type.
|
Parameter<?> |
Query.getParameter(String name)
Get the parameter object corresponding to the declared
parameter of the given name.
|
<T> Parameter<T> |
Query.getParameter(String name,
Class<T> type)
Get the parameter object corresponding to the declared
parameter of the given name and type.
|
Modifier and Type | Method and Description |
---|---|
Set<Parameter<?>> |
Query.getParameters()
Get the parameter objects corresponding to the declared
parameters of the query.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Query.getParameterValue(Parameter<T> param)
Return the input value bound to the parameter.
|
boolean |
Query.isBound(Parameter<?> param)
Return a boolean indicating whether a value has been bound
to the parameter.
|
TypedQuery<X> |
TypedQuery.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
StoredProcedureQuery |
StoredProcedureQuery.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
Query |
Query.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
TypedQuery<X> |
TypedQuery.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
StoredProcedureQuery |
StoredProcedureQuery.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
Query |
Query.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
<T> TypedQuery<X> |
TypedQuery.setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
<T> StoredProcedureQuery |
StoredProcedureQuery.setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
<T> Query |
Query.setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
Modifier and Type | Interface and Description |
---|---|
interface |
ParameterExpression<T>
Type of criteria query parameter expressions.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.