Top Description Fields Constructors Methods
org.hibernate.engine.query.spi

public abstract Class AbstractParameterDescriptor

extends Object
implements QueryParameter
Class Inheritance
All Implemented Interfaces
org.hibernate.query.QueryParameter, javax.persistence.Parameter
Known Direct Subclasses
org.hibernate.engine.query.spi.NamedParameterDescriptor, org.hibernate.engine.query.spi.OrdinalParameterDescriptor
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.query.QueryParameter, org.hibernate.type.Type

Note

Consider this contract (and its sub-contracts) as incubating as we transition to 6.0 and SQM

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Type
private final int[]

Constructor Summary

AccessConstructor and Description
public
AbstractParameterDescriptor(int[] sourceLocations, Type expectedType)

Method Summary

Modifier and TypeMethod and Description
public Type
public Type
getHibernateType()

Implements org.hibernate.query.QueryParameter.getHibernateType.

Get the Hibernate Type associated with this parameter.
public String
getName()

Implements javax.persistence.Parameter.getName.

Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.
public Class<T>
getParameterType()

Implements javax.persistence.Parameter.getParameterType.

Return the Java type of the parameter.
public Integer
getPosition()

Implements javax.persistence.Parameter.getPosition.

Return the parameter position, or null if the parameter is not a positional parameter.
public int[]
public void
resetExpectedType(Type expectedType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedTypeback to summary
private Type expectedType
sourceLocationsback to summary
private final int[] sourceLocations

Constructor Detail

AbstractParameterDescriptorback to summary
public AbstractParameterDescriptor(int[] sourceLocations, Type expectedType)

Method Detail

getExpectedTypeback to summary
public Type getExpectedType()
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
getNameback to summary
public String getName()

Implements javax.persistence.Parameter.getName.

Doc from javax.persistence.Parameter.getName.

Return the parameter name, or null if the parameter is not a named parameter or no name has been assigned.

Returns:String

parameter name

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
getPositionback to summary
public Integer getPosition()

Implements javax.persistence.Parameter.getPosition.

Doc from javax.persistence.Parameter.getPosition.

Return the parameter position, or null if the parameter is not a positional parameter.

Returns:Integer

position of parameter

Annotations
@Override
getSourceLocationsback to summary
public int[] getSourceLocations()

Implements org.hibernate.query.QueryParameter.getSourceLocations.

Annotations
@Override
resetExpectedTypeback to summary
public void resetExpectedType(Type expectedType)