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

    • NONE

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

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

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

      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

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

  • Method Details

    • values

      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

      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

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

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

      public boolean isNone()
    • isSingle

      public boolean isSingle()
    • isOptional

      public boolean isOptional()
    • isManualSet

      public boolean isManualSet()
    • isMultiple

      public boolean isMultiple()