Package javax.persistence.metamodel
Enum Class Attribute.PersistentAttributeType
java.lang.Object
java.lang.Enum<Attribute.PersistentAttributeType>
javax.persistence.metamodel.Attribute.PersistentAttributeType
- All Implemented Interfaces:
Serializable
,Comparable<Attribute.PersistentAttributeType>
,Constable
public static enum Attribute.PersistentAttributeType
extends Enum<Attribute.PersistentAttributeType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBasic attributeElement collectionEmbeddable class attributeMany-to-many associationMany-to-one associationOne-to-many associationOne-to-one association -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static Attribute.PersistentAttributeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANY_TO_ONE
Many-to-one association -
ONE_TO_ONE
One-to-one association -
BASIC
Basic attribute -
EMBEDDED
Embeddable class attribute -
MANY_TO_MANY
Many-to-many association -
ONE_TO_MANY
One-to-many association -
ELEMENT_COLLECTION
Element collection
-
-
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
-