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

public Class ParameterExpressionImpl<T>

extends ExpressionImpl<T>
implements ParameterExpression<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.persistence.criteria.ParameterExpression, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement, javax.persistence.Parameter
Imports
java.io.Serializable, javax.persistence.criteria.ParameterExpression, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterRegistry, org.hibernate.query.criteria.internal.compile.ExplicitParameterInfo, .RenderingContext

Defines a parameter specification, or the information about a parameter (where it occurs, what is its type, etc).
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private String
private final Integer

Constructor Summary

AccessConstructor and Description
public
ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, String name)

public
ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, Integer position)

public
ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType)

Method Summary

Modifier and TypeMethod and Description
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 boolean
public void
registerParameters(ParameterRegistry
The parameter registry with which to register.
registry
)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.
public String
render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition
Inherited from org.hibernate.query.criteria.internal.expression.ExpressionImpl:
asasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringininininisNotNullisNull

Field Detail

isNameGeneratedback to summary
private boolean isNameGenerated
nameback to summary
private String name
positionback to summary
private final Integer position

Constructor Detail

ParameterExpressionImplback to summary
public ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, String name)
ParameterExpressionImplback to summary
public ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, Integer position)
ParameterExpressionImplback to summary
public ParameterExpressionImpl(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType)

Method Detail

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
isNameGeneratedback to summary
public boolean isNameGenerated()
registerParametersback to summary
public void registerParameters(ParameterRegistry registry)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Doc from org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.

Parameters
registry:ParameterRegistry

The parameter registry with which to register.

Annotations
@Override
renderback to summary
public String render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Doc from org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition

Annotations
@Override