Java Doc for Entity.java in  » J2EE » openejb3 » org » apache » openejb » jee » jpa » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » openejb3 » org.apache.openejb.jee.jpa 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openejb.jee.jpa.Entity

Entity
public class Entity implements Mapping(Code)
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.


Field Summary
protected  AccessTypeaccess
    
protected  List<AssociationOverride>associationOverride
    
protected  List<AttributeOverride>attributeOverride
    
protected  Attributesattributes
    
protected  Stringclazz
    
protected  Stringdescription
    
protected  DiscriminatorColumndiscriminatorColumn
    
protected  StringdiscriminatorValue
    
protected  EntityListenersentityListeners
    
protected  EmptyTypeexcludeDefaultListeners
    
protected  EmptyTypeexcludeSuperclassListeners
    
protected  IdClassidClass
    
protected  Inheritanceinheritance
    
protected  BooleanmetadataComplete
    
protected  Stringname
    
protected  List<NamedNativeQuery>namedNativeQuery
    
protected  List<NamedQuery>namedQuery
    
protected  PostLoadpostLoad
    
protected  PostPersistpostPersist
    
protected  PostRemovepostRemove
    
protected  PostUpdatepostUpdate
    
protected  PrePersistprePersist
    
protected  PreRemovepreRemove
    
protected  PreUpdatepreUpdate
    
protected  List<PrimaryKeyJoinColumn>primaryKeyJoinColumn
    
protected  List<SecondaryTable>secondaryTable
    
protected  SequenceGeneratorsequenceGenerator
    
protected  List<SqlResultSetMapping>sqlResultSetMapping
    
protected  Tabletable
    
protected  TableGeneratortableGenerator
    


Method Summary
public  voidaddField(Field field)
    
public  AccessTypegetAccess()
     Gets the value of the access property.
public  List<AssociationOverride>getAssociationOverride()
     Gets the value of the associationOverride property.

This accessor method returns a reference to the live list, not a snapshot.

public  List<AttributeOverride>getAttributeOverride()
     Gets the value of the attributeOverride property.

This accessor method returns a reference to the live list, not a snapshot.

public  AttributesgetAttributes()
     Gets the value of the attributes property.
public  StringgetClazz()
     Gets the value of the clazz property.
public  StringgetDescription()
     Gets the value of the description property.
public  DiscriminatorColumngetDiscriminatorColumn()
     Gets the value of the discriminatorColumn property.
public  StringgetDiscriminatorValue()
     Gets the value of the discriminatorValue property.
public  EntityListenersgetEntityListeners()
     Gets the value of the entityListeners property.
public  IdClassgetIdClass()
     Gets the value of the idClass property.
public  InheritancegetInheritance()
     Gets the value of the inheritance property.
public  StringgetName()
     Gets the value of the name property.
public  List<NamedNativeQuery>getNamedNativeQuery()
     Gets the value of the namedNativeQuery property.

This accessor method returns a reference to the live list, not a snapshot.

public  List<NamedQuery>getNamedQuery()
     Gets the value of the namedQuery property.

This accessor method returns a reference to the live list, not a snapshot.

public  PostLoadgetPostLoad()
     Gets the value of the postLoad property.
public  PostPersistgetPostPersist()
     Gets the value of the postPersist property.
public  PostRemovegetPostRemove()
     Gets the value of the postRemove property.
public  PostUpdategetPostUpdate()
     Gets the value of the postUpdate property.
public  PrePersistgetPrePersist()
     Gets the value of the prePersist property.
public  PreRemovegetPreRemove()
     Gets the value of the preRemove property.
public  PreUpdategetPreUpdate()
     Gets the value of the preUpdate property.
public  List<PrimaryKeyJoinColumn>getPrimaryKeyJoinColumn()
     Gets the value of the primaryKeyJoinColumn property.

This accessor method returns a reference to the live list, not a snapshot.

public  List<SecondaryTable>getSecondaryTable()
     Gets the value of the secondaryTable property.

This accessor method returns a reference to the live list, not a snapshot.

