Enum CriteriaRestriction
- java.lang.Object
-
- java.lang.Enum<CriteriaRestriction>
-
- org.opennms.features.vaadin.dashboard.config.ui.editors.CriteriaRestriction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CriteriaRestriction>
public enum CriteriaRestriction extends java.lang.Enum<CriteriaRestriction>
ThisEnum
represents the different types of restrictions used to construct a criteria.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addRestriction(java.lang.String property, CriteriaBuilderHelper criteriaBuilderHelper, CriteriaBuilder criteriaBuilder, java.lang.Object[] values)
This abstract method adds a criteria to aCriteriaBuilder
.void
addRestrictionToCriteriaBuilder(CriteriaBuilderHelper criteriaBuilderHelper, CriteriaBuilder criteriaBuilder, java.lang.String[] values)
This method adds a given criteria to aCriteriaBuilder
.CriteriaEntry[]
getEntries()
Returns the defined entries for this restriction.static CriteriaRestriction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CriteriaRestriction
valueOfIgnoreCase(java.lang.String name)
This method returns aCriteriaRestriction
for a given string.static CriteriaRestriction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Asc
public static final CriteriaRestriction Asc
-
Desc
public static final CriteriaRestriction Desc
-
Between
public static final CriteriaRestriction Between
-
Contains
public static final CriteriaRestriction Contains
-
Distinct
public static final CriteriaRestriction Distinct
-
Eq
public static final CriteriaRestriction Eq
-
Ge
public static final CriteriaRestriction Ge
-
Gt
public static final CriteriaRestriction Gt
-
Ilike
public static final CriteriaRestriction Ilike
-
In
public static final CriteriaRestriction In
-
Iplike
public static final CriteriaRestriction Iplike
-
IsNull
public static final CriteriaRestriction IsNull
-
IsNotNull
public static final CriteriaRestriction IsNotNull
-
Le
public static final CriteriaRestriction Le
-
Lt
public static final CriteriaRestriction Lt
-
Like
public static final CriteriaRestriction Like
-
Limit
public static final CriteriaRestriction Limit
-
Ne
public static final CriteriaRestriction Ne
-
Not
public static final CriteriaRestriction Not
-
OrderBy
public static final CriteriaRestriction OrderBy
-
-
Method Detail
-
values
public static CriteriaRestriction[] 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 (CriteriaRestriction c : CriteriaRestriction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CriteriaRestriction 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
-
valueOfIgnoreCase
public static CriteriaRestriction valueOfIgnoreCase(java.lang.String name)
This method returns aCriteriaRestriction
for a given string. The search is case insensitive.- Parameters:
name
- the name to search for- Returns:
- the
CriteriaRestriction
found
-
getEntries
public CriteriaEntry[] getEntries()
Returns the defined entries for this restriction.- Returns:
- the entries required
-
addRestrictionToCriteriaBuilder
public void addRestrictionToCriteriaBuilder(CriteriaBuilderHelper criteriaBuilderHelper, CriteriaBuilder criteriaBuilder, java.lang.String[] values)
This method adds a given criteria to aCriteriaBuilder
.- Parameters:
criteriaBuilderHelper
- theCriteriaBuilderHelper
to be usedcriteriaBuilder
- theCriteriaBuilder
to be usedvalues
- the values of this criteria
-
addRestriction
public abstract void addRestriction(java.lang.String property, CriteriaBuilderHelper criteriaBuilderHelper, CriteriaBuilder criteriaBuilder, java.lang.Object[] values)
This abstract method adds a criteria to aCriteriaBuilder
.- Parameters:
property
- the propertycriteriaBuilderHelper
- theCriteriaBuilderHelper
to be usedcriteriaBuilder
- theCriteriaBuilder
to be usedvalues
- the values for this restriction
-
-