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.
- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescriptionQueryParameterPositionalImpl(Integer position, boolean allowMultiValuedBinding, BindableType<T> anticipatedType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T> QueryParameterPositionalImpl<T>fromNativeQuery(int position) static <T> QueryParameterPositionalImpl<T>fromSqm(SqmParameter<T> parameter) Create a positional parameter descriptor from the SQM parameterReturn the parameter position, or null if the parameter is not a positional parameter.inthashCode()Methods inherited from class org.hibernate.query.spi.AbstractQueryParameter
allowsMultiValuedBinding, applyAnticipatedType, disallowMultiValuedBinding, getHibernateType, getName, getParameterType
-
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
Description copied from interface:ParameterReturn the parameter position, or null if the parameter is not a positional parameter.- Specified by:
getPositionin interfaceParameter<T>- Overrides:
getPositionin classAbstractQueryParameter<T>- Returns:
- position of parameter
-
toMemento
-
equals
-
hashCode
public int hashCode()
-