public  SequenceGeneratorgetSequenceGenerator()
     Gets the value of the sequenceGenerator property.
public  List<SqlResultSetMapping>getSqlResultSetMapping()
     Gets the value of the sqlResultSetMapping property.

This accessor method returns a reference to the live list, not a snapshot.

public  TablegetTable()
     Gets the value of the table property.
public  TableGeneratorgetTableGenerator()
     Gets the value of the tableGenerator property.
public  booleanisExcludeDefaultListeners()
     Gets the value of the excludeDefaultListeners property.
public  booleanisExcludeSuperclassListeners()
     Gets the value of the excludeSuperclassListeners property.
public  BooleanisMetadataComplete()
     Gets the value of the metadataComplete property.
public  voidsetAccess(AccessType value)
     Sets the value of the access property.
public  voidsetAttributes(Attributes value)
     Sets the value of the attributes property.
public  voidsetClazz(String value)
     Sets the value of the clazz property.
public  voidsetDescription(String value)
     Sets the value of the description property.
public  voidsetDiscriminatorColumn(DiscriminatorColumn value)
     Sets the value of the discriminatorColumn property.
public  voidsetDiscriminatorValue(String value)
     Sets the value of the discriminatorValue property.
public  voidsetEntityListeners(EntityListeners value)
     Sets the value of the entityListeners property.
public  voidsetExcludeDefaultListeners(boolean value)
     Sets the value of the excludeDefaultListeners property.
public  voidsetExcludeSuperclassListeners(boolean value)
     Sets the value of the excludeSuperclassListeners property.
public  voidsetIdClass(IdClass value)
     Sets the value of the idClass property.
public  voidsetInheritance(Inheritance value)
     Sets the value of the inheritance property.
public  voidsetMetadataComplete(Boolean value)
     Sets the value of the metadataComplete property.
public  voidsetName(String value)
     Sets the value of the name property.
public  voidsetPostLoad(PostLoad value)
     Sets the value of the postLoad property.
public  voidsetPostPersist(PostPersist value)
     Sets the value of the postPersist property.
public  voidsetPostRemove(PostRemove value)
     Sets the value of the postRemove property.
public  voidsetPostUpdate(PostUpdate value)
     Sets the value of the postUpdate property.
public  voidsetPrePersist(PrePersist value)
     Sets the value of the prePersist property.
public  voidsetPreRemove(PreRemove value)
     Sets the value of the preRemove property.
public  voidsetPreUpdate(PreUpdate value)
     Sets the value of the preUpdate property.
public  voidsetSequenceGenerator(SequenceGenerator value)
     Sets the value of the sequenceGenerator property.
public  voidsetTable(Table value)
     Sets the value of the table property.
public  voidsetTableGenerator(TableGenerator value)
     Sets the value of the tableGenerator property.

Field Detail
access
protected AccessType access(Code)



associationOverride
protected List<AssociationOverride> associationOverride(Code)



attributeOverride
protected List<AttributeOverride> attributeOverride(Code)



attributes
protected Attributes attributes(Code)



clazz
protected String clazz(Code)



description
protected String description(Code)



discriminatorColumn
protected DiscriminatorColumn discriminatorColumn(Code)



discriminatorValue
protected String discriminatorValue(Code)



entityListeners
protected EntityListeners entityListeners(Code)



excludeDefaultListeners
protected EmptyType excludeDefaultListeners(Code)



excludeSuperclassListeners
protected EmptyType excludeSuperclassListeners(Code)



idClass
protected IdClass idClass(Code)



inheritance
protected Inheritance inheritance(Code)



metadataComplete
protected Boolean metadataComplete(Code)



name
protected String name(Code)



namedNativeQuery
protected List<NamedNativeQuery> namedNativeQuery(Code)



namedQuery
protected List<NamedQuery> namedQuery(Code)



postLoad
protected PostLoad postLoad(Code)



postPersist
protected PostPersist postPersist(Code)



postRemove
protected PostRemove postRemove(Code)



postUpdate
protected PostUpdate postUpdate(Code)



