Java Doc for PersistenceUnitInfo.java in  » Database-ORM » toplink » javax » persistence » spi » 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 » Database ORM » toplink » javax.persistence.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.persistence.spi.PersistenceUnitInfo

All known Subclasses:   oracle.toplink.essentials.ejb.cmp3.persistence.SEPersistenceUnitInfo,
PersistenceUnitInfo
public interface PersistenceUnitInfo (Code)
Interface implemented by the container and used by the persistence provider when creating an javax.persistence.EntityManagerFactory .
since:
   Java Persistence 1.0




Method Summary
public  voidaddTransformer(ClassTransformer transformer)
     Add a transformer supplied by the provider that will be called for every new class definition or class redefinition that gets loaded by the loader returned by the PersistenceUnitInfo.getClassLoader method.
public  booleanexcludeUnlistedClasses()
     Returns whether classes in the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes.
public  ClassLoadergetClassLoader()
     Returns ClassLoader that the provider may use to load any classes, resources, or open URLs.
public  List<URL>getJarFileUrls()
     Returns a list of URLs for the jar files or exploded jar file directories that the persistence provider must examine for managed classes of the persistence unit.
public  DataSourcegetJtaDataSource()
     Returns the JTA-enabled data source to be used by the persistence provider.
public  List<String>getManagedClassNames()
     Returns the list of the names of the classes that the persistence provider must add it to its set of managed classes.
public  List<String>getMappingFileNames()
     Returns the list of mapping file names that the persistence provider must load to determine the mappings for the entity classes.
public  ClassLoadergetNewTempClassLoader()
     Return a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs.
public  DataSourcegetNonJtaDataSource()
     Returns the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction.
public  StringgetPersistenceProviderClassName()
     Returns the fully qualified name of the persistence provider implementation class.
public  StringgetPersistenceUnitName()
     Returns the name of the persistence unit.
public  URLgetPersistenceUnitRootUrl()
     Returns the URL for the jar file or directory that is the root of the persistence unit.
public  PropertiesgetProperties()
     Returns properties object.
public  PersistenceUnitTransactionTypegetTransactionType()
     Returns the transaction type of the entity managers created by the EntityManagerFactory.



Method Detail
addTransformer
public void addTransformer(ClassTransformer transformer)(Code)
Add a transformer supplied by the provider that will be called for every new class definition or class redefinition that gets loaded by the loader returned by the PersistenceUnitInfo.getClassLoader method. The transformer has no effect on the result returned by the PersistenceUnitInfo.getNewTempClassLoader method. Classes are only transformed once within the same classloading scope, regardless of how many persistence units they may be a part of.
Parameters:
  transformer - A provider-supplied transformer that the Containerinvokes at class-(re)definition time



excludeUnlistedClasses
public boolean excludeUnlistedClasses()(Code)
Returns whether classes in the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. This value corresponds to the <exclude-unlisted-classes> element in the persistence.xml file. Whether classes in the root of the persistence unit that have notbeen explicitly listed are to be included in the set of managedclasses. This value corresponds to the <exclude-unlisted-classes>element in the persistence.xml file.



getClassLoader
public ClassLoader getClassLoader()(Code)
Returns ClassLoader that the provider may use to load any classes, resources, or open URLs. ClassLoader that the provider may use to load any classes,resources, or open URLs.



getJarFileUrls
public List<URL> getJarFileUrls()(Code)
Returns a list of URLs for the jar files or exploded jar file directories that the persistence provider must examine for managed classes of the persistence unit. Each URL corresponds to a named element in the persistence.xml file. A URL will either be a file: URL referring to a jar file or referring to a directory that contains an exploded jar file, or some other URL from which an InputStream in jar format can be obtained. a list of URL objects referring to jar files ordirectories.



getJtaDataSource
public DataSource getJtaDataSource()(Code)
Returns the JTA-enabled data source to be used by the persistence provider. The data source corresponds to the <jta-data-source> element in the persistence.xml file or is provided at deployment or by the container. the JTA-enabled data source to be used by the persistenceprovider. The data source corresponds to the <jta-data-source>element in the persistence.xml file or is provided at deploymentor by the container.



getManagedClassNames
public List<String> getManagedClassNames()(Code)
Returns the list of the names of the classes that the persistence provider must add it to its set of managed classes. Each name corresponds to a named <class> element in the persistence.xml file. The list of the names of the classes that the persistenceprovider must add it to its set of managed classes. Each namecorresponds to a named <class> element in the persistence.xmlfile.



getMappingFileNames
public List<String> getMappingFileNames()(Code)
Returns the list of mapping file names that the persistence provider must load to determine the mappings for the entity classes. The mapping files must be in the standard XML mapping format, be uniquely named and be resource-loadable from the application classpath. This list will not include the orm.xml file if one was specified. Each mapping file name corresponds to a <mapping-file> element in the persistence.xml file. The list of mapping file names that the persistence provider mustload to determine the mappings for the entity classes. Themapping files must be in the standard XML mapping format, beuniquely named and be resource-loadable from the applicationclasspath. This list will not include the orm.xml file if one wasspecified. Each mapping file name corresponds to a <mapping-file>element in the persistence.xml file.



getNewTempClassLoader
public ClassLoader getNewTempClassLoader()(Code)
Return a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs. The scope and classpath of this loader is exactly the same as that of the loader returned by PersistenceUnitInfo.getClassLoader . None of the classes loaded by this class loader will be visible to application components. The provider may only use this ClassLoader within the scope of the PersistenceProvider.createContainerEntityManagerFactory call. Temporary ClassLoader with same visibility as currentloader



getNonJtaDataSource
public DataSource getNonJtaDataSource()(Code)
Returns the non-JTA-enabled data source to be used by the persistence provider for accessing data outside a JTA transaction. The data source corresponds to the named <non-jta-data-source> element in the persistence.xml file or provided at deployment or by the container. The non-JTA-enabled data source to be used by the persistenceprovider for accessing data outside a JTA transaction. The datasource corresponds to the named <non-jta-data-source> element inthe persistence.xml file or provided at deployment or by thecontainer.



getPersistenceProviderClassName
public String getPersistenceProviderClassName()(Code)
Returns the fully qualified name of the persistence provider implementation class. Corresponds to the <provider> element in the persistence.xml file. The fully qualified name of the persistence providerimplementation class. Corresponds to the <provider> element inthe persistence.xml file.



getPersistenceUnitName
public String getPersistenceUnitName()(Code)
Returns the name of the persistence unit. Corresponds to the name attribute in the persistence.xml file. The name of the persistence unit. Corresponds to the name attributein the persistence.xml file.



getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()(Code)
Returns the URL for the jar file or directory that is the root of the persistence unit. (If the persistence unit is rooted in the WEB-INF/classes directory, this will be the URL of that directory.) The URL will either be a file: URL referring to a jar file or referring to a directory that contains an exploded jar file, or some other URL from which an InputStream in jar format can be obtained. a URL referring to a jar file or directory.



getProperties
public Properties getProperties()(Code)
Returns properties object. Each property corresponds to a <property> element in the persistence.xml file Properties object. Each property corresponds to a <property>element in the persistence.xml file



getTransactionType
public PersistenceUnitTransactionType getTransactionType()(Code)
Returns the transaction type of the entity managers created by the EntityManagerFactory. The transaction type corresponds to the transaction-type attribute in the persistence.xml file. The transaction type of the entity managers created by theEntityManagerFactory. The transaction type corresponds to thetransaction-type attribute in the persistence.xml file.



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