Package br.com.jarch.util.type
Enum ConditionSearchType
- java.lang.Object
-
- java.lang.Enum<ConditionSearchType>
-
- br.com.jarch.util.type.ConditionSearchType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConditionSearchType>
public enum ConditionSearchType extends java.lang.Enum<ConditionSearchType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
DIFFERENT
EMPTY
ENDS_WITH
EQUAL
EXISTS
JPQL
LARGER
LARGER_EQUAL
LESS
LESS_EQUAL
MEMBER_OF
NOT_CONTAINS
NOT_EMPTY
NOT_EXISTS
NOT_MEMBER_OF
STARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<ConditionSearchType>
all()
static java.util.Collection<ConditionSearchType>
allMinusContainsExistsStartsEnds()
static java.util.Collection<ConditionSearchType>
containsAndStartsAndEnds()
static java.util.Collection<ConditionSearchType>
equalAndDifferent()
static java.util.Collection<ConditionSearchType>
equalAndDifferentAndContainsAndStartsAndEnds()
abstract java.lang.String
generateConditionWhereJpql(java.lang.Class<?> clazzEntity, ParamFieldValue paramFieldValue)
java.lang.String
getDescription()
java.lang.String
getJpql()
abstract boolean
validTargetValue(java.lang.Object target, java.lang.Object value)
static ConditionSearchType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConditionSearchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LARGER
public static final ConditionSearchType LARGER
-
LESS
public static final ConditionSearchType LESS
-
EQUAL
public static final ConditionSearchType EQUAL
-
DIFFERENT
public static final ConditionSearchType DIFFERENT
-
LARGER_EQUAL
public static final ConditionSearchType LARGER_EQUAL
-
LESS_EQUAL
public static final ConditionSearchType LESS_EQUAL
-
STARTS_WITH
public static final ConditionSearchType STARTS_WITH
-
CONTAINS
public static final ConditionSearchType CONTAINS
-
NOT_CONTAINS
public static final ConditionSearchType NOT_CONTAINS
-
ENDS_WITH
public static final ConditionSearchType ENDS_WITH
-
EXISTS
public static final ConditionSearchType EXISTS
-
NOT_EXISTS
public static final ConditionSearchType NOT_EXISTS
-
EMPTY
public static final ConditionSearchType EMPTY
-
NOT_EMPTY
public static final ConditionSearchType NOT_EMPTY
-
MEMBER_OF
public static final ConditionSearchType MEMBER_OF
-
NOT_MEMBER_OF
public static final ConditionSearchType NOT_MEMBER_OF
-
JPQL
public static final ConditionSearchType JPQL
-
-
Method Detail
-
values
public static ConditionSearchType[] 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 (ConditionSearchType c : ConditionSearchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConditionSearchType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
validTargetValue
public abstract boolean validTargetValue(java.lang.Object target, java.lang.Object value)
-
generateConditionWhereJpql
public abstract java.lang.String generateConditionWhereJpql(java.lang.Class<?> clazzEntity, ParamFieldValue paramFieldValue)
-
equalAndDifferent
public static java.util.Collection<ConditionSearchType> equalAndDifferent()
-
allMinusContainsExistsStartsEnds
public static java.util.Collection<ConditionSearchType> allMinusContainsExistsStartsEnds()
-
equalAndDifferentAndContainsAndStartsAndEnds
public static java.util.Collection<ConditionSearchType> equalAndDifferentAndContainsAndStartsAndEnds()
-
containsAndStartsAndEnds
public static java.util.Collection<ConditionSearchType> containsAndStartsAndEnds()
-
all
public static java.util.Collection<ConditionSearchType> all()
-
getDescription
public java.lang.String getDescription()
-
getJpql
public java.lang.String getJpql()
-
-