| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Expression | |
| private final BinaryArithmeticOperation. | |
| private final Expression |
| Access | Constructor and Description |
|---|---|
| public | BinaryArithmeticOperation(CriteriaBuilderImpl
The builder for query components. criteriaBuilder, Class<N> The operation result type resultType, BinaryArithmeticOperation.The operator (type of operation). operator,The left-hand operand. lhs, Expression<? extends N> The right-hand operand rhs)Creates an arithmetic operation based on 2 expressions. |
| public | BinaryArithmeticOperation(CriteriaBuilderImpl
The builder for query components. criteriaBuilder, Class<N> The operation result type javaType, BinaryArithmeticOperation.The operator (type of operation). operator,The left-hand operand lhs, N The right-hand operand (the literal) rhs)Creates an arithmetic operation based on an expression and a literal. |
| public | BinaryArithmeticOperation(CriteriaBuilderImpl
The builder for query components. criteriaBuilder, Class<N> The operation result type javaType, BinaryArithmeticOperation.The operator (type of operation). operator,The left-hand operand (the literal) lhs, Expression<? extends N> The right-hand operand rhs)Creates an arithmetic operation based on an expression and a literal. |
| Modifier and Type | Method and Description |
|---|---|
| public static Class | |
| public static Class | determineResultType(Class<? extends Number> argument1Type, Class<? extends Number> argument2Type, boolean isQuotientOperation)
|
| public static Class | Returns: The appropriate return type.The default return type to use if we cannot determine the java type of 'expression' operand. defaultType, Expression<? extends Number> The operand. expression)Helper for determining the appropriate operation return type based on one of the operands as an expression. |
| public static Class | Returns: The appropriate return type.The default return type to use if we cannot determine the java type of 'numberLiteral' operand. defaultType, Number The operand. numberLiteral)Helper for determining the appropriate operation return type based on one of the operands as a literal. |
| public Expression | getLeftHandOperand()
Implements org. |
| public BinaryArithmeticOperation. | |
| public Expression | getRightHandOperand()
Implements org. |
| public void | registerParameters(ParameterRegistry
The parameter registry with which to register. registry)Implements org. |
| public String | render(RenderingContext renderingContext)
Implements org. |
| lhs | back to summary |
|---|---|
| private final Expression<? extends N> lhs | |
| operator | back to summary |
|---|---|
| private final BinaryArithmeticOperation. | |
| rhs | back to summary |
|---|---|
| private final Expression<? extends N> rhs | |
| BinaryArithmeticOperation | back to summary |
|---|---|
| public BinaryArithmeticOperation(CriteriaBuilderImpl criteriaBuilder, Class<N> resultType, BinaryArithmeticOperation. Creates an arithmetic operation based on 2 expressions.
| |
| BinaryArithmeticOperation | back to summary |
|---|---|
| public BinaryArithmeticOperation(CriteriaBuilderImpl criteriaBuilder, Class<N> javaType, BinaryArithmeticOperation. Creates an arithmetic operation based on an expression and a literal.
| |
| BinaryArithmeticOperation | back to summary |
|---|---|
| public BinaryArithmeticOperation(CriteriaBuilderImpl criteriaBuilder, Class<N> javaType, BinaryArithmeticOperation. Creates an arithmetic operation based on an expression and a literal.
| |
| determineResultType | back to summary |
|---|---|
| public static Class | |
| determineResultType | back to summary |
|---|---|
| public static Class | |
| determineReturnType | back to summary |
|---|---|
| public static Class Helper for determining the appropriate operation return type based on one of the operands as an expression. | |
| determineReturnType | back to summary |
|---|---|
| public static Class Helper for determining the appropriate operation return type based on one of the operands as a literal. | |
| getLeftHandOperand | back to summary |
|---|---|
| public Expression Implements org. Doc from org. Get the left-hand operand.
| |
| getOperator | back to summary |
|---|---|
| public BinaryArithmeticOperation. | |
| getRightHandOperand | back to summary |
|---|---|
| public Expression Implements org. Doc from org. Get the right-hand operand.
| |
| registerParameters | back to summary |
|---|---|
| public void registerParameters(ParameterRegistry registry) Implements org. Doc from org. Register any parameters contained within this query component with the given registry.
| |
| render | back to summary |
|---|---|
| public String render(RenderingContext renderingContext) Implements org. Doc from org. Perform the rendering, returning the rendition
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BinaryArithmeticOperation. | |
| public static final BinaryArithmeticOperation. | |
| private static final char | |
| public static final BinaryArithmeticOperation. | |
| public static final BinaryArithmeticOperation. | |
| public static final BinaryArithmeticOperation. | |
| private static final char | |
| public static final BinaryArithmeticOperation. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract String | |
| private static String | |
| public static BinaryArithmeticOperation. | |
| public static BinaryArithmeticOperation. |
| ADD | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| DIVIDE | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| LEFT_PAREN | back to summary |
|---|---|
| private static final char LEFT_PAREN | |
| MOD | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| MULTIPLY | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| QUOT | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| RIGHT_PAREN | back to summary |
|---|---|
| private static final char RIGHT_PAREN | |
| SUBTRACT | back to summary |
|---|---|
| public static final BinaryArithmeticOperation. | |
| Operation | back to summary |
|---|---|
| private Operation() | |
| apply | back to summary |
|---|---|
| pack-priv abstract String apply(String lhs, String rhs) | |
| applyPrimitive | back to summary |
|---|---|
| private static String applyPrimitive(String lhs, char operator, String rhs) | |
| valueOf | back to summary |
|---|---|
| public static BinaryArithmeticOperation. | |
| values | back to summary |
|---|---|
| public static BinaryArithmeticOperation. | |