Top Fields Constructors Methods
org.hibernate.hql.internal.ast

public Class PositionalParameterInformationImpl

extends Object
implements PositionalParameterInformation
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.spi.PositionalParameterInformation, org.hibernate.hql.spi.ParameterInformation
Imports
java.util.ArrayList, .List, org.hibernate.hql.spi.PositionalParameterInformation, org.hibernate.internal.util.collections.ArrayHelper, org.hibernate.type.Type

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Type
private final int
private final List<Integer>

Constructor Summary

AccessConstructor and Description
public
PositionalParameterInformationImpl(int label, Type initialType)

Method Summary

Modifier and TypeMethod and Description
public void
public Type
public int
public int[]
getSourceLocations()

Implements org.hibernate.hql.spi.ParameterInformation.getSourceLocations.

The positions (relative to all parameters) that this parameter was discovered in the source query (HQL, etc).
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedTypeback to summary
private Type expectedType
labelback to summary
private final int label
sourceLocationsback to summary
private final List<Integer> sourceLocations

Constructor Detail

PositionalParameterInformationImplback to summary
public PositionalParameterInformationImpl(int label, Type initialType)

Method Detail

addSourceLocationback to summary
public void addSourceLocation(int location)

Implements org.hibernate.hql.spi.ParameterInformation.addSourceLocation.

Annotations
@Override
getExpectedTypeback to summary
public Type getExpectedType()

Implements org.hibernate.hql.spi.ParameterInformation.getExpectedType.

Annotations
@Override
getLabelback to summary
public int getLabel()

Implements org.hibernate.hql.spi.PositionalParameterInformation.getLabel.

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

Implements org.hibernate.hql.spi.ParameterInformation.getSourceLocations.

Doc from org.hibernate.hql.spi.ParameterInformation.getSourceLocations.

The positions (relative to all parameters) that this parameter was discovered in the source query (HQL, etc). E.g., given a query like `.. where a.name = :name or a.nickName = :name` this would return `[0,1]`

Annotations
@Override
setExpectedTypeback to summary
public void setExpectedType(Type expectedType)

Implements org.hibernate.hql.spi.ParameterInformation.setExpectedType.

Annotations
@Override