public class ElementCollection
extends java.lang.Object
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://java.sun.com/xml/ns/persistence/orm}order-by" minOccurs="0"/> <element name="order-column" type="{http://java.sun.com/xml/ns/persistence/orm}order-column" minOccurs="0"/> </choice> <choice> <element name="map-key" type="{http://java.sun.com/xml/ns/persistence/orm}map-key" minOccurs="0"/> <sequence> <element name="map-key-class" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-class" minOccurs="0"/> <choice> <element name="map-key-temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="map-key-enumerated" type="{http://java.sun.com/xml/ns/persistence/orm}enumerated" minOccurs="0"/> <element name="map-key-attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/> </choice> <choice> <element name="map-key-column" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-column" minOccurs="0"/> <element name="map-key-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-join-column" maxOccurs="unbounded" minOccurs="0"/> </choice> </sequence> </choice> <choice> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <choice> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="enumerated" type="{http://java.sun.com/xml/ns/persistence/orm}enumerated" minOccurs="0"/> <element name="lob" type="{http://java.sun.com/xml/ns/persistence/orm}lob" minOccurs="0"/> </choice> </sequence> <sequence> <element name="attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="association-override" type="{http://java.sun.com/xml/ns/persistence/orm}association-override" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <element name="collection-table" type="{http://java.sun.com/xml/ns/persistence/orm}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://java.sun.com/xml/ns/persistence/orm}fetch-type" /> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected AccessType |
access |
protected java.util.List<AssociationOverride> |
associationOverride |
protected java.util.List<AttributeOverride> |
attributeOverride |
protected CollectionTable |
collectionTable |
protected Column |
column |
protected EnumType |
enumerated |
protected FetchType |
fetch |
protected Lob |
lob |
protected MapKey |
mapKey |
protected java.util.List<AttributeOverride> |
mapKeyAttributeOverride |
protected MapKeyClass |
mapKeyClass |
protected MapKeyColumn |
mapKeyColumn |
protected EnumType |
mapKeyEnumerated |
protected java.util.List<MapKeyJoinColumn> |
mapKeyJoinColumn |
protected TemporalType |
mapKeyTemporal |
protected java.lang.String |
name |
protected java.lang.String |
orderBy |
protected OrderColumn |
orderColumn |
protected java.lang.String |
targetClass |
protected TemporalType |
temporal |
Constructor and Description |
---|
ElementCollection() |
Modifier and Type | Method and Description |
---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
java.util.List<AssociationOverride> |
getAssociationOverride()
Gets the value of the associationOverride property.
|
java.util.List<AttributeOverride> |
getAttributeOverride()
Gets the value of the attributeOverride property.
|
CollectionTable |
getCollectionTable()
Gets the value of the collectionTable property.
|
Column |
getColumn()
Gets the value of the column property.
|
EnumType |
getEnumerated()
Gets the value of the enumerated property.
|
FetchType |
getFetch()
Gets the value of the fetch property.
|
Lob |
getLob()
Gets the value of the lob property.
|
MapKey |
getMapKey()
Gets the value of the mapKey property.
|
java.util.List<AttributeOverride> |
getMapKeyAttributeOverride()
Gets the value of the mapKeyAttributeOverride property.
|
MapKeyClass |
getMapKeyClass()
Gets the value of the mapKeyClass property.
|
MapKeyColumn |
getMapKeyColumn()
Gets the value of the mapKeyColumn property.
|
EnumType |
getMapKeyEnumerated()
Gets the value of the mapKeyEnumerated property.
|
java.util.List<MapKeyJoinColumn> |
getMapKeyJoinColumn()
Gets the value of the mapKeyJoinColumn property.
|
TemporalType |
getMapKeyTemporal()
Gets the value of the mapKeyTemporal property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
java.lang.String |
getOrderBy()
Gets the value of the orderBy property.
|
OrderColumn |
getOrderColumn()
Gets the value of the orderColumn property.
|
java.lang.String |
getTargetClass()
Gets the value of the targetClass property.
|
TemporalType |
getTemporal()
Gets the value of the temporal property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setCollectionTable(CollectionTable value)
Sets the value of the collectionTable property.
|
void |
setColumn(Column value)
Sets the value of the column property.
|
void |
setEnumerated(EnumType value)
Sets the value of the enumerated property.
|
void |
setFetch(FetchType value)
Sets the value of the fetch property.
|
void |
setLob(Lob value)
Sets the value of the lob property.
|
void |
setMapKey(MapKey value)
Sets the value of the mapKey property.
|
void |
setMapKeyClass(MapKeyClass value)
Sets the value of the mapKeyClass property.
|
void |
setMapKeyColumn(MapKeyColumn value)
Sets the value of the mapKeyColumn property.
|
void |
setMapKeyEnumerated(EnumType value)
Sets the value of the mapKeyEnumerated property.
|
void |
setMapKeyTemporal(TemporalType value)
Sets the value of the mapKeyTemporal property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setOrderBy(java.lang.String value)
Sets the value of the orderBy property.
|
void |
setOrderColumn(OrderColumn value)
Sets the value of the orderColumn property.
|
void |
setTargetClass(java.lang.String value)
Sets the value of the targetClass property.
|
void |
setTemporal(TemporalType value)
Sets the value of the temporal property.
|
protected java.lang.String orderBy
protected OrderColumn orderColumn
protected MapKey mapKey
protected MapKeyClass mapKeyClass
protected TemporalType mapKeyTemporal
protected EnumType mapKeyEnumerated
protected java.util.List<AttributeOverride> mapKeyAttributeOverride
protected MapKeyColumn mapKeyColumn
protected java.util.List<MapKeyJoinColumn> mapKeyJoinColumn
protected Column column
protected TemporalType temporal
protected EnumType enumerated
protected Lob lob
protected java.util.List<AttributeOverride> attributeOverride
protected java.util.List<AssociationOverride> associationOverride
protected CollectionTable collectionTable
protected java.lang.String name
protected java.lang.String targetClass
protected FetchType fetch
protected AccessType access
public java.lang.String getOrderBy()
String
public void setOrderBy(java.lang.String value)
value
- allowed object is
String
public OrderColumn getOrderColumn()
OrderColumn
public void setOrderColumn(OrderColumn value)
value
- allowed object is
OrderColumn
public MapKey getMapKey()
MapKey
public void setMapKey(MapKey value)
value
- allowed object is
MapKey
public MapKeyClass getMapKeyClass()
MapKeyClass
public void setMapKeyClass(MapKeyClass value)
value
- allowed object is
MapKeyClass
public TemporalType getMapKeyTemporal()
TemporalType
public void setMapKeyTemporal(TemporalType value)
value
- allowed object is
TemporalType
public EnumType getMapKeyEnumerated()
EnumType
public void setMapKeyEnumerated(EnumType value)
value
- allowed object is
EnumType
public java.util.List<AttributeOverride> getMapKeyAttributeOverride()
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
AttributeOverride
public MapKeyColumn getMapKeyColumn()
MapKeyColumn
public void setMapKeyColumn(MapKeyColumn value)
value
- allowed object is
MapKeyColumn
public java.util.List<MapKeyJoinColumn> getMapKeyJoinColumn()
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
MapKeyJoinColumn
public Column getColumn()
Column
public void setColumn(Column value)
value
- allowed object is
Column
public TemporalType getTemporal()
TemporalType
public void setTemporal(TemporalType value)
value
- allowed object is
TemporalType
public EnumType getEnumerated()
EnumType
public void setEnumerated(EnumType value)
value
- allowed object is
EnumType
public void setLob(Lob value)
value
- allowed object is
Lob
public java.util.List<AttributeOverride> getAttributeOverride()
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
AttributeOverride
public java.util.List<AssociationOverride> getAssociationOverride()
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
AssociationOverride
public CollectionTable getCollectionTable()
CollectionTable
public void setCollectionTable(CollectionTable value)
value
- allowed object is
CollectionTable
public java.lang.String getName()
String
public void setName(java.lang.String value)
value
- allowed object is
String
public java.lang.String getTargetClass()
String
public void setTargetClass(java.lang.String value)
value
- allowed object is
String
public FetchType getFetch()
FetchType
public void setFetch(FetchType value)
value
- allowed object is
FetchType
public AccessType getAccess()
AccessType
public void setAccess(AccessType value)
value
- allowed object is
AccessType