Package org.dspace.contentreport
Enum Class QueryOperator
- All Implemented Interfaces:
Serializable,Comparable<QueryOperator>,Constable
Operators available for creating predicates to query the
Filtered Items report
- Author:
- Jean-François Morin (Université Laval)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.criteria.PredicatebuildJpaPredicate(String val, String regexClause, JpaCriteriaBuilderKit<MetadataValue> jpaKit) static QueryOperatorgetCode()booleanbooleanstatic QueryOperatorReturns the enum constant of this class with the specified name.static QueryOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXISTS
-
DOES_NOT_EXIST
-
EQUALS
-
DOES_NOT_EQUAL
-
LIKE
-
NOT_LIKE
-
CONTAINS
-
DOES_NOT_CONTAIN
-
MATCHES
-
DOES_NOT_MATCH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
-
getUsesRegex
public boolean getUsesRegex() -
getNegate
public boolean getNegate() -
buildJpaPredicate
public jakarta.persistence.criteria.Predicate buildJpaPredicate(String val, String regexClause, JpaCriteriaBuilderKit<MetadataValue> jpaKit) -
get
-