|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SortStyle>
org.opennms.web.alarm.SortStyle
public enum SortStyle
Convenience class to determine sort style of a query.
| Method Summary | |
|---|---|
String |
getName()
|
protected String |
getOrderByClause()
Convenience method for getting the SQL ORDER BY clause related to a given sort style. |
String |
getShortName()
|
static SortStyle |
getSortStyle(String sortStyleString)
|
String |
toString()
|
static SortStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SortStyle[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SortStyle SEVERITY
public static final SortStyle LASTEVENTTIME
public static final SortStyle FIRSTEVENTTIME
public static final SortStyle NODE
public static final SortStyle INTERFACE
public static final SortStyle SERVICE
public static final SortStyle POLLER
public static final SortStyle ID
public static final SortStyle COUNT
public static final SortStyle REVERSE_SEVERITY
public static final SortStyle REVERSE_LASTEVENTTIME
public static final SortStyle REVERSE_FIRSTEVENTTIME
public static final SortStyle REVERSE_NODE
public static final SortStyle REVERSE_INTERFACE
public static final SortStyle REVERSE_SERVICE
public static final SortStyle REVERSE_POLLER
public static final SortStyle REVERSE_ID
public static final SortStyle REVERSE_COUNT
| Method Detail |
|---|
public static SortStyle[] values()
for (SortStyle c : SortStyle.values()) System.out.println(c);
public static SortStyle valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<SortStyle>public String getName()
public String getShortName()
public static SortStyle getSortStyle(String sortStyleString)
protected String getOrderByClause()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||