Top Description Inners Fields Constructors Methods
org.hibernate.query.criteria.internal.expression

public Class UnaryArithmeticOperation<T>

extends ExpressionImpl<T>
implements UnaryOperatorExpression<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.internal.expression.UnaryOperatorExpression, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Imports
java.io.Serializable, javax.persistence.criteria.Expression, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterRegistry, .Renderable, org.hibernate.query.criteria.internal.compile.RenderingContext

Models unary arithmetic operation (unary plus and unary minus).
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final Expression<T>
private final UnaryArithmeticOperation.Operation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Expression<T>
public UnaryArithmeticOperation.Operation
public void
registerParameters(ParameterRegistry
The parameter registry with which to register.
registry
)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.
public String
render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition
Inherited from org.hibernate.query.criteria.internal.expression.ExpressionImpl:
asasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringininininisNotNullisNull

Field Detail

operandback to summary
private final Expression<T> operand
operationback to summary
private final UnaryArithmeticOperation.Operation operation

Constructor Detail

UnaryArithmeticOperationback to summary
public UnaryArithmeticOperation(CriteriaBuilderImpl criteriaBuilder, UnaryArithmeticOperation.Operation operation, Expression<T> operand)
Annotations
@SuppressWarnings:unchecked

Method Detail

getOperandback to summary
public Expression<T> getOperand()

Implements org.hibernate.query.criteria.internal.expression.UnaryOperatorExpression.getOperand.

Doc from org.hibernate.query.criteria.internal.expression.UnaryOperatorExpression.getOperand.

Get the operand.

Returns:Expression<T>

The operand.

Annotations
@Override
getOperationback to summary
public UnaryArithmeticOperation.Operation getOperation()
registerParametersback to summary
public void registerParameters(ParameterRegistry registry)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Doc from org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.

Parameters
registry:ParameterRegistry

The parameter registry with which to register.

Annotations
@Override
renderback to summary
public String render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Doc from org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition

Annotations
@Override
org.hibernate.query.criteria.internal.expression back to summary

public final Enum UnaryArithmeticOperation.Operation

extends Enum<UnaryArithmeticOperation.Operation>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final UnaryArithmeticOperation.Operation
public static final UnaryArithmeticOperation.Operation

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static UnaryArithmeticOperation.Operation
public static UnaryArithmeticOperation.Operation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

UNARY_MINUSback to summary
public static final UnaryArithmeticOperation.Operation UNARY_MINUS
UNARY_PLUSback to summary
public static final UnaryArithmeticOperation.Operation UNARY_PLUS

Constructor Detail

Operationback to summary
private Operation()

Method Detail

valueOfback to summary
public static UnaryArithmeticOperation.Operation valueOf(String name)
valuesback to summary
public static UnaryArithmeticOperation.Operation[] values()