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 enumBinaryArithmeticOperatorextendsEnum<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 chargetOperatorSqlText()StringgetOperatorSqlTextString()abstractStringtoLoggableText(String lhs,String rhs)staticBinaryArithmeticOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.staticBinaryArithmeticOperator[]values()Returns an array containing the constants of this enum type, inthe 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, inthe order they are declared. This method may be used to iterateover 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 matchexactly an identifier used to declare anenum 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()