Package org.hibernate.query.internal
Class QueryParameterPositionalImpl<T>
java.lang.Object
org.hibernate.query.spi.AbstractQueryParameter<T>
org.hibernate.query.internal.QueryParameterPositionalImpl<T>
- All Implemented Interfaces:
Parameter<T>
,QueryParameter<T>
,QueryParameterImplementor<T>
QueryParameter impl for positional-parameters in HQL, JPQL or Criteria queries.
-
Constructor Summary
ConstructorsConstructorDescriptionQueryParameterPositionalImpl
(Integer position, boolean allowMultiValuedBinding, BindableType<T> anticipatedType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <T> QueryParameterPositionalImpl
<T> fromNativeQuery
(int position) static <T> QueryParameterPositionalImpl
<T> fromSqm
(SqmParameter<T> parameter) Create a positional parameter descriptor from the SQM parameterint
hashCode()
Methods inherited from class org.hibernate.query.spi.AbstractQueryParameter
allowsMultiValuedBinding, applyAnticipatedType, disallowMultiValuedBinding, getHibernateType, getName, getParameterType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.QueryParameter
isNamed, isOrdinal
-
Constructor Details
-
QueryParameterPositionalImpl
public QueryParameterPositionalImpl(Integer position, boolean allowMultiValuedBinding, BindableType<T> anticipatedType)
-
-
Method Details
-
fromSqm
Create a positional parameter descriptor from the SQM parameter- Parameters:
parameter
- The source parameter info- Returns:
- The parameter descriptor
-
fromNativeQuery
-
getPosition
- Specified by:
getPosition
in interfaceParameter<T>
- Overrides:
getPosition
in classAbstractQueryParameter<T>
-
toMemento
-
equals
-
hashCode
public int hashCode()
-