Top Fields Constructors Methods
org.hibernate.sql.ast.tree.expression

public Class BinaryArithmeticExpression

extends Object
implements Expression, DomainResultProducer
Class Inheritance
All Implemented Interfaces
org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.sql.ast.tree.expression.Expression, org.hibernate.sql.ast.spi.SqlSelectionProducer, org.hibernate.sql.ast.tree.SqlAstNode
Imports
org.hibernate.metamodel.mapping.BasicValuedMapping, org.hibernate.query.sqm.BinaryArithmeticOperator, org.hibernate.query.sqm.sql.internal.DomainResultProducer, org.hibernate.sql.ast.SqlAstWalker, org.hibernate.sql.ast.spi.SqlSelection, org.hibernate.sql.results.graph.DomainResult, .DomainResultCreationState, org.hibernate.sql.results.graph.basic.BasicResult

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Expression
private final BinaryArithmeticOperator
private final BasicValuedMapping
private final Expression

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
applySqlSelections(DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Used when this producer is a selection in a sub-query.
public DomainResult<J>
public BasicValuedMapping
public Expression

Returns:

The left-hand operand.
getLeftHandOperand
()

Get the left-hand operand.

public BinaryArithmeticOperator

Returns:

The operation
getOperator
()

Get the operation

public Expression

Returns:

The right-hand operand.
getRightHandOperand
()

Get the right-hand operand.

public SqlSelection
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

lhsOperandback to summary
private final Expression lhsOperand
operatorback to summary
private final BinaryArithmeticOperator operator
resultTypeback to summary
private final BasicValuedMapping resultType
rhsOperandback to summary
private final Expression rhsOperand

Constructor Detail

BinaryArithmeticExpressionback to summary
public BinaryArithmeticExpression(Expression lhsOperand, BinaryArithmeticOperator operator, Expression rhsOperand, BasicValuedMapping resultType)

Method Detail

acceptback to summary
public void accept(SqlAstWalker walker)

Implements org.hibernate.sql.ast.tree.SqlAstNode.accept.

Annotations
@Override
applySqlSelectionsback to summary
public void applySqlSelections(DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Doc from org.hibernate.query.sqm.sql.internal.DomainResultProducer.applySqlSelections.

Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression

Annotations
@Override
createDomainResultback to summary
public DomainResult<J> createDomainResult(String resultVariable, DomainResultCreationState creationState)

Implements org.hibernate.query.sqm.sql.internal.DomainResultProducer.createDomainResult.

Doc from org.hibernate.query.sqm.sql.internal.DomainResultProducer.createDomainResult.

Produce the domain query

Annotations
@Override
getExpressionTypeback to summary
public BasicValuedMapping getExpressionType()

Implements org.hibernate.sql.ast.tree.expression.Expression.getExpressionType.

Doc from org.hibernate.sql.ast.tree.expression.Expression.getExpressionType.

The type for this expression

Annotations
@Override
getLeftHandOperandback to summary
public Expression getLeftHandOperand()

Get the left-hand operand.

Returns:Expression

The left-hand operand.

getOperatorback to summary
public BinaryArithmeticOperator getOperator()

Get the operation

Returns:BinaryArithmeticOperator

The operation

getRightHandOperandback to summary
public Expression getRightHandOperand()

Get the right-hand operand.

Returns:Expression

The right-hand operand.

resolveSqlSelectionback to summary
public SqlSelection resolveSqlSelection(DomainResultCreationState creationState)