javax.persistence.Parameter contract as known to the
javax.persistence.Query and javax.persistence.StoredProcedureQuery implementations. Used to track
information known about the parameter.
For parameter information as known to JPA criteria queries, see org.
instead.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | bindValue(T
The value to bind value, TemporalType The temporal type to use in binding specifiedTemporalType)If bindable, bind the value using the specific temporal type. |
| public ParameterBind | |
| public ParameterMode | Returns: The parameter mode.Retrieves the parameter "mode" which describes how the parameter is defined in the actual database procedure definition (is it an INPUT parameter? |
| public Query | |
| public boolean | Returns: Whether the parameter is bindable (can set be called).Can we bind (set) values on this parameter? |
| public boolean | Returns: true if this is a JPA-style positional parameter; false would indicate
we have either a named parameter (getName() would return a non-null value) or a native
Hibernate positional parameter.JPA has a different definition of positional parameters than what legacy Hibernate HQL had. |
| bindValue | back to summary |
|---|---|
| public void bindValue(T value) If bindable, bind the value.
| |
| bindValue | back to summary |
|---|---|
| public void bindValue(T value, TemporalType specifiedTemporalType) If bindable, bind the value using the specific temporal type.
| |
| getBind | back to summary |
|---|---|
| public ParameterBind If bindable, get the current binding.
| |
| getMode | back to summary |
|---|---|
| public ParameterMode getMode() Retrieves the parameter "mode" which describes how the parameter is defined in the actual database procedure definition (is it an INPUT parameter? An OUTPUT parameter? etc).
| |
| getQuery | back to summary |
|---|---|
| public Query getQuery() Access to the query that this parameter belongs to.
| |
| isBindable | back to summary |
|---|---|
| public boolean isBindable() Can we bind (set) values on this parameter? Generally this is
| |
| isJpaPositionalParameter | back to summary |
|---|---|
| public boolean isJpaPositionalParameter() JPA has a different definition of positional parameters than what legacy Hibernate HQL had. In JPA, the parameter holders are labelled (named :/). At any rate the semantics are different and we often need to understand which we are dealing with (and applications might too).
| |