Java Doc for JPersistenceUnitInfo.java in  » J2EE » ow2-easybeans » org » ow2 » easybeans » persistence » xml » 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 » ow2 easybeans » org.ow2.easybeans.persistence.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ow2.easybeans.persistence.xml.JPersistenceUnitInfo

JPersistenceUnitInfo
public class JPersistenceUnitInfo implements PersistenceUnitInfo(Code)
Implementation of the PersistenceUnitInfo interface. It is given to the persistence provider to create entity managers.
author:
   Florent Benoit



Constructor Summary
public  JPersistenceUnitInfo()
     Default constructor.

Method Summary
public  voidaddClass(String className)
     Adds a class that the persistence provider must add it to its set of managed classes.
public  voidaddJarFile(URL jarFile)
     Adds a jar file to the list of JAR file URLs that the persistence provider must look in to find the entity classes that must be managed by EntityManagers of this name.
public  voidaddMappingFileName(String mappingFileName)
     Adds a filename to the list of mapping file names.
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 PersistenceInfo.getClassLoader method.
public  booleanexcludeUnlistedClasses()
     Whether classes in the root of the persistence unit that have notbeen explicitly listed are to be included in the set of managedclasses.
public  ClassLoadergetClassLoader()
    
public  List<URL>getJarFileUrls()
     The list of JAR file URLs that the persistence provider mustexamine for managed classes of the persistence unit.
public  List<URL>getJarFiles()
     The list of JAR file URLs that the persistence provider must lookin to find the entity classes that must be managed byEntityManagers of this name.
public  DataSourcegetJtaDataSource()
     the JTA-enabled data source to be used by the persistenceprovider.
public  StringgetJtaDataSourceName()
     Gets the jta datasource name.
public  List<String>getManagedClassNames()
     The list of the names of the classes that the persistenceprovider must add it to its set of managed classes.
public  List<String>getMappingFileNames()
     The list of mapping file names that the persistence provider mustload 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()
     The non-JTA-enabled data source to be used by the persistenceprovider when outside the container, or inside the container whenaccessing data outside the global transaction.
public  StringgetNonJtaDataSourceName()
     Gets the non jta datasource name.
public  PersistenceProvidergetPersistenceProvider()
    
public  StringgetPersistenceProviderClassName()
    
public  StringgetPersistenceUnitName()
    
public  URLgetPersistenceUnitRootUrl()
     The URL for the jar file or directory that is the root of thepersistence unit.
public  URLgetPersistenceXmlFileUrl()
     URL object that points to the persistence.xml file; useful forproviders that may need to re-read the persistence.xml file.
public  PropertiesgetProperties()
     Properties object that may contain vendor-specific propertiescontained in the persistence.xml file.
public  PersistenceUnitTransactionTypegetTransactionType()
     The transaction type of the entity managers created by theEntityManagerFactory.
public  voidsetClassLoader(ClassLoader classLoader)
     Sets the classloader.
public  voidsetExcludeUnlistedClasses(boolean excludeUnlistedClasses)
     Sets the boolean defining if the persistence unit that have not been explicitly listed are to be included in the set of managed classes.
public  voidsetJtaDataSource(DataSource jtaDataSource)
     Sets the JTA-enabled data source.
public  voidsetJtaDataSourceName(String jtaDataSourceName)
     Sets the JTA-enabled data source name.
public  voidsetNonJtaDataSource(DataSource nonJtaDataSource)
     Sets the non-JTA-enabled data source.
public  voidsetNonJtaDataSourceName(String nonJtaDataSourceName)
     Sets the non-JTA-enabled data source name.
public  voidsetPersistenceProvider(PersistenceProvider persistenceProvider)
     Sets the persistence provider object.
public  voidsetPersistenceProviderClassName(String persistenceProviderClassName)
     Sets the persistence provider implementation class name.
public  voidsetPersistenceUnitName(String persistenceUnitName)
     Sets the name of the persistence unit.
public  voidsetPersistenceUnitRootUrl(URL persistenceUnitRootUrl)
     Sets the URL for the jar file or directory that is the root of the persistence unit.
public  voidsetPersistenceXmlFileUrl(URL persistenceXmlFileUrl)
     Sets the URL object that points to the persistence.xml file.
public  voidsetProperties(Properties properties)
     Sets the properties use by this unit.
public  voidsetTransactionType(PersistenceUnitTransactionType transactionType)
     Sets the transaction type of the entity managers created by the EntityManagerFactory.


Constructor Detail
JPersistenceUnitInfo
public JPersistenceUnitInfo()(Code)
Default constructor.




Method Detail
addClass
public void addClass(String className)(Code)
Adds a class that the persistence provider must add it to its set of managed classes.
Parameters:
  className - name of the class



addJarFile
public void addJarFile(URL jarFile)(Code)
Adds a jar file to the list of JAR file URLs that the persistence provider must look in to find the entity classes that must be managed by EntityManagers of this name.
Parameters:
  jarFile - URL of the jar file



addMappingFileName
public void addMappingFileName(String mappingFileName)(Code)
Adds a filename to the list of mapping file names.
Parameters:
  mappingFileName - name of the mapping file to add.



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 PersistenceInfo.getClassLoader method. The transformer has no effect on the result returned by the PersistenceInfo.getTempClassLoader 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)
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.xmlfile.



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



getJarFileUrls
public List<URL> getJarFileUrls()(Code)
The list of JAR file URLs that the persistence provider mustexamine for managed classes of the persistence unit. Each jarfile URL corresponds to a named <jar-file> element in thepersistence.xml file.



