|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openejb.jee.jpa.Entity
public class Entity
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.
| Constructor Summary | |
|---|---|
Entity()
|
|
Entity(String clazz)
|
|
| Method Summary | |
|---|---|
void |
addField(Field field)
|
AccessType |
getAccess()
Gets the value of the access property. |
List<AssociationOverride> |
getAssociationOverride()
Gets the value of the associationOverride property. |
List<AttributeOverride> |
getAttributeOverride()
Gets the value of the attributeOverride property. |
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. |
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. |
String |
getKey()
Gets the immutable key for this object. |
String |
getName()
Gets the value of the name property. |
List<NamedNativeQuery> |
getNamedNativeQuery()
Gets the value of the namedNativeQuery property. |
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. |
List<PrimaryKeyJoinColumn> |
getPrimaryKeyJoinColumn()
Gets the value of the primaryKeyJoinColumn property. |
List<SecondaryTable> |
getSecondaryTable()
Gets the value of the secondaryTable property. |
SequenceGenerator |
getSequenceGenerator()
Gets the value of the sequenceGenerator property. |
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. |
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. |
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(Boolean value)
Sets the value of the cacheable 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 |
setEjbName(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(Boolean value)
Sets the value of the metadataComplete property. |
void |
setName(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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String description
protected Table table
protected List<SecondaryTable> secondaryTable
protected List<PrimaryKeyJoinColumn> primaryKeyJoinColumn
protected IdClass idClass
protected Inheritance inheritance
protected String discriminatorValue
protected DiscriminatorColumn discriminatorColumn
protected SequenceGenerator sequenceGenerator
protected TableGenerator tableGenerator
protected List<NamedQuery> namedQuery
protected List<NamedNativeQuery> namedNativeQuery
protected 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 List<AttributeOverride> attributeOverride
protected List<AssociationOverride> associationOverride
protected Attributes attributes
protected AccessType access
protected String clazz
protected Boolean cacheable
protected Boolean metadataComplete
protected String name
protected String ejbName
protected boolean xmlMetadataComplete
| Constructor Detail |
|---|
public Entity()
public Entity(String clazz)
| Method Detail |
|---|
public String getDescription()
getDescription in interface MappingStringpublic void setDescription(String value)
setDescription in interface Mappingvalue - allowed object is
Stringpublic Table getTable()
Tablepublic void setTable(Table value)
value - allowed object is
Tablepublic List<SecondaryTable> getSecondaryTable()
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 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
SecondaryTable
public List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()
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 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
PrimaryKeyJoinColumn
public 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 String getDiscriminatorValue()
Stringpublic void setDiscriminatorValue(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 List<NamedQuery> getNamedQuery()
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 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
NamedQuery
public List<NamedNativeQuery> getNamedNativeQuery()
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 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
NamedNativeQuery
public List<SqlResultSetMapping> getSqlResultSetMapping()
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 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
SqlResultSetMapping
public 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 List<AttributeOverride> getAttributeOverride()
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
public List<AssociationOverride> getAssociationOverride()
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
public 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 String getClazz()
getClazz in interface MappingStringpublic void setClazz(String value)
setClazz in interface Mappingvalue - allowed object is
Stringpublic Boolean isCacheable()
Booleanpublic void setCacheable(Boolean value)
value - allowed object is
Booleanpublic Boolean isMetadataComplete()
isMetadataComplete in interface MappingBooleanpublic void setMetadataComplete(Boolean value)
setMetadataComplete in interface Mappingvalue - allowed object is
Booleanpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getEjbName()
public void setEjbName(String ejbName)
public boolean isXmlMetadataComplete()
public void setXmlMetadataComplete(boolean xmlMetadataComplete)
public void addField(Field field)
addField in interface Mappingpublic String getKey()
Keyable
getKey in interface Keyable<String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||