public enum XmlElementMetadata extends Enum<XmlElementMetadata>
Enum Constant and Description |
---|
ANY
Describes the
<any/> element |
ARRAY
Describes the
<array/> element |
BAG
Describes the
<bag/> element |
COLLECTION_ID
Describes the
<collection-id/> element |
COMPONENT
Describes the
<component/> element |
COMPOSITE_ID
Describes the
<composite-id/> element |
DISCRIMINATOR
Describes the
<discriminator/> element |
ELEMENT
Describes the
<element/> element |
ID
Describes the
<id/> element |
ID_BAG
Describes the
<id-bag/> element |
INDEX
Describes the
<index/> element |
INDEX_MANY_TO_MANY
Describes the
<index-many-to-many/> element |
KEY
Describes the
<key/> element |
KEY_MANY_TO_ONE
Describes the
<key-many-to-one/> element |
KEY_PROPERTY
Describes the
<key-property/> element |
LIST
Describes the
<list/> element |
LIST_INDEX
Describes the
<list-index/> element |
MANY_TO_ANY
Describes the
<many-to-aany/> element |
MANY_TO_MANY
Describes the
<many-to-many/> element |
MANY_TO_ONE
Describes the
<many-to-one/> element |
MAP
Describes the
<map/> element |
MAP_KEY
Describes the
<map-key/> element |
MAP_KEY_MANY_TO_MANY
Describes the
<map-key-many-to-many/> element |
MULTI_TENANCY
Describes the
<multi-tenancy/> element |
NATURAL_ID
Describes the
<natural-id/> element |
ONE_TO_ONE
Describes the
<one-to-one/> element |
PRIMITIVE_ARRAY
Describes the
<primitive-array/> element |
PROPERTIES
Describes the
<properties/> element |
PROPERTY
Describes the
<property/> element |
SET
Describes the
<set/> element |
TIMESTAMP
Describes the
<timestamp/> element |
VERSION
Describes the
<version/> element |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeNamed()
Can the source be named.
|
String |
getElementName()
The corresponding
hbm.xml element name. |
boolean |
isInherentlySingleColumn()
Can this source, by nature, define just a single column/formula?
|
static XmlElementMetadata |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XmlElementMetadata[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlElementMetadata ID
<id/>
elementpublic static final XmlElementMetadata COMPOSITE_ID
<composite-id/>
elementpublic static final XmlElementMetadata DISCRIMINATOR
<discriminator/>
elementpublic static final XmlElementMetadata MULTI_TENANCY
<multi-tenancy/>
elementpublic static final XmlElementMetadata VERSION
<version/>
elementpublic static final XmlElementMetadata TIMESTAMP
<timestamp/>
elementpublic static final XmlElementMetadata NATURAL_ID
<natural-id/>
elementpublic static final XmlElementMetadata PROPERTIES
<properties/>
elementpublic static final XmlElementMetadata PROPERTY
<property/>
elementpublic static final XmlElementMetadata KEY_PROPERTY
<key-property/>
elementpublic static final XmlElementMetadata MANY_TO_ONE
<many-to-one/>
elementpublic static final XmlElementMetadata KEY_MANY_TO_ONE
<key-many-to-one/>
elementpublic static final XmlElementMetadata ONE_TO_ONE
<one-to-one/>
elementpublic static final XmlElementMetadata ANY
<any/>
elementpublic static final XmlElementMetadata COMPONENT
<component/>
elementpublic static final XmlElementMetadata KEY
<key/>
elementpublic static final XmlElementMetadata SET
<set/>
elementpublic static final XmlElementMetadata LIST
<list/>
elementpublic static final XmlElementMetadata BAG
<bag/>
elementpublic static final XmlElementMetadata ID_BAG
<id-bag/>
elementpublic static final XmlElementMetadata MAP
<map/>
elementpublic static final XmlElementMetadata ARRAY
<array/>
elementpublic static final XmlElementMetadata PRIMITIVE_ARRAY
<primitive-array/>
elementpublic static final XmlElementMetadata COLLECTION_ID
<collection-id/>
elementpublic static final XmlElementMetadata ELEMENT
<element/>
elementpublic static final XmlElementMetadata MANY_TO_MANY
<many-to-many/>
elementpublic static final XmlElementMetadata MANY_TO_ANY
<many-to-aany/>
elementpublic static final XmlElementMetadata MAP_KEY
<map-key/>
elementpublic static final XmlElementMetadata MAP_KEY_MANY_TO_MANY
<map-key-many-to-many/>
elementpublic static final XmlElementMetadata INDEX
<index/>
elementpublic static final XmlElementMetadata INDEX_MANY_TO_MANY
<index-many-to-many/>
elementpublic static final XmlElementMetadata LIST_INDEX
<list-index/>
elementpublic static XmlElementMetadata[] values()
for (XmlElementMetadata c : XmlElementMetadata.values()) System.out.println(c);
public static XmlElementMetadata valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getElementName()
hbm.xml
element name. Used in error reportinghbm.xml
element namepublic boolean isInherentlySingleColumn()
true
indicates that the source will refer to just a
single column.public boolean canBeNamed()
true
indicates that the source can be named and therefore
the column (assuming just one) is eligible for implicit naming.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.