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>
public class QueryParameterPositionalImpl<T> extends AbstractQueryParameter<T>
QueryParameter impl for positional-parameters in HQL, JPQL or Criteria queries.
-
-
Constructor Summary
Constructors Constructor Description QueryParameterPositionalImpl(Integer position, boolean allowMultiValuedBinding, BindableType<T> anticipatedType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static <T> QueryParameterPositionalImpl<T>
fromNativeQuery(int position)
static <T> QueryParameterPositionalImpl<T>
fromSqm(SqmParameter<T> parameter)
Create a positional parameter descriptor from the SQM parameterInteger
getPosition()
int
hashCode()
NamedQueryMemento.ParameterMemento
toMemento()
-
Methods inherited from class org.hibernate.query.spi.AbstractQueryParameter
allowsMultiValuedBinding, applyAnticipatedType, disallowMultiValuedBinding, getHibernateType, getName, getParameterType
-
-
-
-
Constructor Detail
-
QueryParameterPositionalImpl
public QueryParameterPositionalImpl(Integer position, boolean allowMultiValuedBinding, BindableType<T> anticipatedType)
-
-
Method Detail
-
fromSqm
public static <T> QueryParameterPositionalImpl<T> fromSqm(SqmParameter<T> parameter)
Create a positional parameter descriptor from the SQM parameter- Parameters:
parameter
- The source parameter info- Returns:
- The parameter descriptor
-
fromNativeQuery
public static <T> QueryParameterPositionalImpl<T> fromNativeQuery(int position)
-
getPosition
public Integer getPosition()
- Specified by:
getPosition
in interfaceParameter<T>
- Overrides:
getPosition
in classAbstractQueryParameter<T>
-
toMemento
public NamedQueryMemento.ParameterMemento toMemento()
-
-