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

public Class SqmBinaryArithmetic<T>

extends AbstractSqmExpression<T>
implements SqmSelectableNode<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.tree.select.SqmSelectableNode, org.hibernate.query.sqm.tree.SqmTypedNode, org.hibernate.query.sqm.tree.SqmVisitableNode, org.hibernate.query.sqm.tree.SqmNode, org.hibernate.query.criteria.JpaCriteriaNode, java.io.Serializable, org.hibernate.query.sqm.tree.SqmExpressibleAccessor, org.hibernate.query.criteria.JpaSelection, jakarta.persistence.criteria.Selection, jakarta.persistence.TupleElement, org.hibernate.query.criteria.JpaTupleElement
Imports
org.hibernate.metamodel.model.domain.JpaMetamodel, org.hibernate.query.sqm.BinaryArithmeticOperator, .NodeBuilder, .SemanticQueryWalker, .SqmExpressible, org.hibernate.query.sqm.tree.SqmCopyContext, org.hibernate.query.sqm.tree.select.SqmSelectableNode

Author
Steve Ebersole

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
SqmBinaryArithmetic(BinaryArithmeticOperator operator, SqmExpression<?> lhsOperand, SqmExpression<?> rhsOperand, JpaMetamodel domainModel, NodeBuilder nodeBuilder)

public
SqmBinaryArithmetic(BinaryArithmeticOperator operator, SqmExpression<?> lhsOperand, SqmExpression<?> rhsOperand, 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 SqmBinaryArithmetic<T>
public SqmExpression<?>

Returns:

The left-hand operand.
getLeftHandOperand
()

Get the left-hand operand.

public BinaryArithmeticOperator

Returns:

The operator
getOperator
()

Get the operator

public SqmExpression<?>

Returns:

The right-hand operand.
getRightHandOperand
()

Get the right-hand operand.

protected void
Inherited from org.hibernate.query.sqm.tree.expression.AbstractSqmExpression:
aliasapplyInferableTypeasasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringequalToequalTogetJavaTypeDescriptorininininisNotNullisNullnodeBuilder

Field Detail

lhsOperandback to summary
private final SqmExpression<?> lhsOperand
operatorback to summary
private final BinaryArithmeticOperator operator
rhsOperandback to summary
private final SqmExpression<?> rhsOperand

Constructor Detail

SqmBinaryArithmeticback to summary
public SqmBinaryArithmetic(BinaryArithmeticOperator operator, SqmExpression<?> lhsOperand, SqmExpression<?> rhsOperand, JpaMetamodel domainModel, NodeBuilder nodeBuilder)
SqmBinaryArithmeticback to summary
public SqmBinaryArithmetic(BinaryArithmeticOperator operator, SqmExpression<?> lhsOperand, SqmExpression<?> rhsOperand, 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
copyback to summary
public SqmBinaryArithmetic<T> copy(SqmCopyContext context)

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

Annotations
@Override
getLeftHandOperandback to summary
public SqmExpression<?> getLeftHandOperand()

Get the left-hand operand.

Returns:SqmExpression<?>

The left-hand operand.

getOperatorback to summary
public BinaryArithmeticOperator getOperator()

Get the operator

Returns:BinaryArithmeticOperator

The operator

getRightHandOperandback to summary
public SqmExpression<?> getRightHandOperand()

Get the right-hand operand.

Returns:SqmExpression<?>

The right-hand operand.

internalApplyInferableTypeback to summary
protected void internalApplyInferableType(SqmExpressible<?> type)

Overrides org.hibernate.query.sqm.tree.expression.AbstractSqmExpression.internalApplyInferableType.

Annotations
@Override