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

public Class SqmToDuration<T>

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

Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final SqmExpression<?>
private final SqmDurationUnit<?>

Constructor Summary

AccessConstructor and Description
public
SqmToDuration(SqmExpression<?> magnitude, SqmDurationUnit<?> unit, ReturnableType<T> type, NodeBuilder nodeBuilder)

Method Summary

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

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

Accept the walker per visitation
public void
public String
public SqmToDuration<T>
public SqmExpression<?>
public SqmDurationUnit<?>
Inherited from org.hibernate.query.sqm.tree.expression.AbstractSqmExpression:
aliasapplyInferableTypeasasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringequalToequalTogetJavaTypeDescriptorinininininternalApplyInferableTypeisNotNullisNullnodeBuilder

Field Detail

magnitudeback to summary
private final SqmExpression<?> magnitude
unitback to summary
private final SqmDurationUnit<?> unit

Constructor Detail

SqmToDurationback to summary
public SqmToDuration(SqmExpression<?> magnitude, SqmDurationUnit<?> unit, ReturnableType<T> type, NodeBuilder nodeBuilder)

Method Detail

acceptback to summary
public <T> T accept(SemanticQueryWalker<T> 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
copyback to summary
public SqmToDuration<T> copy(SqmCopyContext context)

Implements 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
getMagnitudeback to summary
public SqmExpression<?> getMagnitude()
getUnitback to summary
public SqmDurationUnit<?> getUnit()