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

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

public class Entity
extends Object
implements Serializable, Cloneable

Defines the settings and mappings for an entity. Is allowed to be sparsely populated and used in conjunction with the annotations. Alternatively, the metadata-complete attribute can be used to indicate that no annotations on the entity class (and its fields or properties) are to be processed. If this is the case then the defaulting rules for the entity and its subelements will be recursively applied.

See Also:
Serialized Form

Field Summary
protected  AccessType access
           
protected  AssociationOverride[] associationOverride
           
protected  AttributeOverride[] attributeOverride
           
protected  Attributes attributes
           
protected  String clazz
           
protected  String description
           
protected  DiscriminatorColumn discriminatorColumn
           
protected  String discriminatorValue
           
protected  EntityListeners entityListeners
           
protected  EmptyType excludeDefaultListeners
           
protected  EmptyType excludeSuperclassListeners
           
protected  IdClass idClass
           
protected  Inheritance inheritance
           
protected  Boolean metadataComplete
           
protected  String name
           
protected  NamedNativeQuery[] namedNativeQuery
           
protected  NamedQuery[] namedQuery
           
protected  PostLoad postLoad
           
protected  PostPersist postPersist
           
protected  PostRemove postRemove
           
protected  PostUpdate postUpdate
           
protected  PrePersist prePersist
           
protected  PreRemove preRemove
           
protected  PreUpdate preUpdate
           
protected  PrimaryKeyJoinColumn[] primaryKeyJoinColumn
           
protected  SecondaryTable[] secondaryTable
           
protected  SequenceGenerator sequenceGenerator
           
protected  SqlResultSetMapping[] sqlResultSetMapping
           
protected  Table table
           
protected  TableGenerator tableGenerator
           
 
Constructor Summary
Entity()
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Entity instance.
Entity(Entity o)
          Creates a new net.sourceforge.ccxjc.it.model.prot.indexed.valueclass.persistence.orm.Entity instance by copying a given instance.
 
Method Summary
 Entity clone()
          Creates and returns a copy of this object.
protected  void copyAssociationOverride(AssociationOverride[] source)
          Copies all values of property AssociationOverride.
protected  void copyAttributeOverride(AttributeOverride[] source)
          Copies all values of property AttributeOverride.
protected  void copyNamedNativeQuery(NamedNativeQuery[] source)
          Copies all values of property NamedNativeQuery.
protected  void copyNamedQuery(NamedQuery[] source)
          Copies all values of property NamedQuery.
protected  void copyPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] source)
          Copies all values of property PrimaryKeyJoinColumn.
protected  void copySecondaryTable(SecondaryTable[] source)
          Copies all values of property SecondaryTable.
