Top Description Fields Constructors Methods
org.hibernate.query.sqm.tree.expression

public Class SqmPositionalParameter<T>

extends AbstractSqmParameter<T>
Class Inheritance
Imports
org.hibernate.query.sqm.NodeBuilder, .SemanticQueryWalker, .SqmExpressible, org.hibernate.query.sqm.tree.SqmCopyContext

Models a positional parameter expression
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
SqmPositionalParameter(int position, boolean canBeMultiValued, NodeBuilder nodeBuilder)

public
SqmPositionalParameter(int position, boolean canBeMultiValued, SqmExpressible<T> expressibleType, NodeBuilder nodeBuilder)

Method Summary

Modifier and TypeMethod and Description
public <X> X
accept(SemanticQueryWalker<X> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation
public void
public String
public int
compareTo(SqmParameter<T>
the object to be compared.
anotherParameter
)

Overrides default org.hibernate.query.sqm.tree.expression.SqmParameter.compareTo.

Compares this object with the specified object for order.
public SqmPositionalParameter<T>
public SqmParameter<T>
public Integer
getPosition()

Overrides org.hibernate.query.sqm.tree.expression.AbstractSqmParameter.getPosition.

Implements org.hibernate.query.sqm.tree.expression.SqmParameter.getPosition.

If this represents a positional parameter, return that parameter position; otherwise return null.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.query.sqm.tree.expression.AbstractSqmParameter:
allowMultiValuedBindingapplyInferableTypedisallowMultiValuedBindinggetAnticipatedTypegetNamegetParameterTypegetTupleLength

Field Detail

positionback to summary
private final int position

Constructor Detail

SqmPositionalParameterback to summary
public SqmPositionalParameter(int position, boolean canBeMultiValued, NodeBuilder nodeBuilder)
SqmPositionalParameterback to summary
public SqmPositionalParameter(int position, boolean canBeMultiValued, SqmExpressible<T> expressibleType, NodeBuilder nodeBuilder)

Method Detail

acceptback to summary
public <X> X accept(SemanticQueryWalker<X> walker)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Doc from org.hibernate.query.sqm.tree.SqmVisitableNode.accept.

Accept the walker per visitation

Annotations
@Override
appendHqlStringback to summary
public void appendHqlString(StringBuilder sb)

Implements org.hibernate.query.sqm.tree.SqmVisitableNode.appendHqlString.

Annotations
@Override
asLoggableTextback to summary
public String asLoggableText()

Overrides default org.hibernate.query.sqm.tree.SqmNode.asLoggableText.

Annotations
@Override
compareToback to summary
public int compareTo(SqmParameter<T> anotherParameter)

Overrides default org.hibernate.query.sqm.tree.expression.SqmParameter.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Parameters
anotherParameter:SqmParameter<T>

the object to be compared.

Returns:int

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Annotations
@Override
copyback to summary
public SqmPositionalParameter<T> copy(SqmCopyContext context)

Implements org.hibernate.query.sqm.tree.expression.SqmParameter.copy, org.hibernate.query.sqm.tree.expression.SqmExpression.copy, org.hibernate.query.sqm.tree.select.SqmSelectableNode.copy, org.hibernate.query.sqm.tree.SqmNode.copy.

Annotations
@Override
copyback to summary
public SqmParameter<T> copy()

Implements org.hibernate.query.sqm.tree.expression.SqmParameter.copy.

Doc from org.hibernate.query.sqm.tree.expression.SqmParameter.copy.

Make a copy

Annotations
@Override
getPositionback to summary
public Integer getPosition()

Overrides org.hibernate.query.sqm.tree.expression.AbstractSqmParameter.getPosition.

Implements org.hibernate.query.sqm.tree.expression.SqmParameter.getPosition.

Doc from org.hibernate.query.sqm.tree.expression.SqmParameter.getPosition.

If this represents a positional parameter, return that parameter position; otherwise return null.

Returns:Integer

The parameter position

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override