Enum Class BusinessUnitType

java.lang.Object
java.lang.Enum<BusinessUnitType>
ch.tocco.nice2.model.entity.api.BusinessUnitType
All Implemented Interfaces:
Serializable, Comparable<BusinessUnitType>, Constable

public enum BusinessUnitType extends Enum<BusinessUnitType>
  • Enum Constant Details Link icon

    • NONE Link icon

      public static final BusinessUnitType NONE
      Doesn't create a relation between the entity and entity Business_unit
    • SINGLE Link icon

      public static final BusinessUnitType SINGLE
      [DEFAULT] Creates a n:1 relation between the entity and entity Business_unit
    • MULTIPLE Link icon

      public static final BusinessUnitType MULTIPLE
      Creates a n:n relation between the entity and entity Business_unit
    • MANUAL_SET Link icon

      public static final BusinessUnitType MANUAL_SET
      Same as OPTIONAL but when an entity is saved, the business unit is not set automatically by the interceptor.
    • OPTIONAL Link icon

      public static final BusinessUnitType OPTIONAL
      Creates a n:0..1 relation between the entity and entity Business_unit
  • Field Details Link icon

  • Method Details Link icon

    • values Link icon

      public static BusinessUnitType[] 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 Link icon

      public static BusinessUnitType 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
    • isLinked Link icon

      public boolean isLinked()
      Returns true for `SINGLE`, `MULTIPLE` and `OPTIONAL`, if the entity is configured to be linked to `Business_unit`.
    • isSingleOrOptional Link icon

      public boolean isSingleOrOptional()
      Returns true for `SINGLE`, `OPTIONAL` and `MANUAL_SET`; if the entity is connected to Business_unit but not n:m.
    • isNone Link icon

      public boolean isNone()
    • isSingle Link icon

      public boolean isSingle()
    • isOptional Link icon

      public boolean isOptional()
    • isManualSet Link icon

      public boolean isManualSet()
    • isMultiple Link icon

      public boolean isMultiple()