net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm
Class Attributes

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Attributes
All Implemented Interfaces:
Serializable, Cloneable

public class Attributes
extends Object
implements Serializable, 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>
 

See Also:
Serialized Form

Field Summary
protected  Transient[] _transient
           
protected  Basic[] basic
           
protected  Embedded[] embedded
           
protected  EmbeddedId embeddedId
           
protected  Id[] id
           
protected  ManyToMany[] manyToMany
           
protected  ManyToOne[] manyToOne
           
protected  OneToMany[] oneToMany
           
protected  OneToOne[] oneToOne
           
protected  Version[] version
           
 
Constructor Summary
Attributes()
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Attributes instance.
Attributes(Attributes o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Attributes instance by copying a given instance.
 
Method Summary
 Attributes clone()
          Creates and returns a copy of this object.
protected  void copyBasic(Basic[] source)
          Copies all values of property Basic.
protected  void copyEmbedded(Embedded[] source)
          Copies all values of property Embedded.
protected  void copyId(Id[] source)
          Copies all values of property Id.
protected  void copyManyToMany(ManyToMany[] source)
          Copies all values of property ManyToMany.
protected  void copyManyToOne(ManyToOne[] source)
          Copies all values of property ManyToOne.
protected  void copyOneToMany(OneToMany[] source)
          Copies all values of property OneToMany.
protected  void copyOneToOne(OneToOne[] source)
          Copies all values of property OneToOne.
protected  void copyTransient(Transient[] source)
          Copies all values of property Transient.
protected  void copyVersion(Version[] source)
          Copies all values of property Version.
 Basic[] getBasic()
           
 Basic getBasic(int idx)
           
 int getBasicLength()
           
 Embedded[] getEmbedded()
           
 Embedded getEmbedded(int idx)
           
 EmbeddedId getEmbeddedId()
          Gets the value of the embeddedId property.
 int getEmbeddedLength()
           
 Id[] getId()
           
 Id getId(int idx)
           
 int getIdLength()
           
 ManyToMany[] getManyToMany()
           
 ManyToMany getManyToMany(int idx)
           
 int getManyToManyLength()
           
 ManyToOne[] getManyToOne()
           
 ManyToOne getManyToOne(int idx)
           
 int getManyToOneLength()
           
 OneToMany[] getOneToMany()
           
 OneToMany getOneToMany(int idx)
           
 int getOneToManyLength()
           
 OneToOne[] getOneToOne()
           
 OneToOne getOneToOne(int idx)
           
 int getOneToOneLength()
           
 Transient[] getTransient()
           
 Transient getTransient(int idx)
           
 int getTransientLength()
           
 Version[] getVersion()
           
 Version getVersion(int idx)
           
 int getVersionLength()
           
 void setBasic(Basic[] values)
           
 Basic setBasic(int idx, Basic value)
           
 void setEmbedded(Embedded[] values)
           
 Embedded setEmbedded(int idx, Embedded value)
           
 void setEmbeddedId(EmbeddedId value)
          Sets the value of the embeddedId property.
 void setId(Id[] values)
           
 Id setId(int idx, Id value)
           
 ManyToMany setManyToMany(int idx, ManyToMany value)
           
 void setManyToMany(ManyToMany[] values)
           
 ManyToOne setManyToOne(int idx, ManyToOne value)
           
 void setManyToOne(ManyToOne[] values)
           
 OneToMany setOneToMany(int idx, OneToMany value)
           
 void setOneToMany(OneToMany[] values)
           
 OneToOne setOneToOne(int idx, OneToOne value)
           
 void setOneToOne(OneToOne[] values)
           
 Transient setTransient(int idx, Transient value)
           
 void setTransient(Transient[] values)
           
 Version setVersion(int idx, Version value)
           
 void setVersion(Version[] values)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Id[] id

embeddedId

protected EmbeddedId embeddedId

basic

protected Basic[] basic

version

protected Version[] version

manyToOne

protected ManyToOne[] manyToOne

oneToMany

protected OneToMany[] oneToMany

oneToOne

protected OneToOne[] oneToOne

manyToMany

protected ManyToMany[] manyToMany

embedded

protected Embedded[] embedded

_transient

protected Transient[] _transient
Constructor Detail

Attributes

public Attributes()
Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Attributes instance.


Attributes

public Attributes(Attributes o)
Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Attributes instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getId

public Id[] getId()
Returns:
array of Id

getId

public Id getId(int idx)
Returns:
one of Id

getIdLength

public int getIdLength()

setId

public void setId(Id[] values)
Parameters:
values - allowed objects are Id

setId

public Id setId(int idx,
                Id value)
Parameters:
value - allowed object is Id

getEmbeddedId

public EmbeddedId getEmbeddedId()
Gets the value of the embeddedId property.

Returns:
possible object is EmbeddedId

setEmbeddedId

public void setEmbeddedId(EmbeddedId value)
Sets the value of the embeddedId property.

Parameters:
value - allowed object is EmbeddedId

getBasic

public Basic[] getBasic()
Returns:
array of Basic

getBasic

public Basic getBasic(int idx)
Returns:
one of Basic

getBasicLength

public int getBasicLength()

setBasic

public void setBasic(Basic[] values)
Parameters:
values - allowed objects are Basic

setBasic

public Basic setBasic(int idx,
                      Basic value)
Parameters:
value - allowed object is Basic

getVersion

public Version[] getVersion()
Returns:
array of Version

getVersion

public Version getVersion(int idx)
Returns:
one of Version

getVersionLength

public int getVersionLength()

setVersion

public void setVersion(Version[] values)
Parameters:
values - allowed objects are Version

setVersion

public Version setVersion(int idx,
                          Version value)
Parameters:
value - allowed object is Version

getManyToOne

public ManyToOne[] getManyToOne()
Returns:
array of ManyToOne

getManyToOne

public ManyToOne getManyToOne(int idx)
Returns:
one of ManyToOne

getManyToOneLength

public int getManyToOneLength()

setManyToOne

public void setManyToOne(ManyToOne[] values)
Parameters:
values - allowed objects are ManyToOne

setManyToOne

public ManyToOne setManyToOne(int idx,
                              ManyToOne value)
Parameters:
value - allowed object is ManyToOne

getOneToMany

public OneToMany[] getOneToMany()
Returns:
array of OneToMany

getOneToMany

public OneToMany getOneToMany(int idx)
Returns:
one of OneToMany

getOneToManyLength

public int getOneToManyLength()

setOneToMany

public void setOneToMany(OneToMany[] values)
Parameters:
values - allowed objects are OneToMany

setOneToMany

public OneToMany setOneToMany(int idx,
                              OneToMany value)
Parameters:
value - allowed object is OneToMany

getOneToOne

public OneToOne[] getOneToOne()
Returns:
array of OneToOne

getOneToOne

public OneToOne getOneToOne(int idx)
Returns:
one of OneToOne

getOneToOneLength

public int getOneToOneLength()

setOneToOne

public void setOneToOne(OneToOne[] values)
Parameters:
values - allowed objects are OneToOne

setOneToOne

public OneToOne setOneToOne(int idx,
                            OneToOne value)
Parameters:
value - allowed object is OneToOne

getManyToMany

public ManyToMany[] getManyToMany()
Returns:
array of ManyToMany

getManyToMany

public ManyToMany getManyToMany(int idx)
Returns:
one of ManyToMany

getManyToManyLength

public int getManyToManyLength()

setManyToMany

public void setManyToMany(ManyToMany[] values)
Parameters:
values - allowed objects are ManyToMany

setManyToMany

public ManyToMany setManyToMany(int idx,
                                ManyToMany value)
Parameters:
value - allowed object is ManyToMany

getEmbedded

public Embedded[] getEmbedded()
Returns:
array of Embedded

getEmbedded

public Embedded getEmbedded(int idx)
Returns:
one of Embedded

getEmbeddedLength

public int getEmbeddedLength()

setEmbedded

public void setEmbedded(Embedded[] values)
Parameters:
values - allowed objects are Embedded

setEmbedded

public Embedded setEmbedded(int idx,
                            Embedded value)
Parameters:
value - allowed object is Embedded

getTransient

public Transient[] getTransient()
Returns:
array of Transient

getTransient

public Transient getTransient(int idx)
Returns:
one of Transient

getTransientLength

public int getTransientLength()

setTransient

public void setTransient(Transient[] values)
Parameters:
values - allowed objects are Transient

setTransient

public Transient setTransient(int idx,
                              Transient value)
Parameters:
value - allowed object is Transient

copyId

protected void copyId(Id[] source)
Copies all values of property Id.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyBasic

protected void copyBasic(Basic[] source)
Copies all values of property Basic.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyVersion

protected void copyVersion(Version[] source)
Copies all values of property Version.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyManyToOne

protected void copyManyToOne(ManyToOne[] source)
Copies all values of property ManyToOne.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyOneToMany

protected void copyOneToMany(OneToMany[] source)
Copies all values of property OneToMany.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyOneToOne

protected void copyOneToOne(OneToOne[] source)
Copies all values of property OneToOne.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyManyToMany

protected void copyManyToMany(ManyToMany[] source)
Copies all values of property ManyToMany.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyEmbedded

protected void copyEmbedded(Embedded[] source)
Copies all values of property Embedded.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

copyTransient

protected void copyTransient(Transient[] source)
Copies all values of property Transient.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

clone

public Attributes clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.