protected  void copySqlResultSetMapping(SqlResultSetMapping[] source)
          Copies all values of property SqlResultSetMapping.
 AccessType getAccess()
          Gets the value of the access property.
 AssociationOverride[] getAssociationOverride()
           
 AssociationOverride getAssociationOverride(int idx)
           
 int getAssociationOverrideLength()
           
 AttributeOverride[] getAttributeOverride()
           
 AttributeOverride getAttributeOverride(int idx)
           
 int getAttributeOverrideLength()
           
 Attributes getAttributes()
          Gets the value of the attributes property.
 String getClazz()
          Gets the value of the clazz property.
 String getDescription()
          Gets the value of the description property.
 DiscriminatorColumn getDiscriminatorColumn()
          Gets the value of the discriminatorColumn property.
 String getDiscriminatorValue()
          Gets the value of the discriminatorValue property.
 EntityListeners getEntityListeners()
          Gets the value of the entityListeners property.
 EmptyType getExcludeDefaultListeners()
          Gets the value of the excludeDefaultListeners property.
 EmptyType getExcludeSuperclassListeners()
          Gets the value of the excludeSuperclassListeners property.
 IdClass getIdClass()
          Gets the value of the idClass property.
 Inheritance getInheritance()
          Gets the value of the inheritance property.
 String getName()
          Gets the value of the name property.
 NamedNativeQuery[] getNamedNativeQuery()
           
 NamedNativeQuery getNamedNativeQuery(int idx)
           
 int getNamedNativeQueryLength()
           
 NamedQuery[] getNamedQuery()
           
 NamedQuery getNamedQuery(int idx)
           
 int getNamedQueryLength()
           
 PostLoad getPostLoad()
          Gets the value of the postLoad property.
 PostPersist getPostPersist()
          Gets the value of the postPersist property.
 PostRemove getPostRemove()
          Gets the value of the postRemove property.
 PostUpdate getPostUpdate()
          Gets the value of the postUpdate property.
 PrePersist getPrePersist()
          Gets the value of the prePersist property.
 PreRemove getPreRemove()
          Gets the value of the preRemove property.
 PreUpdate getPreUpdate()
          Gets the value of the preUpdate property.
 PrimaryKeyJoinColumn[] getPrimaryKeyJoinColumn()
           
 PrimaryKeyJoinColumn getPrimaryKeyJoinColumn(int idx)
           
 int getPrimaryKeyJoinColumnLength()
           
 SecondaryTable[] getSecondaryTable()
           
 SecondaryTable getSecondaryTable(int idx)
           
 int getSecondaryTableLength()
           
 SequenceGenerator getSequenceGenerator()
          Gets the value of the sequenceGenerator property.
 SqlResultSetMapping[] getSqlResultSetMapping()
           
 SqlResultSetMapping getSqlResultSetMapping(int idx)
           
 int getSqlResultSetMappingLength()
           
 Table getTable()
          Gets the value of the table property.
 TableGenerator getTableGenerator()
          Gets the value of the tableGenerator property.
 Boolean isMetadataComplete()
          Gets the value of the metadataComplete property.
 void setAccess(AccessType value)
          Sets the value of the access property.
 void setAssociationOverride(AssociationOverride[] values)
           
 AssociationOverride setAssociationOverride(int idx, AssociationOverride value)
           
 void setAttributeOverride(AttributeOverride[] values)
           
 AttributeOverride setAttributeOverride(int idx, AttributeOverride value)
           
 void setAttributes(Attributes value)
          Sets the value of the attributes property.
 void setClazz(String value)
          Sets the value of the clazz property.
 void setDescription(String value)
          Sets the value of the description property.
 void setDiscriminatorColumn(DiscriminatorColumn value)
          Sets the value of the discriminatorColumn property.
 void setDiscriminatorValue(String value)
          Sets the value of the discriminatorValue property.
 void setEntityListeners(EntityListeners value)
          Sets the value of the entityListeners property.
 void setExcludeDefaultListeners(EmptyType value)
          Sets the value of the excludeDefaultListeners property.
 void setExcludeSuperclassListeners(EmptyType value)
          Sets the value of the excludeSuperclassListeners property.
 void setIdClass(IdClass value)
          Sets the value of the idClass property.
 void setInheritance(Inheritance value)
          Sets the value of the inheritance property.
 void setMetadataComplete(Boolean value)
          Sets the value of the metadataComplete property.
 void setName(String value)
          Sets the value of the name property.
 NamedNativeQuery setNamedNativeQuery(int idx, NamedNativeQuery value)
           
 void setNamedNativeQuery(NamedNativeQuery[] values)
           
 NamedQuery setNamedQuery(int idx, NamedQuery value)
           
 void setNamedQuery(NamedQuery[] values)
           
 void setPostLoad(PostLoad value)
          Sets the value of the postLoad property.
 void setPostPersist(PostPersist value)
          Sets the value of the postPersist property.
 void setPostRemove(PostRemove value)
          Sets the value of the postRemove property.
 void setPostUpdate(PostUpdate value)
          Sets the value of the postUpdate property.
 void setPrePersist(PrePersist value)
          Sets the value of the prePersist property.
 void setPreRemove(PreRemove value)
          Sets the value of the preRemove property.
 void setPreUpdate(PreUpdate value)
          Sets the value of the preUpdate property.
 PrimaryKeyJoinColumn setPrimaryKeyJoinColumn(int idx, PrimaryKeyJoinColumn value)
           
 void setPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] values)
           
 SecondaryTable setSecondaryTable(int idx, SecondaryTable value)
           
 void setSecondaryTable(SecondaryTable[] values)
           
 void setSequenceGenerator(SequenceGenerator value)
          Sets the value of the sequenceGenerator property.
 SqlResultSetMapping setSqlResultSetMapping(int idx, SqlResultSetMapping value)
           
 void setSqlResultSetMapping(SqlResultSetMapping[] values)
           
 void setTable(Table value)
          Sets the value of the table property.
 void setTableGenerator(TableGenerator value)
          Sets the value of the tableGenerator property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected String description

