Package org.hibernate.query.sqm
Enum BinaryArithmeticOperator
- java.lang.Object
-
- java.lang.Enum<BinaryArithmeticOperator>
-
- org.hibernate.query.sqm.BinaryArithmeticOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<BinaryArithmeticOperator>
public enum BinaryArithmeticOperator extends Enum<BinaryArithmeticOperator>
Enumeration of standard binary arithmetic operators
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract char
getOperatorSqlText()
String
getOperatorSqlTextString()
abstract String
toLoggableText(String lhs, String rhs)
static BinaryArithmeticOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static BinaryArithmeticOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final BinaryArithmeticOperator ADD
-
SUBTRACT
public static final BinaryArithmeticOperator SUBTRACT
-
MULTIPLY
public static final BinaryArithmeticOperator MULTIPLY
-
DIVIDE
public static final BinaryArithmeticOperator DIVIDE
-
QUOT
public static final BinaryArithmeticOperator QUOT
-
MODULO
public static final BinaryArithmeticOperator MODULO
-
DIVIDE_PORTABLE
public static final BinaryArithmeticOperator DIVIDE_PORTABLE
"Portable" division, that is, true integer division when the operands are integers.
-
-
Method Detail
-
values
public static BinaryArithmeticOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryArithmeticOperator c : BinaryArithmeticOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryArithmeticOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getOperatorSqlText
public abstract char getOperatorSqlText()
-
getOperatorSqlTextString
public String getOperatorSqlTextString()
-
-