net.sourceforge.jpaxjc.ns.persistence.orm
Class Attributes

java.lang.Object
  extended by net.sourceforge.jpaxjc.ns.persistence.orm.Attributes
All Implemented Interfaces:
Cloneable

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public class Attributes
extends Object
implements Cloneable

This element contains the entity field or property mappings. It may be sparsely populated to include only a subset of the fields or properties. If metadata-complete for the entity is true then the remainder of the attributes will be defaulted according to the default rules.

Java class for attributes complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="attributes">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <choice>
           <element name="id" type="{http://java.sun.com/xml/ns/persistence/orm}id" maxOccurs="unbounded" minOccurs="0"/>
           <element name="embedded-id" type="{http://java.sun.com/xml/ns/persistence/orm}embedded-id" minOccurs="0"/>
         </choice>
         <element name="basic" type="{http://java.sun.com/xml/ns/persistence/orm}basic" maxOccurs="unbounded" minOccurs="0"/>
         <element name="version" type="{http://java.sun.com/xml/ns/persistence/orm}version" maxOccurs="unbounded" minOccurs="0"/>
         <element name="many-to-one" type="{http://java.sun.com/xml/ns/persistence/orm}many-to-one" maxOccurs="unbounded" minOccurs="0"/>
         <element name="one-to-many" type="{http://java.sun.com/xml/ns/persistence/orm}one-to-many" maxOccurs="unbounded" minOccurs="0"/>
         <element name="one-to-one" type="{http://java.sun.com/xml/ns/persistence/orm}one-to-one" maxOccurs="unbounded" minOccurs="0"/>
         <element name="many-to-many" type="{http://java.sun.com/xml/ns/persistence/orm}many-to-many" maxOccurs="unbounded" minOccurs="0"/>
         <element name="embedded" type="{http://java.sun.com/xml/ns/persistence/orm}embedded" maxOccurs="unbounded" minOccurs="0"/>
         <element name="transient" type="{http://java.sun.com/xml/ns/persistence/orm}transient" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<Transient> _transient
           
protected  List<Basic> basic
           
protected  List<Embedded> embedded
           
protected  EmbeddedId embeddedId
           
protected  List<Id> id
           
protected  List<ManyToMany> manyToMany
           
protected  List<ManyToOne> manyToOne
           
protected  List<OneToMany> oneToMany
           
protected  List<OneToOne> oneToOne
           
protected  List<Version> version
           
 
Constructor Summary
Attributes()
          Creates a new Attributes instance.
Attributes(Attributes o)
          Creates a new Attributes instance by deeply copying a given Attributes instance.
 
Method Summary
 Attributes clone()
          Creates and returns a deep copy of this object.
 List<Basic> getBasic()
          Gets the value of the basic property.
 List<Embedded> getEmbedded()
          Gets the value of the embedded property.
 EmbeddedId getEmbeddedId()
          Gets the value of the embeddedId property.
 List<Id> getId()
          Gets the value of the id property.
 List<ManyToMany> getManyToMany()
          Gets the value of the manyToMany property.
 List<ManyToOne> getManyToOne()
          Gets the value of the manyToOne property.
 List<OneToMany> getOneToMany()
          Gets the value of the oneToMany property.
 List<OneToOne> getOneToOne()
          Gets the value of the oneToOne property.
 List<Transient> getTransient()
          Gets the value of the transient property.
 List<Version> getVersion()
          Gets the value of the version property.
 void setEmbeddedId(EmbeddedId value)
          Sets the value of the embeddedId property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Id> id

embeddedId

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected EmbeddedId embeddedId

basic

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Basic> basic

version

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Version> version

manyToOne

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<ManyToOne> manyToOne

oneToMany

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<OneToMany> oneToMany

oneToOne

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<OneToOne> oneToOne

manyToMany

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<ManyToMany> manyToMany

embedded

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Embedded> embedded

_transient

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
protected List<Transient> _transient
Constructor Detail

Attributes

public Attributes()
Creates a new Attributes instance.


Attributes

public Attributes(Attributes o)
Creates a new Attributes instance by deeply copying a given Attributes instance.

Parameters:
o - The instance to copy.
Throws:
NullPointerException - if o is null.
Method Detail

getId

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Id> getId()
Gets the value of the id 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 id property.

For example, to add a new item, do as follows:

    getId().add(newItem);
 

Objects of the following type(s) are allowed in the list Id


getEmbeddedId

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public EmbeddedId getEmbeddedId()
Gets the value of the embeddedId property.

Returns:
possible object is EmbeddedId

setEmbeddedId

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public void setEmbeddedId(EmbeddedId value)
Sets the value of the embeddedId property.

Parameters:
value - allowed object is EmbeddedId

getBasic

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Basic> getBasic()
Gets the value of the basic 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 basic property.

For example, to add a new item, do as follows:

    getBasic().add(newItem);
 

Objects of the following type(s) are allowed in the list Basic


getVersion

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Version> getVersion()
Gets the value of the version 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 version property.

For example, to add a new item, do as follows:

    getVersion().add(newItem);
 

Objects of the following type(s) are allowed in the list Version


getManyToOne

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<ManyToOne> getManyToOne()
Gets the value of the manyToOne 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 manyToOne property.

For example, to add a new item, do as follows:

    getManyToOne().add(newItem);
 

Objects of the following type(s) are allowed in the list ManyToOne


getOneToMany

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<OneToMany> getOneToMany()
Gets the value of the oneToMany 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 oneToMany property.

For example, to add a new item, do as follows:

    getOneToMany().add(newItem);
 

Objects of the following type(s) are allowed in the list OneToMany


getOneToOne

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<OneToOne> getOneToOne()
Gets the value of the oneToOne 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 oneToOne property.

For example, to add a new item, do as follows:

    getOneToOne().add(newItem);
 

Objects of the following type(s) are allowed in the list OneToOne


getManyToMany

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<ManyToMany> getManyToMany()
Gets the value of the manyToMany 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 manyToMany property.

For example, to add a new item, do as follows:

    getManyToMany().add(newItem);
 

Objects of the following type(s) are allowed in the list ManyToMany


getEmbedded

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Embedded> getEmbedded()
Gets the value of the embedded 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 embedded property.

For example, to add a new item, do as follows:

    getEmbedded().add(newItem);
 

Objects of the following type(s) are allowed in the list Embedded


getTransient

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public List<Transient> getTransient()
Gets the value of the transient 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 transient property.

For example, to add a new item, do as follows:

    getTransient().add(newItem);
 

Objects of the following type(s) are allowed in the list Transient


clone

@Generated(value="com.sun.tools.xjc.Driver",
           date="2010-08-18T10:46:56+02:00",
           comments="JAXB RI vhudson-jaxb-ri-2.1-833")
public Attributes clone()
Creates and returns a deep copy of this object.

Overrides:
clone in class Object
Returns:
A deep copy of this object.


Copyright © 2009-2010 The JPA-XJC Community. All Rights Reserved.