|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SearchOperator>
blackboard.persist.SearchOperator
public enum SearchOperator
Set of operators to use in search methods.
| Enum Constant Summary | |
|---|---|
Between
|
|
Contains
|
|
Equals
|
|
GreaterThan
|
|
In
|
|
IsNotNull
|
|
IsNull
|
|
LessThan
|
|
Like
|
|
NotBlank
|
|
StartsWith
|
|
| Method Summary | |
|---|---|
Criterion |
buildCriteria(CriterionBuilder builder,
java.lang.String name,
java.lang.Object... values)
Builds a Criterion that conforms to the current operator using the
given name and value. |
boolean |
dateOperator()
Returns true if the operator can be used in date comparisons |
java.lang.String |
formatValue(java.lang.String in)
Formats the input value depending on the type of operation, notably textual "like" operations. |
static java.util.List<SearchOperator> |
getDefaultSearchBarOperators()
|
java.lang.String |
getLabel()
|
boolean |
numericOperator()
Returns true if the operator can be used in numeric comparisons |
boolean |
requiresInput()
|
boolean |
textOperator()
Returns whether the operator can be used for text parameters. |
static SearchOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SearchOperator[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SearchOperator GreaterThan
public static final SearchOperator LessThan
public static final SearchOperator Equals
public static final SearchOperator Contains
public static final SearchOperator StartsWith
public static final SearchOperator Like
public static final SearchOperator Between
public static final SearchOperator In
public static final SearchOperator IsNull
public static final SearchOperator IsNotNull
public static final SearchOperator NotBlank
| Method Detail |
|---|
public static final SearchOperator[] values()
for(SearchOperator c : SearchOperator.values())
System.out.println(c);
public static SearchOperator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String getLabel()
public static java.util.List<SearchOperator> getDefaultSearchBarOperators()
public java.lang.String formatValue(java.lang.String in)
in - Parameter to format
public boolean textOperator()
public boolean dateOperator()
public boolean numericOperator()
public Criterion buildCriteria(CriterionBuilder builder,
java.lang.String name,
java.lang.Object... values)
Criterion that conforms to the current operator using the
given name and value. Text-based comparisons will be performed in a case-
insensitive manner.
builder - the CriterionBuilder that will be used to build the
Criterionname - the attribute name to use in the criteriavalue - the value to use in the criteriapublic boolean requiresInput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||