prePersist
protected PrePersist prePersist(Code)



preRemove
protected PreRemove preRemove(Code)



preUpdate
protected PreUpdate preUpdate(Code)



primaryKeyJoinColumn
protected List<PrimaryKeyJoinColumn> primaryKeyJoinColumn(Code)



secondaryTable
protected List<SecondaryTable> secondaryTable(Code)



sequenceGenerator
protected SequenceGenerator sequenceGenerator(Code)



sqlResultSetMapping
protected List<SqlResultSetMapping> sqlResultSetMapping(Code)



table
protected Table table(Code)



tableGenerator
protected TableGenerator tableGenerator(Code)





Method Detail
addField
public void addField(Field field)(Code)



getAccess
public AccessType getAccess()(Code)
Gets the value of the access property. possible object isAccessType



getAssociationOverride
public List<AssociationOverride> getAssociationOverride()(Code)
Gets the value of the associationOverride 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 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




getAttributeOverride
public List<AttributeOverride> getAttributeOverride()(Code)
Gets the value of the attributeOverride 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 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




getAttributes
public Attributes getAttributes()(Code)
Gets the value of the attributes property. possible object isAttributes



getClazz
public String getClazz()(Code)
Gets the value of the clazz property. possible object isString



getDescription
public String getDescription()(Code)
Gets the value of the description property. possible object isString



getDiscriminatorColumn
public DiscriminatorColumn getDiscriminatorColumn()(Code)
Gets the value of the discriminatorColumn property. possible object isDiscriminatorColumn



getDiscriminatorValue
public String getDiscriminatorValue()(Code)
Gets the value of the discriminatorValue property. possible object isString



getEntityListeners
public EntityListeners getEntityListeners()(Code)
Gets the value of the entityListeners property. possible object isEntityListeners



getIdClass
public IdClass getIdClass()(Code)
Gets the value of the idClass property. possible object isIdClass



getInheritance
public Inheritance getInheritance()(Code)
Gets the value of the inheritance property. possible object isInheritance



getName
public String getName()(Code)
Gets the value of the name property. possible object isString



getNamedNativeQuery
public List<NamedNativeQuery> getNamedNativeQuery()(Code)
Gets the value of the namedNativeQuery 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 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




getNamedQuery
public List<NamedQuery> getNamedQuery()(Code)
Gets the value of the namedQuery 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 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




getPostLoad
public PostLoad getPostLoad()(Code)
Gets the value of the postLoad property. possible object isPostLoad



getPostPersist
public PostPersist getPostPersist()(Code)
Gets the value of the postPersist property. possible object isPostPersist



getPostRemove
public PostRemove getPostRemove()(Code)
Gets the value of the postRemove property. possible object isPostRemove



getPostUpdate
public PostUpdate getPostUpdate()(Code)
Gets the value of the postUpdate property. possible object isPostUpdate



getPrePersist
public PrePersist getPrePersist()(Code)
Gets the value of the prePersist property. possible object isPrePersist



getPreRemove
public PreRemove getPreRemove()(Code)
Gets the value of the preRemove property. possible object isPreRemove



getPreUpdate
public PreUpdate getPreUpdate()(Code)
Gets the value of the preUpdate property. possible object isPreUpdate



getPrimaryKeyJoinColumn
public List<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn()(Code)
Gets the value of the primaryKeyJoinColumn 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 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




getSecondaryTable
public List<SecondaryTable> getSecondaryTable()(Code)
Gets the value of the secondaryTable 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 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




getSequenceGenerator
public SequenceGenerator getSequenceGenerator()(Code)
Gets the value of the sequenceGenerator property. possible object isSequenceGenerator



getSqlResultSetMapping
public List<SqlResultSetMapping> getSqlResultSetMapping()(Code)
Gets the value of the sqlResultSetMapping 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 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




getTable
public Table getTable()(Code)
Gets the value of the table property. possible object isTable



getTableGenerator
public TableGenerator getTableGenerator()(Code)
Gets the value of the tableGenerator property. possible object isTableGenerator



