Top Description Fields Constructors Methods
org.hibernate.query.internal

public abstract Class QueryParameterImpl<T>

extends Object
implements QueryParameter<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.QueryParameter, javax.persistence.Parameter
Known Direct Subclasses
org.hibernate.query.internal.QueryParameterNamedImpl, org.hibernate.query.procedure.internal.ProcedureParameterImpl
Imports
org.hibernate.query.QueryParameter, org.hibernate.type.Type

QueryParameter implementation.

Note

Unfortunately we need to model named and positional parameters separately still until 6.0. For now this is simply the base abstract class for those specific impls

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Type

Constructor Summary

AccessConstructor and Description
public
QueryParameterImpl(Type expectedType)

Method Summary

Modifier and TypeMethod and Description
public Type
getHibernateType()

Implements org.hibernate.query.QueryParameter.getHibernateType.

Get the Hibernate Type associated with this parameter.
public Class<T>
getParameterType()

Implements javax.persistence.Parameter.getParameterType.

Return the Java type of the parameter.
public void
setHibernateType(Type expectedType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedTypeback to summary
private Type expectedType

Constructor Detail

QueryParameterImplback to summary
public QueryParameterImpl(Type expectedType)

Method Detail

getHibernateTypeback to summary
public Type getHibernateType()

Implements org.hibernate.query.QueryParameter.getHibernateType.

Doc from org.hibernate.query.QueryParameter.getHibernateType.

Get the Hibernate Type associated with this parameter.

Returns:Type

The Hibernate Type.

Annotations
@Override
getParameterTypeback to summary
public Class<T> getParameterType()

Implements javax.persistence.Parameter.getParameterType.

Doc from javax.persistence.Parameter.getParameterType.

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 Java Persistence query language queries and native queries will not be portable.

Returns:Class<T>

the Java type of the parameter

Annotations
@Override
setHibernateTypeback to summary
public void setHibernateType(Type expectedType)