table

protected Table table

secondaryTable

protected SecondaryTable[] secondaryTable

primaryKeyJoinColumn

protected PrimaryKeyJoinColumn[] primaryKeyJoinColumn

idClass

protected IdClass idClass

inheritance

protected Inheritance inheritance

discriminatorValue

protected String discriminatorValue

discriminatorColumn

protected DiscriminatorColumn discriminatorColumn

sequenceGenerator

protected SequenceGenerator sequenceGenerator

tableGenerator

protected TableGenerator tableGenerator

namedQuery

protected NamedQuery[] namedQuery

namedNativeQuery

protected NamedNativeQuery[] namedNativeQuery

sqlResultSetMapping

protected SqlResultSetMapping[] sqlResultSetMapping

excludeDefaultListeners

protected EmptyType excludeDefaultListeners

excludeSuperclassListeners

protected EmptyType excludeSuperclassListeners

entityListeners

protected EntityListeners entityListeners

prePersist

protected PrePersist prePersist

postPersist

protected PostPersist postPersist

preRemove

protected PreRemove preRemove

postRemove

protected PostRemove postRemove

preUpdate

protected PreUpdate preUpdate

postUpdate

protected PostUpdate postUpdate

postLoad

protected PostLoad postLoad

attributeOverride

protected AttributeOverride[] attributeOverride

associationOverride

protected AssociationOverride[] associationOverride

attributes

protected Attributes attributes

name

protected String name

clazz

protected String clazz

access

protected AccessType access

metadataComplete

protected Boolean metadataComplete
Constructor Detail

Entity

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


Entity

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

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

getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getTable

public Table getTable()
Gets the value of the table property.

Returns:
possible object is Table

setTable

public void setTable(Table value)
Sets the value of the table property.

Parameters:
value - allowed object is Table

getSecondaryTable

public SecondaryTable[] getSecondaryTable()
Returns:
array of SecondaryTable

getSecondaryTable

public SecondaryTable getSecondaryTable(int idx)
Returns:
one of SecondaryTable

getSecondaryTableLength

public int getSecondaryTableLength()

setSecondaryTable

public void setSecondaryTable(SecondaryTable[] values)
Parameters:
values - allowed objects are SecondaryTable

setSecondaryTable

public SecondaryTable setSecondaryTable(int idx,
                                        SecondaryTable value)
Parameters:
value - allowed object is SecondaryTable

getPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn[] getPrimaryKeyJoinColumn()
Returns:
array of PrimaryKeyJoinColumn

getPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn getPrimaryKeyJoinColumn(int idx)
Returns:
one of PrimaryKeyJoinColumn

getPrimaryKeyJoinColumnLength

public int getPrimaryKeyJoinColumnLength()

setPrimaryKeyJoinColumn

public void setPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] values)
Parameters:
values - allowed objects are PrimaryKeyJoinColumn

setPrimaryKeyJoinColumn

public PrimaryKeyJoinColumn setPrimaryKeyJoinColumn(int idx,
                                                    PrimaryKeyJoinColumn value)
Parameters:
value - allowed object is PrimaryKeyJoinColumn

getIdClass

public IdClass getIdClass()
Gets the value of the idClass property.

Returns:
possible object is IdClass

setIdClass

public void setIdClass(IdClass value)
Sets the value of the idClass property.

Parameters:
value - allowed object is IdClass

getInheritance

public Inheritance getInheritance()
Gets the value of the inheritance property.

Returns:
possible object is Inheritance

setInheritance

public void setInheritance(Inheritance value)
Sets the value of the inheritance property.

Parameters:
value - allowed object is Inheritance

getDiscriminatorValue

public String getDiscriminatorValue()
Gets the value of the discriminatorValue property.

Returns:
possible object is String

setDiscriminatorValue

public void setDiscriminatorValue(String value)
Sets the value of the discriminatorValue property.

Parameters:
value - allowed object is String

getDiscriminatorColumn

public DiscriminatorColumn getDiscriminatorColumn()
Gets the value of the discriminatorColumn property.

