Class JaxbElementCollection
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbElementCollection
-
- All Implemented Interfaces:
Serializable
,CollectionAttribute
,FetchableAttribute
,PersistentAttribute
public class JaxbElementCollection extends Object implements Serializable, CollectionAttribute
See `jakarta.persistence.ElementCollection` See `jakarta.persistence.OrderBy` See `jakarta.persistence.OrderColumn` See `@org.hibernate.annotations.AttributeAccessor` See `@org.hibernate.annotations.OptimisticLock` See `@org.hibernate.annotations.SortComparator` See `@org.hibernate.annotations.SortNatural` See `@jakarta.persistence.Lob` See `@jakarta.persistence.Temporal` See `@jakarta.persistence.Enumerated` See `@jakarta.persistence.Convert` See `@org.hibernate.annotations.Nationalized`Java class for element-collection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="element-collection"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <element name="order-by" type="{http://www.hibernate.org/xsd/orm/mapping}order-by" minOccurs="0"/> <element name="order-column" type="{http://www.hibernate.org/xsd/orm/mapping}order-column" minOccurs="0"/> <element name="sort" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> <choice> <element name="map-key" type="{http://www.hibernate.org/xsd/orm/mapping}map-key" minOccurs="0"/> <sequence> <element name="map-key-class" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-class" minOccurs="0"/> <choice> <element name="map-key-temporal" type="{http://www.hibernate.org/xsd/orm/mapping}temporal" minOccurs="0"/> <element name="map-key-enumerated" type="{http://www.hibernate.org/xsd/orm/mapping}enumerated" minOccurs="0"/> <sequence> <element name="map-key-attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="map-key-convert" type="{http://www.hibernate.org/xsd/orm/mapping}convert" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <choice> <choice> <element name="map-key-column" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-column" minOccurs="0"/> <element name="map-key-formula" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> <sequence> <element name="map-key-join-column" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="map-key-foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> </choice> </sequence> </choice> <choice> <sequence> <choice> <element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" minOccurs="0"/> <element name="formula" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> <choice> <element name="temporal" type="{http://www.hibernate.org/xsd/orm/mapping}temporal" minOccurs="0"/> <element name="enumerated" type="{http://www.hibernate.org/xsd/orm/mapping}enumerated" minOccurs="0"/> <element name="lob" type="{http://www.hibernate.org/xsd/orm/mapping}lob" minOccurs="0"/> <element name="nationalized" type="{http://www.hibernate.org/xsd/orm/mapping}nationalized" minOccurs="0"/> </choice> </sequence> <sequence> <element name="attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="association-override" type="{http://www.hibernate.org/xsd/orm/mapping}association-override" maxOccurs="unbounded" minOccurs="0"/> <element name="convert" type="{http://www.hibernate.org/xsd/orm/mapping}convert" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <element name="collection-table" type="{http://www.hibernate.org/xsd/orm/mapping}collection-table" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="target-class" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="fetch" type="{http://www.hibernate.org/xsd/orm/mapping}fetch-type" /> <attribute name="fetch-mode" type="{http://www.hibernate.org/xsd/orm/mapping}plural-fetch-mode" /> <attribute name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type" /> <attribute name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description JaxbElementCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.AccessType
getAccess()
Gets the value of the access property.List<JaxbAssociationOverride>
getAssociationOverride()
Gets the value of the associationOverride property.String
getAttributeAccessor()
Gets the value of the attributeAccessor property.List<JaxbAttributeOverride>
getAttributeOverride()
Gets the value of the attributeOverride property.JaxbCollectionTable
getCollectionTable()
Gets the value of the collectionTable property.JaxbColumn
getColumn()
Gets the value of the column property.List<JaxbConvert>
getConvert()
Gets the value of the convert property.jakarta.persistence.EnumType
getEnumerated()
Gets the value of the enumerated property.jakarta.persistence.FetchType
getFetch()
Gets the value of the fetch property.JaxbPluralFetchMode
getFetchMode()
Gets the value of the fetchMode property.String
getFormula()
Gets the value of the formula property.JaxbLob
getLob()
Gets the value of the lob property.JaxbMapKey
getMapKey()
Gets the value of the mapKey property.List<JaxbAttributeOverride>
getMapKeyAttributeOverride()
Gets the value of the mapKeyAttributeOverride property.JaxbMapKeyClass
getMapKeyClass()
Gets the value of the mapKeyClass property.JaxbMapKeyColumn
getMapKeyColumn()
Gets the value of the mapKeyColumn property.List<JaxbConvert>
getMapKeyConvert()
Gets the value of the mapKeyConvert property.jakarta.persistence.EnumType
getMapKeyEnumerated()
Gets the value of the mapKeyEnumerated property.JaxbForeignKey
getMapKeyForeignKey()
Gets the value of the mapKeyForeignKey property.String
getMapKeyFormula()
Gets the value of the mapKeyFormula property.List<JaxbMapKeyJoinColumn>
getMapKeyJoinColumn()
Gets the value of the mapKeyJoinColumn property.jakarta.persistence.TemporalType
getMapKeyTemporal()
Gets the value of the mapKeyTemporal property.String
getName()
Gets the value of the name property.JaxbNationalized
getNationalized()
Gets the value of the nationalized property.String
getOrderBy()
Gets the value of the orderBy property.JaxbOrderColumn
getOrderColumn()
Gets the value of the orderColumn property.String
getSort()
Gets the value of the sort property.String
getTargetClass()
Gets the value of the targetClass property.jakarta.persistence.TemporalType
getTemporal()
Gets the value of the temporal property.boolean
isOptimisticLock()
Gets the value of the optimisticLock property.void
setAccess(jakarta.persistence.AccessType value)
Sets the value of the access property.void
setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.void
setCollectionTable(JaxbCollectionTable value)
Sets the value of the collectionTable property.void
setColumn(JaxbColumn value)
Sets the value of the column property.void
setEnumerated(jakarta.persistence.EnumType value)
Sets the value of the enumerated property.void
setFetch(jakarta.persistence.FetchType value)
Sets the value of the fetch property.void
setFetchMode(JaxbPluralFetchMode value)
Sets the value of the fetchMode property.void
setFormula(String value)
Sets the value of the formula property.void
setLob(JaxbLob value)
Sets the value of the lob property.void
setMapKey(JaxbMapKey value)
Sets the value of the mapKey property.void
setMapKeyClass(JaxbMapKeyClass value)
Sets the value of the mapKeyClass property.void
setMapKeyColumn(JaxbMapKeyColumn value)
Sets the value of the mapKeyColumn property.void
setMapKeyEnumerated(jakarta.persistence.EnumType value)
Sets the value of the mapKeyEnumerated property.void
setMapKeyForeignKey(JaxbForeignKey value)
Sets the value of the mapKeyForeignKey property.void
setMapKeyFormula(String value)
Sets the value of the mapKeyFormula property.void
setMapKeyTemporal(jakarta.persistence.TemporalType value)
Sets the value of the mapKeyTemporal property.void
setName(String value)
Sets the value of the name property.void
setNationalized(JaxbNationalized value)
Sets the value of the nationalized property.void
setOptimisticLock(Boolean value)
Sets the value of the optimisticLock property.void
setOrderBy(String value)
Sets the value of the orderBy property.void
setOrderColumn(JaxbOrderColumn value)
Sets the value of the orderColumn property.void
setSort(String value)
Sets the value of the sort property.void
setTargetClass(String value)
Sets the value of the targetClass property.void
setTemporal(jakarta.persistence.TemporalType value)
Sets the value of the temporal property.
-
-
-
Field Detail
-
orderBy
protected String orderBy
-
orderColumn
protected JaxbOrderColumn orderColumn
-
sort
protected String sort
-
mapKey
protected JaxbMapKey mapKey
-
mapKeyClass
protected JaxbMapKeyClass mapKeyClass
-
mapKeyTemporal
protected jakarta.persistence.TemporalType mapKeyTemporal
-
mapKeyEnumerated
protected jakarta.persistence.EnumType mapKeyEnumerated
-
mapKeyAttributeOverride
protected List<JaxbAttributeOverride> mapKeyAttributeOverride
-
mapKeyConvert
protected List<JaxbConvert> mapKeyConvert
-
mapKeyColumn
protected JaxbMapKeyColumn mapKeyColumn
-
mapKeyFormula
protected String mapKeyFormula
-
mapKeyJoinColumn
protected List<JaxbMapKeyJoinColumn> mapKeyJoinColumn
-
mapKeyForeignKey
protected JaxbForeignKey mapKeyForeignKey
-
column
protected JaxbColumn column
-
formula
protected String formula
-
temporal
protected jakarta.persistence.TemporalType temporal
-
enumerated
protected jakarta.persistence.EnumType enumerated
-
lob
protected JaxbLob lob
-
nationalized
protected JaxbNationalized nationalized
-
attributeOverride
protected List<JaxbAttributeOverride> attributeOverride
-
associationOverride
protected List<JaxbAssociationOverride> associationOverride
-
convert
protected List<JaxbConvert> convert
-
collectionTable
protected JaxbCollectionTable collectionTable
-
name
protected String name
-
targetClass
protected String targetClass
-
fetch
protected jakarta.persistence.FetchType fetch
-
fetchMode
protected JaxbPluralFetchMode fetchMode
-
access
protected jakarta.persistence.AccessType access
-
attributeAccessor
protected String attributeAccessor
-
optimisticLock
protected Boolean optimisticLock
-
-
Method Detail
-
getOrderBy
public String getOrderBy()
Gets the value of the orderBy property.- Specified by:
getOrderBy
in interfaceCollectionAttribute
- Returns:
- possible object is
String
-
setOrderBy
public void setOrderBy(String value)
Sets the value of the orderBy property.- Specified by:
setOrderBy
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isString
-
getOrderColumn
public JaxbOrderColumn getOrderColumn()
Gets the value of the orderColumn property.- Specified by:
getOrderColumn
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbOrderColumn
-
setOrderColumn
public void setOrderColumn(JaxbOrderColumn value)
Sets the value of the orderColumn property.- Specified by:
setOrderColumn
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbOrderColumn
-
getSort
public String getSort()
Gets the value of the sort property.- Specified by:
getSort
in interfaceCollectionAttribute
- Returns:
- possible object is
String
-
setSort
public void setSort(String value)
Sets the value of the sort property.- Specified by:
setSort
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isString
-
getMapKey
public JaxbMapKey getMapKey()
Gets the value of the mapKey property.- Specified by:
getMapKey
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbMapKey
-
setMapKey
public void setMapKey(JaxbMapKey value)
Sets the value of the mapKey property.- Specified by:
setMapKey
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbMapKey
-
getMapKeyClass
public JaxbMapKeyClass getMapKeyClass()
Gets the value of the mapKeyClass property.- Specified by:
getMapKeyClass
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbMapKeyClass
-
setMapKeyClass
public void setMapKeyClass(JaxbMapKeyClass value)
Sets the value of the mapKeyClass property.- Specified by:
setMapKeyClass
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbMapKeyClass
-
getMapKeyTemporal
public jakarta.persistence.TemporalType getMapKeyTemporal()
Gets the value of the mapKeyTemporal property.- Specified by:
getMapKeyTemporal
in interfaceCollectionAttribute
- Returns:
- possible object is
String
-
setMapKeyTemporal
public void setMapKeyTemporal(jakarta.persistence.TemporalType value)
Sets the value of the mapKeyTemporal property.- Specified by:
setMapKeyTemporal
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isString
-
getMapKeyEnumerated
public jakarta.persistence.EnumType getMapKeyEnumerated()
Gets the value of the mapKeyEnumerated property.- Specified by:
getMapKeyEnumerated
in interfaceCollectionAttribute
- Returns:
- possible object is
String
-
setMapKeyEnumerated
public void setMapKeyEnumerated(jakarta.persistence.EnumType value)
Sets the value of the mapKeyEnumerated property.- Specified by:
setMapKeyEnumerated
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isString
-
getMapKeyAttributeOverride
public List<JaxbAttributeOverride> getMapKeyAttributeOverride()
Gets the value of the mapKeyAttributeOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the mapKeyAttributeOverride property.For example, to add a new item, do as follows:
getMapKeyAttributeOverride().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbAttributeOverride
- Specified by:
getMapKeyAttributeOverride
in interfaceCollectionAttribute
-
getMapKeyConvert
public List<JaxbConvert> getMapKeyConvert()
Gets the value of the mapKeyConvert property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the mapKeyConvert property.For example, to add a new item, do as follows:
getMapKeyConvert().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbConvert
- Specified by:
getMapKeyConvert
in interfaceCollectionAttribute
-
getMapKeyColumn
public JaxbMapKeyColumn getMapKeyColumn()
Gets the value of the mapKeyColumn property.- Specified by:
getMapKeyColumn
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbMapKeyColumn
-
setMapKeyColumn
public void setMapKeyColumn(JaxbMapKeyColumn value)
Sets the value of the mapKeyColumn property.- Specified by:
setMapKeyColumn
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbMapKeyColumn
-
getMapKeyFormula
public String getMapKeyFormula()
Gets the value of the mapKeyFormula property.- Returns:
- possible object is
String
-
setMapKeyFormula
public void setMapKeyFormula(String value)
Sets the value of the mapKeyFormula property.- Parameters:
value
- allowed object isString
-
getMapKeyJoinColumn
public List<JaxbMapKeyJoinColumn> getMapKeyJoinColumn()
Gets the value of the mapKeyJoinColumn property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the mapKeyJoinColumn property.For example, to add a new item, do as follows:
getMapKeyJoinColumn().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbMapKeyJoinColumn
- Specified by:
getMapKeyJoinColumn
in interfaceCollectionAttribute
-
getMapKeyForeignKey
public JaxbForeignKey getMapKeyForeignKey()
Gets the value of the mapKeyForeignKey property.- Specified by:
getMapKeyForeignKey
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbForeignKey
-
setMapKeyForeignKey
public void setMapKeyForeignKey(JaxbForeignKey value)
Sets the value of the mapKeyForeignKey property.- Specified by:
setMapKeyForeignKey
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbForeignKey
-
getColumn
public JaxbColumn getColumn()
Gets the value of the column property.- Returns:
- possible object is
JaxbColumn
-
setColumn
public void setColumn(JaxbColumn value)
Sets the value of the column property.- Parameters:
value
- allowed object isJaxbColumn
-
getFormula
public String getFormula()
Gets the value of the formula property.- Returns:
- possible object is
String
-
setFormula
public void setFormula(String value)
Sets the value of the formula property.- Parameters:
value
- allowed object isString
-
getTemporal
public jakarta.persistence.TemporalType getTemporal()
Gets the value of the temporal property.- Returns:
- possible object is
String
-
setTemporal
public void setTemporal(jakarta.persistence.TemporalType value)
Sets the value of the temporal property.- Parameters:
value
- allowed object isString
-
getEnumerated
public jakarta.persistence.EnumType getEnumerated()
Gets the value of the enumerated property.- Returns:
- possible object is
String
-
setEnumerated
public void setEnumerated(jakarta.persistence.EnumType value)
Sets the value of the enumerated property.- Parameters:
value
- allowed object isString
-
getLob
public JaxbLob getLob()
Gets the value of the lob property.- Returns:
- possible object is
JaxbLob
-
setLob
public void setLob(JaxbLob value)
Sets the value of the lob property.- Parameters:
value
- allowed object isJaxbLob
-
getNationalized
public JaxbNationalized getNationalized()
Gets the value of the nationalized property.- Returns:
- possible object is
JaxbNationalized
-
setNationalized
public void setNationalized(JaxbNationalized value)
Sets the value of the nationalized property.- Parameters:
value
- allowed object isJaxbNationalized
-
getAttributeOverride
public List<JaxbAttributeOverride> getAttributeOverride()
Gets the value of the attributeOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the attributeOverride property.For example, to add a new item, do as follows:
getAttributeOverride().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbAttributeOverride
-
getAssociationOverride
public List<JaxbAssociationOverride> getAssociationOverride()
Gets the value of the associationOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the associationOverride property.For example, to add a new item, do as follows:
getAssociationOverride().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbAssociationOverride
-
getConvert
public List<JaxbConvert> getConvert()
Gets the value of the convert property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the convert property.For example, to add a new item, do as follows:
getConvert().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbConvert
-
getCollectionTable
public JaxbCollectionTable getCollectionTable()
Gets the value of the collectionTable property.- Returns:
- possible object is
JaxbCollectionTable
-
setCollectionTable
public void setCollectionTable(JaxbCollectionTable value)
Sets the value of the collectionTable property.- Parameters:
value
- allowed object isJaxbCollectionTable
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getName
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setName
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getTargetClass
public String getTargetClass()
Gets the value of the targetClass property.- Returns:
- possible object is
String
-
setTargetClass
public void setTargetClass(String value)
Sets the value of the targetClass property.- Parameters:
value
- allowed object isString
-
getFetch
public jakarta.persistence.FetchType getFetch()
Gets the value of the fetch property.- Specified by:
getFetch
in interfaceFetchableAttribute
- Returns:
- possible object is
String
-
setFetch
public void setFetch(jakarta.persistence.FetchType value)
Sets the value of the fetch property.- Specified by:
setFetch
in interfaceFetchableAttribute
- Parameters:
value
- allowed object isString
-
getFetchMode
public JaxbPluralFetchMode getFetchMode()
Gets the value of the fetchMode property.- Specified by:
getFetchMode
in interfaceCollectionAttribute
- Returns:
- possible object is
JaxbPluralFetchMode
-
setFetchMode
public void setFetchMode(JaxbPluralFetchMode value)
Sets the value of the fetchMode property.- Specified by:
setFetchMode
in interfaceCollectionAttribute
- Parameters:
value
- allowed object isJaxbPluralFetchMode
-
getAccess
public jakarta.persistence.AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccess
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAccess
public void setAccess(jakarta.persistence.AccessType value)
Sets the value of the access property.- Specified by:
setAccess
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessor
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessor
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
isOptimisticLock
public boolean isOptimisticLock()
Gets the value of the optimisticLock property.- Returns:
- possible object is
Boolean
-
-