Class ElementCollection


  • public class ElementCollection
    extends Object
    Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface ElementCollection { Class targetClass() default void.class; FetchType fetch() default LAZY; }

    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>
     
    • Constructor Detail

      • ElementCollection

        public ElementCollection()
    • Method Detail

      • getOrderBy

        public String getOrderBy()
        Gets the value of the orderBy property.
        Returns:
        possible object is String
      • setOrderBy

        public void setOrderBy​(String value)
        Sets the value of the orderBy property.
        Parameters:
        value - allowed object is String
      • getOrderColumn

        public OrderColumn getOrderColumn()
        Gets the value of the orderColumn property.
        Returns:
        possible object is OrderColumn
      • setOrderColumn

        public void setOrderColumn​(OrderColumn value)
        Sets the value of the orderColumn property.
        Parameters:
        value - allowed object is OrderColumn
      • getMapKey

        public MapKey getMapKey()
        Gets the value of the mapKey property.
        Returns:
        possible object is MapKey
      • setMapKey

        public void setMapKey​(MapKey value)
        Sets the value of the mapKey property.
        Parameters:
        value - allowed object is MapKey
      • getMapKeyClass

        public MapKeyClass getMapKeyClass()
        Gets the value of the mapKeyClass property.
        Returns:
        possible object is MapKeyClass
      • setMapKeyClass

        public void setMapKeyClass​(MapKeyClass value)
        Sets the value of the mapKeyClass property.
        Parameters:
        value - allowed object is MapKeyClass
      • getMapKeyTemporal

        public TemporalType getMapKeyTemporal()
        Gets the value of the mapKeyTemporal property.
        Returns:
        possible object is TemporalType
      • setMapKeyTemporal

        public void setMapKeyTemporal​(TemporalType value)
        Sets the value of the mapKeyTemporal property.
        Parameters:
        value - allowed object is TemporalType
      • getMapKeyEnumerated

        public EnumType getMapKeyEnumerated()
        Gets the value of the mapKeyEnumerated property.
        Returns:
        possible object is EnumType
      • setMapKeyEnumerated

        public void setMapKeyEnumerated​(EnumType value)
        Sets the value of the mapKeyEnumerated property.
        Parameters:
        value - allowed object is EnumType
      • getMapKeyAttributeOverride

        public List<AttributeOverride> 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 JAXB 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 AttributeOverride
      • getMapKeyColumn

        public MapKeyColumn getMapKeyColumn()
        Gets the value of the mapKeyColumn property.
        Returns:
        possible object is MapKeyColumn
      • setMapKeyColumn

        public void setMapKeyColumn​(MapKeyColumn value)
        Sets the value of the mapKeyColumn property.
        Parameters:
        value - allowed object is MapKeyColumn
      • getMapKeyJoinColumn

        public List<MapKeyJoinColumn> 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 JAXB 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 MapKeyJoinColumn
      • getColumn

        public Column getColumn()
        Gets the value of the column property.
        Returns:
        possible object is Column
      • setColumn

        public void setColumn​(Column value)
        Sets the value of the column property.
        Parameters:
        value - allowed object is Column
      • getTemporal

        public TemporalType getTemporal()
        Gets the value of the temporal property.
        Returns:
        possible object is TemporalType
      • setTemporal

        public void setTemporal​(TemporalType value)
        Sets the value of the temporal property.
        Parameters:
        value - allowed object is TemporalType
      • getEnumerated

        public EnumType getEnumerated()
        Gets the value of the enumerated property.
        Returns:
        possible object is EnumType
      • setEnumerated

        public void setEnumerated​(EnumType value)
        Sets the value of the enumerated property.
        Parameters:
        value - allowed object is EnumType
      • getLob

        public Lob getLob()
        Gets the value of the lob property.
        Returns:
        possible object is Lob
      • setLob

        public void setLob​(Lob value)
        Sets the value of the lob property.
        Parameters:
        value - allowed object is Lob
      • getAttributeOverride

        public List<AttributeOverride> 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 JAXB 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 AttributeOverride
      • getAssociationOverride

        public List<AssociationOverride> 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 JAXB 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 AssociationOverride
      • getCollectionTable

        public CollectionTable getCollectionTable()
        Gets the value of the collectionTable property.
        Returns:
        possible object is CollectionTable
      • setCollectionTable

        public void setCollectionTable​(CollectionTable value)
        Sets the value of the collectionTable property.
        Parameters:
        value - allowed object is CollectionTable
      • getName

        public String getName()
        Gets the value of the name property.
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Sets the value of the name property.
        Parameters:
        value - allowed object is String
      • 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 is String
      • getFetch

        public FetchType getFetch()
        Gets the value of the fetch property.
        Returns:
        possible object is FetchType
      • setFetch

        public void setFetch​(FetchType value)
        Sets the value of the fetch property.
        Parameters:
        value - allowed object is FetchType
      • getAccess

        public AccessType getAccess()
        Gets the value of the access property.
        Returns:
        possible object is AccessType
      • setAccess

        public void setAccess​(AccessType value)
        Sets the value of the access property.
        Parameters:
        value - allowed object is AccessType