Enum Class GenericDao.StandardSortKey

java.lang.Object
java.lang.Enum<GenericDao.StandardSortKey>
net.solarnetwork.dao.GenericDao.StandardSortKey
All Implemented Interfaces:
Serializable, Comparable<GenericDao.StandardSortKey>, Constable
Enclosing interface:
GenericDao<T extends Entity<K>,K>

public static enum GenericDao.StandardSortKey extends Enum<GenericDao.StandardSortKey>
Enumeration of a set of standard sort keys.

When using as a sort key, the Enum.toString() value should be used.

  • Enum Constant Details

  • Method Details

    • values

      public static GenericDao.StandardSortKey[] 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

      public static GenericDao.StandardSortKey valueOf(String name)
      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 name
      NullPointerException - if the argument is null