isExcludeDefaultListeners
public boolean isExcludeDefaultListeners()(Code)
Gets the value of the excludeDefaultListeners property. possible object is boolean



isExcludeSuperclassListeners
public boolean isExcludeSuperclassListeners()(Code)
Gets the value of the excludeSuperclassListeners property. possible object is boolean



isMetadataComplete
public Boolean isMetadataComplete()(Code)
Gets the value of the metadataComplete property. possible object isBoolean



setAccess
public void setAccess(AccessType value)(Code)
Sets the value of the access property.
Parameters:
  value - allowed object isAccessType



setAttributes
public void setAttributes(Attributes value)(Code)
Sets the value of the attributes property.
Parameters:
  value - allowed object isAttributes



setClazz
public void setClazz(String value)(Code)
Sets the value of the clazz property.
Parameters:
  value - allowed object isString



setDescription
public void setDescription(String value)(Code)
Sets the value of the description property.
Parameters:
  value - allowed object isString



setDiscriminatorColumn
public void setDiscriminatorColumn(DiscriminatorColumn value)(Code)
Sets the value of the discriminatorColumn property.
Parameters:
  value - allowed object isDiscriminatorColumn



setDiscriminatorValue
public void setDiscriminatorValue(String value)(Code)
Sets the value of the discriminatorValue property.
Parameters:
  value - allowed object isString



setEntityListeners
public void setEntityListeners(EntityListeners value)(Code)
Sets the value of the entityListeners property.
Parameters:
  value - allowed object isEntityListeners



setExcludeDefaultListeners
public void setExcludeDefaultListeners(boolean value)(Code)
Sets the value of the excludeDefaultListeners property.
Parameters:
  value - allowed object is boolean



setExcludeSuperclassListeners
public void setExcludeSuperclassListeners(boolean value)(Code)
Sets the value of the excludeSuperclassListeners property.
Parameters:
  value - allowed object is boolean



setIdClass
public void setIdClass(IdClass value)(Code)
Sets the value of the idClass property.
Parameters:
  value - allowed object isIdClass



setInheritance
public void setInheritance(Inheritance value)(Code)
Sets the value of the inheritance property.
Parameters:
  value - allowed object isInheritance



setMetadataComplete
public void setMetadataComplete(Boolean value)(Code)
Sets the value of the metadataComplete property.
Parameters:
  value - allowed object isBoolean



setName
public void setName(String value)(Code)
Sets the value of the name property.
Parameters:
  value - allowed object isString



setPostLoad
public void setPostLoad(PostLoad value)(Code)
Sets the value of the postLoad property.
Parameters:
  value - allowed object isPostLoad



setPostPersist
public void setPostPersist(PostPersist value)(Code)
Sets the value of the postPersist property.
Parameters:
  value - allowed object isPostPersist



setPostRemove
public void setPostRemove(PostRemove value)(Code)
Sets the value of the postRemove property.
Parameters:
  value - allowed object isPostRemove



setPostUpdate
public void setPostUpdate(PostUpdate value)(Code)
Sets the value of the postUpdate property.
Parameters:
  value - allowed object isPostUpdate



setPrePersist
public void setPrePersist(PrePersist value)(Code)
Sets the value of the prePersist property.
Parameters:
  value - allowed object isPrePersist



setPreRemove
public void setPreRemove(PreRemove value)(Code)
Sets the value of the preRemove property.
Parameters:
  value - allowed object isPreRemove



setPreUpdate
public void setPreUpdate(PreUpdate value)(Code)
Sets the value of the preUpdate property.
Parameters:
  value - allowed object isPreUpdate



setSequenceGenerator
public void setSequenceGenerator(SequenceGenerator value)(Code)
Sets the value of the sequenceGenerator property.
Parameters:
  value - allowed object isSequenceGenerator



setTable
public void setTable(Table value)(Code)
Sets the value of the table property.
Parameters:
  value - allowed object isTable



setTableGenerator
public void setTableGenerator(TableGenerator value)(Code)
Sets the value of the tableGenerator property.
Parameters:
  value - allowed object isTableGenerator



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.