Class BinaryArithmeticExpression
java.lang.Object
org.hibernate.sql.ast.tree.expression.BinaryArithmeticExpression
- All Implemented Interfaces:
org.hibernate.query.sqm.sql.internal.DomainResultProducer, SqlSelectionProducer, Expression, SqlAstNode
public class BinaryArithmeticExpression
extends Object
implements Expression, org.hibernate.query.sqm.sql.internal.DomainResultProducer
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryArithmeticExpression(Expression lhsOperand, BinaryArithmeticOperator operator, Expression rhsOperand, BasicValuedMapping resultType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker walker) voidapplySqlSelections(DomainResultCreationState creationState) createDomainResult(String resultVariable, DomainResultCreationState creationState) The type for this expressionGet the left-hand operand.Get the operationGet the right-hand operand.resolveSqlSelection(DomainResultCreationState creationState) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Constructor Details
-
BinaryArithmeticExpression
public BinaryArithmeticExpression(Expression lhsOperand, BinaryArithmeticOperator operator, Expression rhsOperand, BasicValuedMapping resultType)
-
-
Method Details
-
getExpressionType
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
accept
- Specified by:
acceptin interfaceSqlAstNode
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState) - Specified by:
createDomainResultin interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
applySqlSelections
- Specified by:
applySqlSelectionsin interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
resolveSqlSelection
-
getLeftHandOperand
-
getOperator
-
getRightHandOperand
Get the right-hand operand.- Returns:
- The right-hand operand.
-