Returns:
possible object is DiscriminatorColumn

setDiscriminatorColumn

public void setDiscriminatorColumn(DiscriminatorColumn value)
Sets the value of the discriminatorColumn property.

Parameters:
value - allowed object is DiscriminatorColumn

getSequenceGenerator

public SequenceGenerator getSequenceGenerator()
Gets the value of the sequenceGenerator property.

Returns:
possible object is SequenceGenerator

setSequenceGenerator

public void setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.

Parameters:
value - allowed object is SequenceGenerator

getTableGenerator

public TableGenerator getTableGenerator()
Gets the value of the tableGenerator property.

Returns:
possible object is TableGenerator

setTableGenerator

public void setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.

Parameters:
value - allowed object is TableGenerator

getNamedQuery

public NamedQuery[] getNamedQuery()
Returns:
array of NamedQuery

getNamedQuery

public NamedQuery getNamedQuery(int idx)
Returns:
one of NamedQuery

getNamedQueryLength

public int getNamedQueryLength()

setNamedQuery

public void setNamedQuery(NamedQuery[] values)
Parameters:
values - allowed objects are NamedQuery

setNamedQuery

public NamedQuery setNamedQuery(int idx,
                                NamedQuery value)
Parameters:
value - allowed object is NamedQuery

getNamedNativeQuery

public NamedNativeQuery[] getNamedNativeQuery()
Returns:
array of NamedNativeQuery

getNamedNativeQuery

public NamedNativeQuery getNamedNativeQuery(int idx)
Returns:
one of NamedNativeQuery

getNamedNativeQueryLength

public int getNamedNativeQueryLength()

setNamedNativeQuery

public void setNamedNativeQuery(NamedNativeQuery[] values)
Parameters:
values - allowed objects are NamedNativeQuery

setNamedNativeQuery

public NamedNativeQuery setNamedNativeQuery(int idx,
                                            NamedNativeQuery value)
Parameters:
value - allowed object is NamedNativeQuery

getSqlResultSetMapping

public SqlResultSetMapping[] getSqlResultSetMapping()
Returns:
array of SqlResultSetMapping

getSqlResultSetMapping

public SqlResultSetMapping getSqlResultSetMapping(int idx)
Returns:
one of SqlResultSetMapping

getSqlResultSetMappingLength

public int getSqlResultSetMappingLength()

setSqlResultSetMapping

public void setSqlResultSetMapping(SqlResultSetMapping[] values)
Parameters:
values - allowed objects are SqlResultSetMapping

setSqlResultSetMapping

public SqlResultSetMapping setSqlResultSetMapping(int idx,
                                                  SqlResultSetMapping value)
Parameters:
value - allowed object is SqlResultSetMapping

getExcludeDefaultListeners

public EmptyType getExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.

Returns:
possible object is EmptyType

setExcludeDefaultListeners

public void setExcludeDefaultListeners(EmptyType value)
Sets the value of the excludeDefaultListeners property.

Parameters:
value - allowed object is EmptyType

getExcludeSuperclassListeners

public EmptyType getExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.

Returns:
possible object is EmptyType

setExcludeSuperclassListeners

public void setExcludeSuperclassListeners(EmptyType value)
Sets the value of the excludeSuperclassListeners property.

Parameters:
value - allowed object is EmptyType

getEntityListeners

public EntityListeners getEntityListeners()
Gets the value of the entityListeners property.

Returns:
possible object is EntityListeners

setEntityListeners

public void setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.

Parameters:
value - allowed object is EntityListeners

getPrePersist

public PrePersist getPrePersist()
Gets the value of the prePersist property.

Returns:
possible object is PrePersist

setPrePersist

public void setPrePersist(PrePersist value)
Sets the value of the prePersist property.

Parameters:
value - allowed object is PrePersist

getPostPersist

public PostPersist getPostPersist()
Gets the value of the postPersist property.

Returns:
possible object is PostPersist

setPostPersist

public void setPostPersist(PostPersist value)
Sets the value of the postPersist property.

Parameters:
value - allowed object is PostPersist

getPreRemove

public PreRemove getPreRemove()
Gets the value of the preRemove property.

Returns:
possible object is PreRemove

setPreRemove

