Package net.solarnetwork.dao
Enum Class GenericDao.StandardSortKey
- All Implemented Interfaces:
Serializable,Comparable<GenericDao.StandardSortKey>,Constable
- Enclosing interface:
- GenericDao<T extends Entity<K>,
K>
Enumeration of a set of standard sort keys.
When using as a sort key, the Enum.toString() value should be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericDao.StandardSortKeyReturns the enum constant of this class with the specified name.static GenericDao.StandardSortKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
Sort by the entity creation date. -
ID
Sort by the entity primary key.
-
-
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
-