JpaParameterExpression created via JPA jakarta.persistence.criteria.CriteriaBuilder .
Each occurrence of a JpaParameterExpression results in a unique SqmParameter.
ParameterMetadata, NodeBuilder#parameter
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | JpaCriteriaParameter(String name, BindableType<? super T> type, boolean allowsMultiValuedBinding, NodeBuilder nodeBuilder)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public <X> X | accept(SemanticQueryWalker<X> walker)
Implements org. |
| public boolean | allowMultiValuedBinding()
Implements org. |
| public boolean | allowsMultiValuedBinding()
Implements org. |
| public void | |
| public void | |
| public int | compareTo(SqmParameter<T>
the object to be compared. anotherParameter)Overrides default org. |
| public JpaCriteriaParameter | |
| public SqmParameter | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public BindableType | getAnticipatedType()
Implements org. |
| public BindableType | getHibernateType()
Implements org. |
| public String | getName()
Implements org. null.
|
| public Class | getParameterType()
Implements jakarta. |
| public Integer | getPosition()
Implements org. null.
|
| public Integer | getTupleLength()
Overrides default org. |
| public T | |
| public int | |
| protected void | |
| public NamedCallableQueryMemento. | |
| private static <T> SqmExpressible |
| allowsMultiValuedBinding | back to summary |
|---|---|
| private boolean allowsMultiValuedBinding | |
| name | back to summary |
|---|---|
| private final String name | |
| JpaCriteriaParameter | back to summary |
|---|---|
| public JpaCriteriaParameter(String name, BindableType<? super T> type, boolean allowsMultiValuedBinding, NodeBuilder nodeBuilder) | |
| JpaCriteriaParameter | back to summary |
|---|---|
| protected JpaCriteriaParameter(JpaCriteriaParameter<T> original) | |
| accept | back to summary |
|---|---|
| public <X> X accept(SemanticQueryWalker<X> walker) Implements org. Doc from org. Accept the walker per visitation
| |
| allowMultiValuedBinding | back to summary |
|---|---|
| public boolean allowMultiValuedBinding() Implements org. Doc from org. Can a collection/array of values be bound to this parameter? This is allowed in very limited contexts within the query:
| |
| allowsMultiValuedBinding | back to summary |
|---|---|
| public boolean allowsMultiValuedBinding() Implements org. Doc from org. Does this parameter allow multi-valued (collection, array, etc) binding? This is only valid for HQL/JPQL and (I think) Criteria queries, and is determined based on the context of the parameters declaration.
| |
| appendHqlString | back to summary |
|---|---|
| public void appendHqlString(StringBuilder sb) Implements org.
| |
| applyAnticipatedType | back to summary |
|---|---|
| public void applyAnticipatedType(BindableType<J> type) Implements org.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(SqmParameter<T> anotherParameter) Overrides default org. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| copy | back to summary |
|---|---|
| public SqmParameter Implements org. Doc from org. Make a copy
| |
| disallowMultiValuedBinding | back to summary |
|---|---|
| public void disallowMultiValuedBinding() Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnticipatedType | back to summary |
|---|---|
| public BindableType Implements org. Doc from org. Based on the context it is declared, what is the anticipated type for bind values? Note If
| |
| getHibernateType | back to summary |
|---|---|
| public BindableType Implements org. Doc from org. Get the Hibernate Type associated with this parameter, if one. May
return
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. If this represents a named parameter, return that parameter name;
otherwise return | |
| getParameterType | back to summary |
|---|---|
| public Class Implements jakarta. Doc from jakarta. Return the Java type of the parameter. Values bound to the parameter must be assignable to this type. This method is required to be supported for criteria queries only. Applications that use this method for Jakarta Persistence query language queries and native queries will not be portable. | |
| getPosition | back to summary |
|---|---|
| public Integer getPosition() Implements org. Doc from org. If this represents a positional parameter, return that parameter position;
otherwise return | |
| getTupleLength | back to summary |
|---|---|
| public Integer getTupleLength() Overrides default org.
| |
| getValue | back to summary |
|---|---|
| public T getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| internalApplyInferableType | back to summary |
|---|---|
| protected void internalApplyInferableType(SqmExpressible<?> newType) Overrides org.
| |
| toMemento | back to summary |
|---|---|
| public NamedCallableQueryMemento. Implements org.
| |
| toSqmType | back to summary |
|---|---|
| private static <T> SqmExpressible | |