Enum PluralAttributeElementNature
- java.lang.Object
-
- java.lang.Enum<PluralAttributeElementNature>
-
- org.hibernate.boot.model.source.spi.PluralAttributeElementNature
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PluralAttributeElementNature>
public enum PluralAttributeElementNature extends java.lang.Enum<PluralAttributeElementNature>
Describes the nature of plural attribute elements in terms of relational implications.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATE
The collection elements are compositions.BASIC
The collection elements are basic, simple values.MANY_TO_ANY
The collection elements represent entity's in a multi-valued ANY mapping.MANY_TO_MANY
The collection elements represent entity's in a many-to-many association.ONE_TO_MANY
The collection elements represent entity's in a one-to-many association.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAssociation()
boolean
isCascadeable()
static PluralAttributeElementNature
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PluralAttributeElementNature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BASIC
public static final PluralAttributeElementNature BASIC
The collection elements are basic, simple values.
-
AGGREGATE
public static final PluralAttributeElementNature AGGREGATE
The collection elements are compositions.
-
ONE_TO_MANY
public static final PluralAttributeElementNature ONE_TO_MANY
The collection elements represent entity's in a one-to-many association.
-
MANY_TO_MANY
public static final PluralAttributeElementNature MANY_TO_MANY
The collection elements represent entity's in a many-to-many association.
-
MANY_TO_ANY
public static final PluralAttributeElementNature MANY_TO_ANY
The collection elements represent entity's in a multi-valued ANY mapping.
-
-
Method Detail
-
values
public static PluralAttributeElementNature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluralAttributeElementNature c : PluralAttributeElementNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluralAttributeElementNature valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isAssociation
public boolean isAssociation()
-
isCascadeable
public boolean isCascadeable()
-
-