public void setPreRemove(PreRemove value)
Sets the value of the preRemove property.

Parameters:
value - allowed object is PreRemove

getPostRemove

public PostRemove getPostRemove()
Gets the value of the postRemove property.

Returns:
possible object is PostRemove

setPostRemove

public void setPostRemove(PostRemove value)
Sets the value of the postRemove property.

Parameters:
value - allowed object is PostRemove

getPreUpdate

public PreUpdate getPreUpdate()
Gets the value of the preUpdate property.

Returns:
possible object is PreUpdate

setPreUpdate

public void setPreUpdate(PreUpdate value)
Sets the value of the preUpdate property.

Parameters:
value - allowed object is PreUpdate

getPostUpdate

public PostUpdate getPostUpdate()
Gets the value of the postUpdate property.

Returns:
possible object is PostUpdate

setPostUpdate

public void setPostUpdate(PostUpdate value)
Sets the value of the postUpdate property.

Parameters:
value - allowed object is PostUpdate

getPostLoad

public PostLoad getPostLoad()
Gets the value of the postLoad property.

Returns:
possible object is PostLoad

setPostLoad

public void setPostLoad(PostLoad value)
Sets the value of the postLoad property.

Parameters:
value - allowed object is PostLoad

getAttributeOverride

public AttributeOverride[] getAttributeOverride()
Returns:
array of AttributeOverride

getAttributeOverride

public AttributeOverride getAttributeOverride(int idx)
Returns:
one of AttributeOverride

getAttributeOverrideLength

public int getAttributeOverrideLength()

setAttributeOverride

public void setAttributeOverride(AttributeOverride[] values)
Parameters:
values - allowed objects are AttributeOverride

setAttributeOverride

public AttributeOverride setAttributeOverride(int idx,
                                              AttributeOverride value)
Parameters:
value - allowed object is AttributeOverride

getAssociationOverride

public AssociationOverride[] getAssociationOverride()
Returns:
array of AssociationOverride

getAssociationOverride

public AssociationOverride getAssociationOverride(int idx)
Returns:
one of AssociationOverride

getAssociationOverrideLength

public int getAssociationOverrideLength()

setAssociationOverride

public void setAssociationOverride(AssociationOverride[] values)
Parameters:
values - allowed objects are AssociationOverride

setAssociationOverride

public AssociationOverride setAssociationOverride(int idx,
                                                  AssociationOverride value)
Parameters:
value - allowed object is AssociationOverride

getAttributes

public Attributes getAttributes()
Gets the value of the attributes property.

Returns:
possible object is Attributes

setAttributes

public void setAttributes(Attributes value)
Sets the value of the attributes property.

Parameters:
value - allowed object is Attributes

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

getClazz

public String getClazz()
Gets the value of the clazz property.

Returns:
possible object is String

setClazz

public void setClazz(String value)
Sets the value of the clazz property.

Parameters:
value - allowed object is String

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

isMetadataComplete

public Boolean isMetadataComplete()
Gets the value of the metadataComplete property.

Returns:
possible object is Boolean

setMetadataComplete

public void setMetadataComplete(Boolean value)
Sets the value of the metadataComplete property.

Parameters:
value - allowed object is Boolean

copySecondaryTable

protected void copySecondaryTable(SecondaryTable[] source)
Copies all values of property SecondaryTable.

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

copyPrimaryKeyJoinColumn

protected void copyPrimaryKeyJoinColumn(PrimaryKeyJoinColumn[] source)
Copies all values of property PrimaryKeyJoinColumn.

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

copyNamedQuery

protected void copyNamedQuery(NamedQuery[] source)
Copies all values of property NamedQuery.

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

copyNamedNativeQuery

protected void copyNamedNativeQuery(NamedNativeQuery[] source)
Copies all values of property NamedNativeQuery.

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

copySqlResultSetMapping

protected void copySqlResultSetMapping(SqlResultSetMapping[] source)
Copies all values of property SqlResultSetMapping.

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

copyAttributeOverride

protected void copyAttributeOverride(AttributeOverride[] source)
Copies all values of property AttributeOverride.

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

copyAssociationOverride

protected void copyAssociationOverride(AssociationOverride[] source)
Copies all values of property AssociationOverride.

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

clone

public Entity 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.