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

public Class NamedParameterInformationImpl

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

Author
Steve Ebersole

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public Type
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 String
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expectedTypeback to summary
private Type expectedType
nameback to summary
private final String name
sqlPositionsback to summary
private final List<Integer> sqlPositions

Constructor Detail

NamedParameterInformationImplback to summary
pack-priv NamedParameterInformationImpl(String name, Type initialType)

Method Detail

addSourceLocationback to summary
public void addSourceLocation(int position)

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

getExpectedTypeback to summary
public Type getExpectedType()

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

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
getSourceNameback to summary
public String getSourceName()

Implements org.hibernate.hql.spi.NamedParameterInformation.getSourceName.

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

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