Enum TrimExpression.Specification
java.lang.Object
java.lang.Enum<TrimExpression.Specification>
org.eclipse.persistence.jpa.jpql.parser.TrimExpression.Specification
- All Implemented Interfaces:
Serializable
,Comparable<TrimExpression.Specification>
,java.lang.constant.Constable
- Enclosing class:
TrimExpression
The possible ways to trim the string.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe leading and trailing parts of the string will be trimmed.Used when the trim specification is not specified, by default it means the leading and trailing parts of the string will be trimmed.Only the leading part of the string will be trimmed.Only the trailing part of the string will be trimmed. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the actual identifier associated with the constant.static TrimExpression.Specification
Returns the enum constant of this type with the specified name.static TrimExpression.Specification[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOTH
The leading and trailing parts of the string will be trimmed. -
DEFAULT
Used when the trim specification is not specified, by default it means the leading and trailing parts of the string will be trimmed. -
LEADING
Only the leading part of the string will be trimmed. -
TRAILING
Only the trailing part of the string will be trimmed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
Returns the actual identifier associated with the constant.- Returns:
- The identifier associated with the constant or an empty string for
DEFAULT
-