枚举 XmlElementMetadata
- java.lang.Object
-
- java.lang.Enum<XmlElementMetadata>
-
- org.hibernate.boot.model.source.internal.hbm.XmlElementMetadata
-
- 所有已实现的接口:
Serializable,Comparable<XmlElementMetadata>
public enum XmlElementMetadata extends Enum<XmlElementMetadata>
Provides meta-information about XML elements.- 作者:
- Steve Ebersole
-
-
枚举常量概要
枚举常量 枚举常量 说明 ANYDescribes the<any/>elementARRAYDescribes the<array/>elementBAGDescribes the<bag/>elementCOLLECTION_IDDescribes the<collection-id/>elementCOMPONENTDescribes the<component/>elementCOMPOSITE_IDDescribes the<composite-id/>elementDISCRIMINATORDescribes the<discriminator/>elementELEMENTDescribes the<element/>elementIDDescribes the<id/>elementID_BAGDescribes the<id-bag/>elementINDEXDescribes the<index/>elementINDEX_MANY_TO_MANYDescribes the<index-many-to-many/>elementKEYDescribes the<key/>elementKEY_MANY_TO_ONEDescribes the<key-many-to-one/>elementKEY_PROPERTYDescribes the<key-property/>elementLISTDescribes the<list/>elementLIST_INDEXDescribes the<list-index/>elementMANY_TO_ANYDescribes the<many-to-aany/>elementMANY_TO_MANYDescribes the<many-to-many/>elementMANY_TO_ONEDescribes the<many-to-one/>elementMAPDescribes the<map/>elementMAP_KEYDescribes the<map-key/>elementMAP_KEY_MANY_TO_MANYDescribes the<map-key-many-to-many/>elementMULTI_TENANCYDescribes the<multi-tenancy/>elementNATURAL_IDDescribes the<natural-id/>elementONE_TO_ONEDescribes the<one-to-one/>elementPRIMITIVE_ARRAYDescribes the<primitive-array/>elementPROPERTIESDescribes the<properties/>elementPROPERTYDescribes the<property/>elementSETDescribes the<set/>elementTIMESTAMPDescribes the<timestamp/>elementVERSIONDescribes the<version/>element
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanBeNamed()Can the source be named.StringgetElementName()The correspondinghbm.xmlelement name.booleanisInherentlySingleColumn()Can this source, by nature, define just a single column/formula?static XmlElementMetadatavalueOf(String name)返回带有指定名称的该类型的枚举常量。static XmlElementMetadata[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
ID
public static final XmlElementMetadata ID
Describes the<id/>element
-
COMPOSITE_ID
public static final XmlElementMetadata COMPOSITE_ID
Describes the<composite-id/>element
-
DISCRIMINATOR
public static final XmlElementMetadata DISCRIMINATOR
Describes the<discriminator/>element
-
MULTI_TENANCY
public static final XmlElementMetadata MULTI_TENANCY
Describes the<multi-tenancy/>element
-
VERSION
public static final XmlElementMetadata VERSION
Describes the<version/>element
-
TIMESTAMP
public static final XmlElementMetadata TIMESTAMP
Describes the<timestamp/>element
-
NATURAL_ID
public static final XmlElementMetadata NATURAL_ID
Describes the<natural-id/>element
-
PROPERTIES
public static final XmlElementMetadata PROPERTIES
Describes the<properties/>element
-
PROPERTY
public static final XmlElementMetadata PROPERTY
Describes the<property/>element
-
KEY_PROPERTY
public static final XmlElementMetadata KEY_PROPERTY
Describes the<key-property/>element
-
MANY_TO_ONE
public static final XmlElementMetadata MANY_TO_ONE
Describes the<many-to-one/>element
-
KEY_MANY_TO_ONE
public static final XmlElementMetadata KEY_MANY_TO_ONE
Describes the<key-many-to-one/>element
-
ONE_TO_ONE
public static final XmlElementMetadata ONE_TO_ONE
Describes the<one-to-one/>element
-
ANY
public static final XmlElementMetadata ANY
Describes the<any/>element
-
COMPONENT
public static final XmlElementMetadata COMPONENT
Describes the<component/>element
-
KEY
public static final XmlElementMetadata KEY
Describes the<key/>element
-
SET
public static final XmlElementMetadata SET
Describes the<set/>element
-
LIST
public static final XmlElementMetadata LIST
Describes the<list/>element
-
BAG
public static final XmlElementMetadata BAG
Describes the<bag/>element
-
ID_BAG
public static final XmlElementMetadata ID_BAG
Describes the<id-bag/>element
-
MAP
public static final XmlElementMetadata MAP
Describes the<map/>element
-
ARRAY
public static final XmlElementMetadata ARRAY
Describes the<array/>element
-
PRIMITIVE_ARRAY
public static final XmlElementMetadata PRIMITIVE_ARRAY
Describes the<primitive-array/>element
-
COLLECTION_ID
public static final XmlElementMetadata COLLECTION_ID
Describes the<collection-id/>element
-
ELEMENT
public static final XmlElementMetadata ELEMENT
Describes the<element/>element
-
MANY_TO_MANY
public static final XmlElementMetadata MANY_TO_MANY
Describes the<many-to-many/>element
-
MANY_TO_ANY
public static final XmlElementMetadata MANY_TO_ANY
Describes the<many-to-aany/>element
-
MAP_KEY
public static final XmlElementMetadata MAP_KEY
Describes the<map-key/>element
-
MAP_KEY_MANY_TO_MANY
public static final XmlElementMetadata MAP_KEY_MANY_TO_MANY
Describes the<map-key-many-to-many/>element
-
INDEX
public static final XmlElementMetadata INDEX
Describes the<index/>element
-
INDEX_MANY_TO_MANY
public static final XmlElementMetadata INDEX_MANY_TO_MANY
Describes the<index-many-to-many/>element
-
LIST_INDEX
public static final XmlElementMetadata LIST_INDEX
Describes the<list-index/>element
-
-
方法详细资料
-
values
public static XmlElementMetadata[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (XmlElementMetadata c : XmlElementMetadata.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static XmlElementMetadata valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getElementName
public String getElementName()
The correspondinghbm.xmlelement name. Used in error reporting- 返回:
- The
hbm.xmlelement name
-
isInherentlySingleColumn
public boolean isInherentlySingleColumn()
Can this source, by nature, define just a single column/formula?- 返回:
trueindicates 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).- 返回:
trueindicates that the source can be named and therefore the column (assuming just one) is eligible for implicit naming.
-
-