Enum Class CalendarEventField

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

public enum CalendarEventField extends Enum<CalendarEventField>
All fields of the calendar event 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 CalendarEventField[] 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 CalendarEventField 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()
    • get

      public <T> T get(Entity eventEntity) throws PersistException
      Throws:
      PersistException
    • set

      public void set(Entity eventEntity, Object value)
    • getObjectValue

      public abstract Object getObjectValue(CalendarEvent evnt)
      Returns the value from the specified bean that corresponds to this column.
    • setValues

      public static void setValues(Entity eventEntity, CalendarEvent value)
      Sets all values from the object into the entity.