getJarFiles
public List<URL> getJarFiles()(Code)
The list of JAR file URLs that the persistence provider must lookin to find the entity classes that must be managed byEntityManagers of this name. The persistence archive jar itselfwill always be the last entry in the list. Each jar file URLcorresponds to a named <jar-file> element inpersistence.xml



getJtaDataSource
public DataSource getJtaDataSource()(Code)
the JTA-enabled data source to be used by the persistenceprovider. The data source corresponds to the named<jta-data-source> element in persistence.xml



getJtaDataSourceName
public String getJtaDataSourceName()(Code)
Gets the jta datasource name. jta datasource name.



getManagedClassNames
public List<String> getManagedClassNames()(Code)
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 thepersistence.xml file.



getMappingFileNames
public List<String> getMappingFileNames()(Code)
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 entity-mappings.xmlfile if one was specified. Each mapping file name corresponds toa <mapping-file> element in persistence.xml



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 PersistenceInfo.getClassLoader. None of the classes loaded by this class loader will be visible to application components. The container does not use or maintain references to this class loader after returning it to the provider. Temporary ClassLoader with same visibility as current loader



getNonJtaDataSource
public DataSource getNonJtaDataSource()(Code)
The non-JTA-enabled data source to be used by the persistenceprovider when outside the container, or inside the container whenaccessing data outside the global transaction. The data sourcecorresponds to the named <non-jta-data-source> element inpersistence.xml



getNonJtaDataSourceName
public String getNonJtaDataSourceName()(Code)
Gets the non jta datasource name. non jta datasource name



getPersistenceProvider
public PersistenceProvider getPersistenceProvider()(Code)
The persistence provider implementation object.



getPersistenceProviderClassName
public String getPersistenceProviderClassName()(Code)
The name of the persistence provider implementation class.Corresponds to the <provider> element in persistence.xml



getPersistenceUnitName
public String getPersistenceUnitName()(Code)
The name of the Persistence unit that is being created.Corresponds to the <name> element in persistence.xml



getPersistenceUnitRootUrl
public URL getPersistenceUnitRootUrl()(Code)
The URL for the jar file or directory that is the root of thepersistence unit. (If the persistence unit is rooted in theWEB-INF/classes directory, this will be the URL of thatdirectory.)



getPersistenceXmlFileUrl
public URL getPersistenceXmlFileUrl()(Code)
URL object that points to the persistence.xml file; useful forproviders that may need to re-read the persistence.xml file. Ifno persistence.xml file is present in the persistence archive,null is returned.



getProperties
public Properties getProperties()(Code)
Properties object that may contain vendor-specific propertiescontained in the persistence.xml file. Each property correspondsto a <property> element in persistence.xml



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



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)
Sets the classloader.
Parameters:
  classLoader - that the provider may use to load any classes,resources, or open URLs.



setExcludeUnlistedClasses
public void setExcludeUnlistedClasses(boolean excludeUnlistedClasses)(Code)
Sets the boolean defining if the persistence unit that have not been explicitly listed are to be included in the set of managed classes.
Parameters:
  excludeUnlistedClasses - true/false



setJtaDataSource
public void setJtaDataSource(DataSource jtaDataSource)(Code)
Sets the JTA-enabled data source.
Parameters:
  jtaDataSource - given datasource.



setJtaDataSourceName
public void setJtaDataSourceName(String jtaDataSourceName)(Code)
Sets the JTA-enabled data source name.
Parameters:
  jtaDataSourceName - given name.



setNonJtaDataSource
public void setNonJtaDataSource(DataSource nonJtaDataSource)(Code)
Sets the non-JTA-enabled data source.
Parameters:
  nonJtaDataSource - given datasource.



setNonJtaDataSourceName
public void setNonJtaDataSourceName(String nonJtaDataSourceName)(Code)
Sets the non-JTA-enabled data source name.
Parameters:
  nonJtaDataSourceName - given name.



setPersistenceProvider
public void setPersistenceProvider(PersistenceProvider persistenceProvider)(Code)
Sets the persistence provider object.
Parameters:
  persistenceProvider - the persistence provider object used.



setPersistenceProviderClassName
public void setPersistenceProviderClassName(String persistenceProviderClassName)(Code)
Sets the persistence provider implementation class name.
Parameters:
  persistenceProviderClassName - name of the class.



setPersistenceUnitName
public void setPersistenceUnitName(String persistenceUnitName)(Code)
Sets the name of the persistence unit.
Parameters:
  persistenceUnitName - the given name



setPersistenceUnitRootUrl
public void setPersistenceUnitRootUrl(URL persistenceUnitRootUrl)(Code)
Sets the URL for the jar file or directory that is the root of the persistence unit.
Parameters:
  persistenceUnitRootUrl - root url of persistence unit



setPersistenceXmlFileUrl
public void setPersistenceXmlFileUrl(URL persistenceXmlFileUrl)(Code)
Sets the URL object that points to the persistence.xml file.
Parameters:
  persistenceXmlFileUrl - URL pointing to persistence.xml file



setProperties
public void setProperties(Properties properties)(Code)
Sets the properties use by this unit.
Parameters:
  properties - object with key/value.



setTransactionType
public void setTransactionType(PersistenceUnitTransactionType transactionType)(Code)
Sets the transaction type of the entity managers created by the EntityManagerFactory.
Parameters:
  transactionType - The transaction type corresponds to thetransaction-type attribute in the persistence.xml file.



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.