Java Doc for EntityMappings.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.EntityMappings

EntityMappings
public class EntityMappings (Code)
The entity-mappings element is the root element of an mapping file. It contains the following four types of elements: 1. The persistence-unit-metadata element contains metadata for the entire persistence unit. It is undefined if this element occurs in multiple mapping files within the same persistence unit. 2. The package, schema, catalog and access elements apply to all of the entity, mapped-superclass and embeddable elements defined in the same file in which they occur. 3. The sequence-generator, table-generator, named-query, named-native-query and sql-result-set-mapping elements are global to the persistence unit. It is undefined to have more than one sequence-generator or table-generator of the same name in the same or different mapping files in a persistence unit. It is also undefined to have more than one named-query or named-native-query of the same name in the same or different mapping files in a persistence unit. 4. The entity, mapped-superclass and embeddable elements each define the mapping information for a managed persistent class. The mapping information contained in these elements may be complete or it may be partial.

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
 <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="persistence-unit-metadata" type="{http://java.sun.com/xml/ns/persistence/orm}persistence-unit-metadata" minOccurs="0"/>
 <element name="package" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 <element name="schema" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 <element name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 <element name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" minOccurs="0"/>
 <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" maxOccurs="unbounded" minOccurs="0"/>
 <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" maxOccurs="unbounded" 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="mapped-superclass" type="{http://java.sun.com/xml/ns/persistence/orm}mapped-superclass" maxOccurs="unbounded" minOccurs="0"/>
 <element name="entity" type="{http://java.sun.com/xml/ns/persistence/orm}entity" maxOccurs="unbounded" minOccurs="0"/>
 <element name="embeddable" type="{http://java.sun.com/xml/ns/persistence/orm}embeddable" maxOccurs="unbounded" minOccurs="0"/>
 </sequence>
 <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/persistence/orm}versionType" fixed="1.0" />
 </restriction>
 </complexContent>
 </complexType>
 


Field Summary
protected  String_package
    
protected  AccessTypeaccess
    
protected  Stringcatalog
    
protected  Stringdescription
    
protected  List<Embeddable>embeddable
    
protected  List<Entity>entity
    
protected  List<MappedSuperclass>mappedSuperclass
    
protected  List<NamedNativeQuery>namedNativeQuery
    
protected  List<NamedQuery>namedQuery
    
protected  PersistenceUnitMetadatapersistenceUnitMetadata
    
protected  Stringschema
    
protected  List<SequenceGenerator>sequenceGenerator
    
protected  List<SqlResultSetMapping>sqlResultSetMapping
    
protected  List<TableGenerator>tableGenerator
    
protected  Stringversion
    


Method Summary
public  AccessTypegetAccess()
     Gets the value of the access property.
public  StringgetCatalog()
     Gets the value of the catalog property.
public  StringgetDescription()
     Gets the value of the description property.
public  List<Embeddable>getEmbeddable()
     Gets the value of the embeddable property.

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

public  List<Entity>getEntity()
     Gets the value of the entity property.

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

public  List<MappedSuperclass>getMappedSuperclass()
     Gets the value of the mappedSuperclass property.

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

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  StringgetPackage()
     Gets the value of the package property.
public  PersistenceUnitMetadatagetPersistenceUnitMetadata()
     Gets the value of the persistenceUnitMetadata property.
public  StringgetSchema()
     Gets the value of the schema property.
public  List<SequenceGenerator>getSequenceGenerator()
     Gets the value of the sequenceGenerator property.

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

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  List<TableGenerator>getTableGenerator()
     Gets the value of the tableGenerator property.

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

public  StringgetVersion()
     Gets the value of the version property.
public  voidsetAccess(AccessType value)
     Sets the value of the access property.
public  voidsetCatalog(String value)
     Sets the value of the catalog property.
public  voidsetDescription(String value)
     Sets the value of the description property.
public  voidsetPackage(String value)
     Sets the value of the package property.
public  voidsetPersistenceUnitMetadata(PersistenceUnitMetadata value)
     Sets the value of the persistenceUnitMetadata property.
public  voidsetSchema(String value)
     Sets the value of the schema property.
public  voidsetVersion(String value)
     Sets the value of the version property.

Field Detail
_package
protected String _package(Code)



access
protected AccessType access(Code)



catalog
protected String catalog(Code)



description
protected String description(Code)



embeddable
protected List<Embeddable> embeddable(Code)



entity
protected List<Entity> entity(Code)



mappedSuperclass
protected List<MappedSuperclass> mappedSuperclass(Code)



namedNativeQuery
protected List<NamedNativeQuery> namedNativeQuery(Code)



namedQuery
protected List<NamedQuery> namedQuery(Code)



persistenceUnitMetadata
protected PersistenceUnitMetadata persistenceUnitMetadata(Code)



schema
protected String schema(Code)



sequenceGenerator
protected List<SequenceGenerator> sequenceGenerator(Code)



sqlResultSetMapping
protected List<SqlResultSetMapping> sqlResultSetMapping(Code)



tableGenerator
protected List<TableGenerator> tableGenerator(Code)



version
protected String version(Code)





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



getCatalog
public String getCatalog()(Code)
Gets the value of the catalog property. possible object isString



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



getEmbeddable
public List<Embeddable> getEmbeddable()(Code)
Gets the value of the embeddable 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 embeddable property.

For example, to add a new item, do as follows:

 getEmbeddable().add(newItem);
 

Objects of the following type(s) are allowed in the list Embeddable




getEntity
public List<Entity> getEntity()(Code)
Gets the value of the entity 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 entity property.

For example, to add a new item, do as follows:

 getEntity().add(newItem);
 

Objects of the following type(s) are allowed in the list Entity




getMappedSuperclass
public List<MappedSuperclass> getMappedSuperclass()(Code)
Gets the value of the mappedSuperclass 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 mappedSuperclass property.

For example, to add a new item, do as follows:

 getMappedSuperclass().add(newItem);
 

Objects of the following type(s) are allowed in the list MappedSuperclass




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




getPackage
public String getPackage()(Code)
Gets the value of the package property. possible object isString



getPersistenceUnitMetadata
public PersistenceUnitMetadata getPersistenceUnitMetadata()(Code)
Gets the value of the persistenceUnitMetadata property. possible object isPersistenceUnitMetadata



getSchema
public String getSchema()(Code)
Gets the value of the schema property. possible object isString



getSequenceGenerator
public List<SequenceGenerator> getSequenceGenerator()(Code)
Gets the value of the sequenceGenerator 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 sequenceGenerator property.

For example, to add a new item, do as follows:

 getSequenceGenerator().add(newItem);
 

Objects of the following type(s) are allowed in the list SequenceGenerator




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




getTableGenerator
public List<TableGenerator> getTableGenerator()(Code)
Gets the value of the tableGenerator 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 tableGenerator property.

For example, to add a new item, do as follows:

 getTableGenerator().add(newItem);
 

Objects of the following type(s) are allowed in the list TableGenerator




getVersion
public String getVersion()(Code)
Gets the value of the version property. possible object isString



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



setCatalog
public void setCatalog(String value)(Code)
Sets the value of the catalog 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



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



setPersistenceUnitMetadata
public void setPersistenceUnitMetadata(PersistenceUnitMetadata value)(Code)
Sets the value of the persistenceUnitMetadata property.
Parameters:
  value - allowed object isPersistenceUnitMetadata



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



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



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.