Java Doc for PersistenceUnitMetaData.java in  » Database-ORM » JPOX » org » jpox » metadata » 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 » JPOX » org.jpox.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.metadata.MetaData
      org.jpox.metadata.PersistenceUnitMetaData

PersistenceUnitMetaData
public class PersistenceUnitMetaData extends MetaData (Code)
MetaData representation of a "persistence.xml" persistence unit. Corresponds to the JPA spec section 6.2.1
since:
   1.1
version:
   $Revision: 1.8 $


Field Summary
 HashSetclassNames
     Names of the classes specified.
 Stringdescription
     Description of the persistence unit.
 booleanexcludeUnlistedClasses
     Whether to exclude unlisted classes.
 HashSetjarFiles
     Names/URLs of the JAR files specified.
 StringjtaDataSource
     JTA data source for the persistence unit.
 HashSetmappingFileNames
     Names of the mapping files specified.
 Stringname
     Name of the persistence unit.
 StringnonJtaDataSource
     Non-JTA data source for the persistence unit.
 Propertiesproperties
     Vendor properties.
 Stringprovider
     Provider for the persistence unit.
 TransactionTypetransactionType
     Transaction type for this persistence unit.

Constructor Summary
public  PersistenceUnitMetaData(MetaData parent, String name, String transactionType)
     Constructor.

Method Summary
public  voidaddClassName(String className)
     Method to add a class name to the persistence unit.
public  voidaddJarFile(String jarName)
     Method to add a jar file to the persistence unit.
public  voidaddJarFile(URL jarURL)
     Method to add a jar file to the persistence unit.
public  voidaddMappingFile(String mappingFile)
     Method to add a mapping file to the persistence unit.
public  voidaddProperty(String key, String value)
     Method to add a vendor property to the persistence unit.
public  voidclearJarFiles()
     Convenience method to clear out all jar files.
public  HashSetgetClassNames()
     Accessor for the class names for this persistence unit.
public  StringgetDescription()
     Accessor for the persistence unit description.
public  HashSetgetJarFiles()
     Accessor for the jar files for this persistence unit.
public  StringgetJtaDataSource()
     Accessor for the persistence unit JTA data source.
public  HashSetgetMappingFiles()
     Accessor for the class names for this persistence unit.
public  StringgetName()
     Accessor for the persistence unit name.
public  StringgetNonJtaDataSource()
     Accessor for the persistence unit non-JTA data source.
public  PropertiesgetProperties()
     Accessor for the properties for this persistence unit.
public  StringgetProvider()
     Accessor for the persistence unit provider.
public  TransactionTypegetTransactionType()
    
public  voidsetDescription(String desc)
    
public  voidsetExcludeUnlistedClasses()
    
public  voidsetJtaDataSource(String data)
    
public  voidsetNonJtaDataSource(String data)
    
public  voidsetProvider(String provider)
    
public  StringtoString(String prefix, String indent)
     Returns a string representation of the object using a prefix This can be used as part of a facility to output a MetaData file.

Field Detail
classNames
HashSet classNames(Code)
Names of the classes specified.



description
String description(Code)
Description of the persistence unit.



excludeUnlistedClasses
boolean excludeUnlistedClasses(Code)
Whether to exclude unlisted classes.



jarFiles
HashSet jarFiles(Code)
Names/URLs of the JAR files specified.



jtaDataSource
String jtaDataSource(Code)
JTA data source for the persistence unit.



mappingFileNames
HashSet mappingFileNames(Code)
Names of the mapping files specified.



name
String name(Code)
Name of the persistence unit.



nonJtaDataSource
String nonJtaDataSource(Code)
Non-JTA data source for the persistence unit.



properties
Properties properties(Code)
Vendor properties.



provider
String provider(Code)
Provider for the persistence unit.



transactionType
TransactionType transactionType(Code)
Transaction type for this persistence unit.




Constructor Detail
PersistenceUnitMetaData
public PersistenceUnitMetaData(MetaData parent, String name, String transactionType)(Code)
Constructor.
Parameters:
  parent - MetaData of parent element
Parameters:
  name - Name of the persistence unit
Parameters:
  transactionType - Transaction type for this unit




Method Detail
addClassName
public void addClassName(String className)(Code)
Method to add a class name to the persistence unit.
Parameters:
  className - Name of the class



addJarFile
public void addJarFile(String jarName)(Code)
Method to add a jar file to the persistence unit.
Parameters:
  jarName - Jar file name



