Enum Class CalendarField

java.lang.Object
java.lang.Enum<CalendarField>
ch.tocco.nice2.optional.calendar.api.util.persist.CalendarField
All Implemented Interfaces:
Serializable, Comparable<CalendarField>, Constable

public enum CalendarField extends Enum<CalendarField>
All fields of the calendar entity as specified in the xml. The Enum.name() represent the exact field name. This is a convenient class to avoid using string all the time when accessing fields.
  • Enum Constant Details

  • Method Details

    • values

      public static CalendarField[] 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 CalendarField 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
    • isKey

      public boolean isKey()
    • getType

      public Class<?> getType()
    • isNotnull

      public boolean isNotnull()
    • getObjectValue

      public abstract Object getObjectValue(Calendar cal)
    • get

      public <T> T get(Entity calEntity)
    • set

      public void set(Entity calEntity, Object value)
    • setValues

      public static void setValues(Entity calEntity, Calendar calendar)
      Sets all values from the object into the entity. It will skip the key(s).