Package ch.tocco.nice2.model.entity.api
Enum Class BusinessUnitType
- All Implemented Interfaces:
Serializable
,Comparable<BusinessUnitType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSame asOPTIONAL
but when an entity is saved, the business unit is not set automatically by the interceptor.Creates a n:n relation between the entity and entity Business_unitDoesn't create a relation between the entity and entity Business_unitCreates a n:0..1 relation between the entity and entity Business_unit[DEFAULT] Creates a n:1 relation between the entity and entity Business_unit -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isLinked()
Returns true for `SINGLE`, `MULTIPLE` and `OPTIONAL`, if the entity is configured to be linked to `Business_unit`.boolean
boolean
boolean
isNone()
boolean
boolean
isSingle()
boolean
Returns true for `SINGLE`, `OPTIONAL` and `MANUAL_SET`; if the entity is connected to Business_unit but not n:m.static BusinessUnitType
Returns the enum constant of this class with the specified name.static BusinessUnitType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Doesn't create a relation between the entity and entity Business_unit -
SINGLE
[DEFAULT] Creates a n:1 relation between the entity and entity Business_unit -
MULTIPLE
Creates a n:n relation between the entity and entity Business_unit -
MANUAL_SET
Same asOPTIONAL
but when an entity is saved, the business unit is not set automatically by the interceptor. -
OPTIONAL
Creates a n:0..1 relation between the entity and entity Business_unit
-
-
Field Details
-
ENTITY_NAME
- See Also:
-
RELATION_NAME
- See Also:
-
NULL_BUSINESS_UNIT_NAME
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- 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()
-