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


org.jpox.jdo.AbstractPersistenceManagerFactory
   org.jpox.jdo.JDOPersistenceManagerFactory

All known Subclasses:   org.jpox.PersistenceManagerFactoryImpl,
JDOPersistenceManagerFactory
public class JDOPersistenceManagerFactory extends AbstractPersistenceManagerFactory implements PersistenceManagerFactory,ObjectFactory,Referenceable(Code)
Implementation of a JDO PersistenceManagerFactory, used to obtain javax.jdo.PersistenceManager instances.
version:
   $Revision: 1.1 $


Field Summary
final protected static  LocaliserLOCALISER
    

Constructor Summary
public  JDOPersistenceManagerFactory()
     Constructs a new PersistenceManagerFactoryImpl.

Method Summary
public static  JDOPersistenceManagerFactorycreateInstance()
     Convenience method to create a new PMF of this type.
public synchronized  booleanequals(Object obj)
     Equality operator.
protected  voidfreezeConfiguration()
     Freezes the current configuration.
public  ObjectgetObjectInstance(Object obj, Name name, Context ctx, Hashtable env)
     Create a PMF using the (JNDI) location or reference information specified.
public synchronized  PersistenceManagergetPersistenceManager()
     Get an instance of PersistenceManager from this factory.
public synchronized  PersistenceManagergetPersistenceManager(String userName, String password)
     Get an instance of PersistenceManager from this factory. The instance has default values for options.
public static synchronized  PersistenceManagerFactorygetPersistenceManagerFactory(Properties overridingProps)
     Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. This method exists for JDO1 compliance whereas in JDO2 the method takes a Map.
Parameters:
  overridingProps - The Properties to initialize the PersistenceManagerFactory with.
public static synchronized  PersistenceManagerFactorygetPersistenceManagerFactory(Map overridingProps)
     Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
Parameters:
  overridingProps - The Map of properties to initialize the PersistenceManagerFactory with.
public static synchronized  PersistenceManagerFactorygetPersistenceManagerFactory(Map overrides, Map props)
     Return a new PersistenceManagerFactoryImpl with options set according to the given properties and given overrides.
public  PersistenceManagergetPersistenceManagerProxy()
    
public  ReferencegetReference()
     Retrieves the (JNDI) reference of this PMF object.
protected static  voidprocessLifecycleListenersInProperties(JDOPersistenceManagerFactory pmf, Map props)
     Method to process any lifecycle listeners specified in the properties.
protected static  voidsetPMFOptions(JDOPersistenceManagerFactory pmf, Map overridingProps)
     Convenience method to set the API and properties that a PMF will use.

Field Detail
LOCALISER
final protected static Localiser LOCALISER(Code)
Localisation utility for output messages




Constructor Detail
JDOPersistenceManagerFactory
public JDOPersistenceManagerFactory()(Code)
Constructs a new PersistenceManagerFactoryImpl.




Method Detail
createInstance
public static JDOPersistenceManagerFactory createInstance()(Code)
Convenience method to create a new PMF of this type. TODO When we remove org.jpox.PersistenceManagerFactoryImpl remove this too. The PMF



equals
public synchronized boolean equals(Object obj)(Code)
Equality operator.
Parameters:
  obj - Object to compare against Whether the objects are the same.



freezeConfiguration
protected void freezeConfiguration()(Code)
Freezes the current configuration.
throws:
  JPOXException - if the configuration was invalid or inconsistent in some way



getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception(Code)
Create a PMF using the (JNDI) location or reference information specified.
Parameters:
  obj - The object
Parameters:
  name - Name of the object relative to the context
Parameters:
  ctx - The context
Parameters:
  env - properties used for creating the object The PMF instance
throws:
  Exception - If an error occurs generating the referenced object



getPersistenceManager
public synchronized PersistenceManager getPersistenceManager()(Code)
Get an instance of PersistenceManager from this factory. The instance has default values for options.

After the first use of getPersistenceManager, no "set" methods will succeed.

a PersistenceManager instance with default options.



getPersistenceManager
public synchronized PersistenceManager getPersistenceManager(String userName, String password)(Code)
Get an instance of PersistenceManager from this factory. The instance has default values for options. The parameters userid/password are used when obtaining datastore connections from the connection pool.

After the first use of getPersistenceManager, no "set" methods will succeed.


Parameters:
  userName - the user name for the connection
Parameters:
  password - the password for the connection PersistenceManager instance with default options.



getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Properties overridingProps)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties. This method exists for JDO1 compliance whereas in JDO2 the method takes a Map.
Parameters:
  overridingProps - The Properties to initialize the PersistenceManagerFactory with. A PersistenceManagerFactoryImpl with options set according to the given Properties.
See Also:   javax.jdo.JDOHelper.getPersistenceManagerFactory(java.util.Map)



getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Map overridingProps)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
Parameters:
  overridingProps - The Map of properties to initialize the PersistenceManagerFactory with. A PersistenceManagerFactoryImpl with options set according to the given Properties.
See Also:   javax.jdo.JDOHelper.getPersistenceManagerFactory(java.util.Map)



getPersistenceManagerFactory
public static synchronized PersistenceManagerFactory getPersistenceManagerFactory(Map overrides, Map props)(Code)
Return a new PersistenceManagerFactoryImpl with options set according to the given properties and given overrides.
Parameters:
  overrides - Map of properties to override the supplied props (if any)
Parameters:
  props - Map of properties to initialise the PMF with A PersistenceManagerFactoryImpl with options set according to the given Properties



getPersistenceManagerProxy
public PersistenceManager getPersistenceManagerProxy()(Code)
Accessor for the PersistenceManager proxy object The PMF proxy



getReference
public Reference getReference()(Code)
Retrieves the (JNDI) reference of this PMF object. The reference



processLifecycleListenersInProperties
protected static void processLifecycleListenersInProperties(JDOPersistenceManagerFactory pmf, Map props)(Code)
Method to process any lifecycle listeners specified in the properties.
Parameters:
  pmf - PMF being used
Parameters:
  props - The properties to process for lifecycle listener specifications



setPMFOptions
protected static void setPMFOptions(JDOPersistenceManagerFactory pmf, Map overridingProps)(Code)
Convenience method to set the API and properties that a PMF will use.
Parameters:
  pmf - The PMF to set the API/options for
Parameters:
  overridingProps - The overriding properties supplied by the user



Fields inherited from org.jpox.jdo.AbstractPersistenceManagerFactory
protected List lifecycleListeners(Code)(Java Doc)

Methods inherited from org.jpox.jdo.AbstractPersistenceManagerFactory
public void addInstanceLifecycleListener(InstanceLifecycleListener listener, Class[] classes)(Code)(Java Doc)
public void addSequenceForFactoryClass(String factoryClassName, Sequence sequence)(Code)(Java Doc)
protected void assertIsOpen()(Code)(Java Doc)
public synchronized void close()(Code)(Java Doc)
protected void freezeConfiguration()(Code)(Java Doc)
public DataStoreCache getDataStoreCache()(Code)(Java Doc)
public List getLifecycleListenerSpecifications()(Code)(Java Doc)
protected Set getPmCache()(Code)(Java Doc)
public Properties getProperties()(Code)(Java Doc)
public Sequence getSequenceForFactoryClass(String factoryClassName)(Code)(Java Doc)
public void releasePersistenceManager(AbstractPersistenceManager om)(Code)(Java Doc)
public void removeInstanceLifecycleListener(InstanceLifecycleListener listener)(Code)(Java Doc)
public Collection supportedOptions()(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.