Enum Class XmlElementMetadata
- All Implemented Interfaces:
Serializable
,Comparable<XmlElementMetadata>
,java.lang.constant.Constable
Provides meta-information about XML elements.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDescribes the<any/>
elementDescribes the<array/>
elementDescribes the<bag/>
elementDescribes the<collection-id/>
elementDescribes the<component/>
elementDescribes the<composite-id/>
elementDescribes the<discriminator/>
elementDescribes the<element/>
elementDescribes the<id/>
elementDescribes the<id-bag/>
elementDescribes the<index/>
elementDescribes the<index-many-to-many/>
elementDescribes the<key/>
elementDescribes the<key-many-to-one/>
elementDescribes the<key-property/>
elementDescribes the<list/>
elementDescribes the<list-index/>
elementDescribes the<many-to-any/>
elementDescribes the<many-to-many/>
elementDescribes the<many-to-one/>
elementDescribes the<map/>
elementDescribes the<map-key/>
elementDescribes the<map-key-many-to-many/>
elementDescribes the<multi-tenancy/>
elementDescribes the<natural-id/>
elementDescribes the<one-to-one/>
elementDescribes the<primitive-array/>
elementDescribes the<properties/>
elementDescribes the<property/>
elementDescribes the<set/>
elementDescribes the<timestamp/>
elementDescribes the<version/>
element -
Method Summary
Modifier and TypeMethodDescriptionboolean
Can the source be named.The correspondinghbm.xml
element name.boolean
Can this source, by nature, define just a single column/formula?static XmlElementMetadata
Returns the enum constant of this class with the specified name.static XmlElementMetadata[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ID
Describes the<id/>
element -
COMPOSITE_ID
Describes the<composite-id/>
element -
DISCRIMINATOR
Describes the<discriminator/>
element -
MULTI_TENANCY
Describes the<multi-tenancy/>
element -
VERSION
Describes the<version/>
element -
TIMESTAMP
Describes the<timestamp/>
element -
NATURAL_ID
Describes the<natural-id/>
element -
PROPERTIES
Describes the<properties/>
element -
PROPERTY
Describes the<property/>
element -
KEY_PROPERTY
Describes the<key-property/>
element -
MANY_TO_ONE
Describes the<many-to-one/>
element -
KEY_MANY_TO_ONE
Describes the<key-many-to-one/>
element -
ONE_TO_ONE
Describes the<one-to-one/>
element -
ANY
Describes the<any/>
element -
COMPONENT
Describes the<component/>
element -
KEY
Describes the<key/>
element -
SET
Describes the<set/>
element -
LIST
Describes the<list/>
element -
BAG
Describes the<bag/>
element -
ID_BAG
Describes the<id-bag/>
element -
MAP
Describes the<map/>
element -
ARRAY
Describes the<array/>
element -
PRIMITIVE_ARRAY
Describes the<primitive-array/>
element -
COLLECTION_ID
Describes the<collection-id/>
element -
ELEMENT
Describes the<element/>
element -
MANY_TO_MANY
Describes the<many-to-many/>
element -
MANY_TO_ANY
Describes the<many-to-any/>
element -
MAP_KEY
Describes the<map-key/>
element -
MAP_KEY_MANY_TO_MANY
Describes the<map-key-many-to-many/>
element -
INDEX
Describes the<index/>
element -
INDEX_MANY_TO_MANY
Describes the<index-many-to-many/>
element -
LIST_INDEX
Describes the<list-index/>
element
-
-
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
-
getElementName
The correspondinghbm.xml
element name. Used in error reporting- Returns:
- The
hbm.xml
element name
-
isInherentlySingleColumn
public boolean isInherentlySingleColumn()Can this source, by nature, define just a single column/formula?- Returns:
true
indicates that the source will refer to just a single column.
-
canBeNamed
public boolean canBeNamed()Can the source be named. This is used in implicit naming (naming strategy).- Returns:
true
indicates that the source can be named and therefore the column (assuming just one) is eligible for implicit naming.
-