public class Entity extends java.lang.Object implements Mapping, Keyable<java.lang.String>
Java class for entity complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="entity">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="table" type="{http://java.sun.com/xml/ns/persistence/orm}table" minOccurs="0"/>
<element name="secondary-table" type="{http://java.sun.com/xml/ns/persistence/orm}secondary-table" maxOccurs="unbounded" minOccurs="0"/>
<element name="primary-key-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}primary-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
<element name="id-class" type="{http://java.sun.com/xml/ns/persistence/orm}id-class" minOccurs="0"/>
<element name="inheritance" type="{http://java.sun.com/xml/ns/persistence/orm}inheritance" minOccurs="0"/>
<element name="discriminator-value" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-value" minOccurs="0"/>
<element name="discriminator-column" type="{http://java.sun.com/xml/ns/persistence/orm}discriminator-column" minOccurs="0"/>
<element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/>
<element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/>
<element name="named-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="named-native-query" type="{http://java.sun.com/xml/ns/persistence/orm}named-native-query" maxOccurs="unbounded" minOccurs="0"/>
<element name="sql-result-set-mapping" type="{http://java.sun.com/xml/ns/persistence/orm}sql-result-set-mapping" maxOccurs="unbounded" minOccurs="0"/>
<element name="exclude-default-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
<element name="exclude-superclass-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}emptyType" minOccurs="0"/>
<element name="entity-listeners" type="{http://java.sun.com/xml/ns/persistence/orm}entity-listeners" minOccurs="0"/>
<element name="pre-persist" type="{http://java.sun.com/xml/ns/persistence/orm}pre-persist" minOccurs="0"/>
<element name="post-persist" type="{http://java.sun.com/xml/ns/persistence/orm}post-persist" minOccurs="0"/>
<element name="pre-remove" type="{http://java.sun.com/xml/ns/persistence/orm}pre-remove" minOccurs="0"/>
<element name="post-remove" type="{http://java.sun.com/xml/ns/persistence/orm}post-remove" minOccurs="0"/>
<element name="pre-update" type="{http://java.sun.com/xml/ns/persistence/orm}pre-update" minOccurs="0"/>
<element name="post-update" type="{http://java.sun.com/xml/ns/persistence/orm}post-update" minOccurs="0"/>
<element name="post-load" type="{http://java.sun.com/xml/ns/persistence/orm}post-load" minOccurs="0"/>
<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"/>
<element name="attributes" type="{http://java.sun.com/xml/ns/persistence/orm}attributes" minOccurs="0"/>
</sequence>
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
<attribute name="cacheable" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
| Constructor and Description |
|---|
Entity() |
Entity(java.lang.String clazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(Field field) |
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.
|
Attributes |
getAttributes()
Gets the value of the attributes property.
|
java.lang.String |
getClazz()
Gets the value of the clazz property.
|
java.lang.String |
getDescription()
Gets the value of the description property.
|
DiscriminatorColumn |
getDiscriminatorColumn()
Gets the value of the discriminatorColumn property.
|
java.lang.String |
getDiscriminatorValue()
Gets the value of the discriminatorValue property.
|
java.lang.String |
getEjbName() |
EntityListeners |
getEntityListeners()
Gets the value of the entityListeners property.
|
IdClass |
getIdClass()
Gets the value of the idClass property.
|
Inheritance |
getInheritance()
Gets the value of the inheritance property.
|
java.lang.String |
getKey()
Gets the immutable key for this object.
|
java.lang.String |
getName()
Gets the value of the name property.
|
java.util.List<NamedNativeQuery> |
getNamedNativeQuery()
Gets the value of the namedNativeQuery property.
|
java.util.List<NamedQuery> |
getNamedQuery()
Gets the value of the namedQuery property.
|
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.
|
java.util.List<PrimaryKeyJoinColumn> |
getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property.
|
java.util.List<SecondaryTable> |
getSecondaryTable()
Gets the value of the secondaryTable property.
|
SequenceGenerator |
getSequenceGenerator()
Gets the value of the sequenceGenerator property.
|
java.util.List<SqlResultSetMapping> |
getSqlResultSetMapping()
Gets the value of the sqlResultSetMapping property.
|
Table |
getTable()
Gets the value of the table property.
|
TableGenerator |
getTableGenerator()
Gets the value of the tableGenerator property.
|
java.lang.Boolean |
isCacheable()
Gets the value of the cacheable property.
|
boolean |
isExcludeDefaultListeners()
Gets the value of the excludeDefaultListeners property.
|
boolean |
isExcludeSuperclassListeners()
Gets the value of the excludeSuperclassListeners property.
|
java.lang.Boolean |
isMetadataComplete()
Gets the value of the metadataComplete property.
|
boolean |
isXmlMetadataComplete() |
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setAttributes(Attributes value)
Sets the value of the attributes property.
|
void |
setCacheable(java.lang.Boolean value)
Sets the value of the cacheable property.
|
void |
setClazz(java.lang.String value)
Sets the value of the clazz property.
|
void |
setDescription(java.lang.String value)
Sets the value of the description property.
|
void |
setDiscriminatorColumn(DiscriminatorColumn value)
Sets the value of the discriminatorColumn property.
|
void |
setDiscriminatorValue(java.lang.String value)
Sets the value of the discriminatorValue property.
|
void |
setEjbName(java.lang.String ejbName) |
void |
setEntityListeners(EntityListeners value)
Sets the value of the entityListeners property.
|
void |
setExcludeDefaultListeners(boolean value)
Sets the value of the excludeDefaultListeners property.
|
void |
setExcludeSuperclassListeners(boolean 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(java.lang.Boolean value)
Sets the value of the metadataComplete property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
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.
|
void |
setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.
|
void |
setTable(Table value)
Sets the value of the table property.
|
void |
setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.
|
void |
setXmlMetadataComplete(boolean xmlMetadataComplete) |
protected java.lang.String description
protected Table table
protected java.util.List<SecondaryTable> secondaryTable
protected java.util.List<PrimaryKeyJoinColumn> primaryKeyJoinColumn
protected IdClass idClass
protected Inheritance inheritance
protected java.lang.String discriminatorValue
protected DiscriminatorColumn discriminatorColumn
protected SequenceGenerator sequenceGenerator
protected TableGenerator tableGenerator
protected java.util.List<NamedQuery> namedQuery
protected java.util.List<NamedNativeQuery> namedNativeQuery
protected java.util.List<SqlResultSetMapping> sqlResultSetMapping
protected EmptyType excludeDefaultListeners
protected EmptyType excludeSuperclassListeners
protected EntityListeners entityListeners
protected PrePersist prePersist
protected PostPersist postPersist
protected PreRemove preRemove
protected PostRemove postRemove
protected PreUpdate preUpdate
protected PostUpdate postUpdate
protected PostLoad postLoad
protected java.util.List<AttributeOverride> attributeOverride
protected java.util.List<AssociationOverride> associationOverride
protected Attributes attributes
protected AccessType access
protected java.lang.String clazz
protected java.lang.Boolean cacheable
protected java.lang.Boolean metadataComplete
protected java.lang.String name
protected java.lang.String ejbName
protected boolean xmlMetadataComplete
public java.lang.String getDescription()
getDescription in interface MappingStringpublic void setDescription(java.lang.String value)
setDescription in interface Mappingvalue - allowed object is
Stringpublic Table getTable()
Tablepublic void setTable(Table value)
value - allowed object is
Tablepublic java.util.List<SecondaryTable> getSecondaryTable()
set method for the secondaryTable property.
For example, to add a new item, do as follows:
getSecondaryTable().add(newItem);
Objects of the following type(s) are allowed in the list
SecondaryTablepublic java.util.List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
set method for the primaryKeyJoinColumn property.
For example, to add a new item, do as follows:
getPrimaryKeyJoinColumn().add(newItem);
Objects of the following type(s) are allowed in the list
PrimaryKeyJoinColumnpublic IdClass getIdClass()
getIdClass in interface MappingIdClasspublic void setIdClass(IdClass value)
setIdClass in interface Mappingvalue - allowed object is
IdClasspublic Inheritance getInheritance()
Inheritancepublic void setInheritance(Inheritance value)
value - allowed object is
Inheritancepublic java.lang.String getDiscriminatorValue()
Stringpublic void setDiscriminatorValue(java.lang.String value)
value - allowed object is
Stringpublic DiscriminatorColumn getDiscriminatorColumn()
DiscriminatorColumnpublic void setDiscriminatorColumn(DiscriminatorColumn value)
value - allowed object is
DiscriminatorColumnpublic SequenceGenerator getSequenceGenerator()
SequenceGeneratorpublic void setSequenceGenerator(SequenceGenerator value)
value - allowed object is
SequenceGeneratorpublic TableGenerator getTableGenerator()
TableGeneratorpublic void setTableGenerator(TableGenerator value)
value - allowed object is
TableGeneratorpublic java.util.List<NamedQuery> getNamedQuery()
set method for the namedQuery property.
For example, to add a new item, do as follows:
getNamedQuery().add(newItem);
Objects of the following type(s) are allowed in the list
NamedQuerypublic java.util.List<NamedNativeQuery> getNamedNativeQuery()
set method for the namedNativeQuery property.
For example, to add a new item, do as follows:
getNamedNativeQuery().add(newItem);
Objects of the following type(s) are allowed in the list
NamedNativeQuerypublic java.util.List<SqlResultSetMapping> getSqlResultSetMapping()
set method for the sqlResultSetMapping property.
For example, to add a new item, do as follows:
getSqlResultSetMapping().add(newItem);
Objects of the following type(s) are allowed in the list
SqlResultSetMappingpublic boolean isExcludeDefaultListeners()
isExcludeDefaultListeners in interface Mappingboolean public void setExcludeDefaultListeners(boolean value)
setExcludeDefaultListeners in interface Mappingvalue - allowed object is
boolean public boolean isExcludeSuperclassListeners()
isExcludeSuperclassListeners in interface Mappingboolean public void setExcludeSuperclassListeners(boolean value)
setExcludeSuperclassListeners in interface Mappingvalue - allowed object is
boolean public EntityListeners getEntityListeners()
getEntityListeners in interface MappingEntityListenerspublic void setEntityListeners(EntityListeners value)
setEntityListeners in interface Mappingvalue - allowed object is
EntityListenerspublic PrePersist getPrePersist()
getPrePersist in interface MappingPrePersistpublic void setPrePersist(PrePersist value)
setPrePersist in interface Mappingvalue - allowed object is
PrePersistpublic PostPersist getPostPersist()
getPostPersist in interface MappingPostPersistpublic void setPostPersist(PostPersist value)
setPostPersist in interface Mappingvalue - allowed object is
PostPersistpublic PreRemove getPreRemove()
getPreRemove in interface MappingPreRemovepublic void setPreRemove(PreRemove value)
setPreRemove in interface Mappingvalue - allowed object is
PreRemovepublic PostRemove getPostRemove()
getPostRemove in interface MappingPostRemovepublic void setPostRemove(PostRemove value)
setPostRemove in interface Mappingvalue - allowed object is
PostRemovepublic PreUpdate getPreUpdate()
getPreUpdate in interface MappingPreUpdatepublic void setPreUpdate(PreUpdate value)
setPreUpdate in interface Mappingvalue - allowed object is
PreUpdatepublic PostUpdate getPostUpdate()
getPostUpdate in interface MappingPostUpdatepublic void setPostUpdate(PostUpdate value)
setPostUpdate in interface Mappingvalue - allowed object is
PostUpdatepublic PostLoad getPostLoad()
getPostLoad in interface MappingPostLoadpublic void setPostLoad(PostLoad value)
setPostLoad in interface Mappingvalue - allowed object is
PostLoadpublic 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
AttributeOverridepublic 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
AssociationOverridepublic Attributes getAttributes()
getAttributes in interface MappingAttributespublic void setAttributes(Attributes value)
setAttributes in interface Mappingvalue - allowed object is
Attributespublic AccessType getAccess()
getAccess in interface MappingAccessTypepublic void setAccess(AccessType value)
setAccess in interface Mappingvalue - allowed object is
AccessTypepublic java.lang.String getClazz()
public void setClazz(java.lang.String value)
public java.lang.Boolean isCacheable()
Booleanpublic void setCacheable(java.lang.Boolean value)
value - allowed object is
Booleanpublic java.lang.Boolean isMetadataComplete()
isMetadataComplete in interface MappingBooleanpublic void setMetadataComplete(java.lang.Boolean value)
setMetadataComplete in interface Mappingvalue - allowed object is
Booleanpublic java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getEjbName()
public void setEjbName(java.lang.String ejbName)
public boolean isXmlMetadataComplete()
public void setXmlMetadataComplete(boolean xmlMetadataComplete)