addJarFile
public void addJarFile(URL jarURL)(Code)
Method to add a jar file to the persistence unit.
Parameters:
  jarURL - Jar file URL



addMappingFile
public void addMappingFile(String mappingFile)(Code)
Method to add a mapping file to the persistence unit.
Parameters:
  mappingFile - Mapping file name



addProperty
public void addProperty(String key, String value)(Code)
Method to add a vendor property to the persistence unit.
Parameters:
  key - Property name
Parameters:
  value - Property value



clearJarFiles
public void clearJarFiles()(Code)
Convenience method to clear out all jar files.



getClassNames
public HashSet getClassNames()(Code)
Accessor for the class names for this persistence unit. The class names



getDescription
public String getDescription()(Code)
Accessor for the persistence unit description. Description of the persistence unit



getJarFiles
public HashSet getJarFiles()(Code)
Accessor for the jar files for this persistence unit. The contents of the Set may be Strings (the names) or URLs The jar names



getJtaDataSource
public String getJtaDataSource()(Code)
Accessor for the persistence unit JTA data source. JTA data source for the persistence unit



getMappingFiles
public HashSet getMappingFiles()(Code)
Accessor for the class names for this persistence unit. The mapping files



getName
public String getName()(Code)
Accessor for the persistence unit name. Name of the persistence unit



getNonJtaDataSource
public String getNonJtaDataSource()(Code)
Accessor for the persistence unit non-JTA data source. non-JTA data source for the persistence unit



getProperties
public Properties getProperties()(Code)
Accessor for the properties for this persistence unit. The properties



getProvider
public String getProvider()(Code)
Accessor for the persistence unit provider. Provider for the persistence unit



getTransactionType
public TransactionType getTransactionType()(Code)
Accessor for the persistence unit transaction type Transaction type for the persistence unit



setDescription
public void setDescription(String desc)(Code)
Mutator for the unit description
Parameters:
  desc - The description



setExcludeUnlistedClasses
public void setExcludeUnlistedClasses()(Code)
Method to exclude unlisted classes



setJtaDataSource
public void setJtaDataSource(String data)(Code)
Mutator for the unit JTA data source
Parameters:
  data - The JTA data source



setNonJtaDataSource
public void setNonJtaDataSource(String data)(Code)
Mutator for the unit non-JTA data source
Parameters:
  data - The non-JTA data source



setProvider
public void setProvider(String provider)(Code)
Mutator for the unit provider
Parameters:
  provider - The provider



toString
public String toString(String prefix, String indent)(Code)
Returns a string representation of the object using a prefix This can be used as part of a facility to output a MetaData file.
Parameters:
  prefix - prefix string
Parameters:
  indent - indent string a string representation of the object.



Fields inherited from org.jpox.metadata.MetaData
final public static String JPOX_VENDOR_NAME(Code)(Java Doc)
protected static Localiser LOCALISER(Code)(Java Doc)
final public static int METADATA_CREATED_STATE(Code)(Java Doc)
final public static int METADATA_INITIALISED_STATE(Code)(Java Doc)
final public static int METADATA_POPULATED_STATE(Code)(Java Doc)
final public static int METADATA_USED_STATE(Code)(Java Doc)
protected Collection extensions(Code)(Java Doc)
protected int metaDataState(Code)(Java Doc)
protected MetaData parent(Code)(Java Doc)

Methods inherited from org.jpox.metadata.MetaData
public void addExtension(String vendor, String key, String value)(Code)(Java Doc)
public void addExtension(String key, String value)(Code)(Java Doc)
public ExtensionMetaData[] getExtensions()(Code)(Java Doc)
public int getNoOfExtensions()(Code)(Java Doc)
public MetaData getParent()(Code)(Java Doc)
public String getValueForExtension(String key)(Code)(Java Doc)
public String[] getValuesForExtension(String key)(Code)(Java Doc)
public boolean hasExtension(String key)(Code)(Java Doc)
public void initialise()(Code)(Java Doc)
public boolean isInitialised()(Code)(Java Doc)
public boolean isPopulated()(Code)(Java Doc)
public boolean isUsed()(Code)(Java Doc)
public void populate()(Code)(Java Doc)
public void removeExtension(String key)(Code)(Java Doc)
public void setInitialised()(Code)(Java Doc)
public void setParent(MetaData md)(Code)(Java Doc)
public void setPopulated()(Code)(Java Doc)
public void setUsed()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(String prefix, String indent)(Code)(Java Doc)

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.