Java Doc for AbstractPersistenceManagerFactory.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.ObjectManagerFactoryImpl
   org.jpox.jdo.AbstractPersistenceManagerFactory

All known Subclasses:   org.jpox.jdo.JDOPersistenceManagerFactory,
AbstractPersistenceManagerFactory
abstract public class AbstractPersistenceManagerFactory extends ObjectManagerFactoryImpl (Code)
Factory used to obtain javax.jdo.PersistenceManager instances. The factory is configurable up to a point when it is frozen. Thereafter nothing can be changed.
version:
   $Revision: 1.1 $


Field Summary
protected  ListlifecycleListeners
    

Constructor Summary
public  AbstractPersistenceManagerFactory()
     Constructor.

Method Summary
public  voidaddInstanceLifecycleListener(InstanceLifecycleListener listener, Class[] classes)
     Method to add lifecycle listeners for particular classes.
public  voidaddSequenceForFactoryClass(String factoryClassName, Sequence sequence)
     Method to register a sequence for a particular factory class.
protected  voidassertIsOpen()
     Asserts that the PMF is open.
public synchronized  voidclose()
     Close this PersistenceManagerFactory.
protected  voidfreezeConfiguration()
     Freezes the current configuration.
public  DataStoreCachegetDataStoreCache()
    
public  ListgetLifecycleListenerSpecifications()
    
protected  SetgetPmCache()
    
public  PropertiesgetProperties()
     Return non-configurable properties of this PersistenceManagerFactory. Properties with keys VendorName and VersionNumber are required.
public  SequencegetSequenceForFactoryClass(String factoryClassName)
     Accessor for the sequence for a factory class.
public  voidreleasePersistenceManager(AbstractPersistenceManager om)
    
public  voidremoveInstanceLifecycleListener(InstanceLifecycleListener listener)
     Method to remove a lifecycle listener.
public  CollectionsupportedOptions()
     The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation.

Field Detail
lifecycleListeners
protected List lifecycleListeners(Code)
Lifecycle Listeners




Constructor Detail
AbstractPersistenceManagerFactory
public AbstractPersistenceManagerFactory()(Code)
Constructor.




Method Detail
addInstanceLifecycleListener
public void addInstanceLifecycleListener(InstanceLifecycleListener listener, Class[] classes)(Code)
Method to add lifecycle listeners for particular classes. Adds the listener to all PMs already created.
Parameters:
  listener - The listener
Parameters:
  classes - The classes that the listener relates to
since:
   1.1



addSequenceForFactoryClass
public void addSequenceForFactoryClass(String factoryClassName, Sequence sequence)(Code)
Method to register a sequence for a particular factory class.
Parameters:
  factoryClassName - Name of the factory class
Parameters:
  sequence - The sequence



assertIsOpen
protected void assertIsOpen()(Code)
Asserts that the PMF is open.
throws:
  JDOUserException - if it is already closed



close
public synchronized void close()(Code)
Close this PersistenceManagerFactory. Check for JDOPermission("closePersistenceManagerFactory") and if not authorized, throw SecurityException.

If the authorization check succeeds, check to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active transactions. If any PersistenceManager instances have an active transaction, throw a JDOUserException, with one nested JDOUserException for each PersistenceManager with an active Transaction.

If there are no active transactions, then close all PersistenceManager instances obtained from this PersistenceManagerFactory, mark this PersistenceManagerFactory as closed, disallow getPersistenceManager methods, and allow all other get methods. If a set method or getPersistenceManager method is called after close, then JDOUserException is thrown.
See Also:   javax.jdo.PersistenceManagerFactory.close




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



getDataStoreCache
public DataStoreCache getDataStoreCache()(Code)
Accessor for the DataStore (level 2) Cache The datastore cache
since:
   1.1



getLifecycleListenerSpecifications
public List getLifecycleListenerSpecifications()(Code)
Returns either null or a List with instances ofLifecycleListenerSpecification.



getPmCache
protected Set getPmCache()(Code)
Return the Set of PersistenceManagers actually in cache Set this contains instances of PersistenceManagers in the cache



getProperties
public Properties getProperties()(Code)
Return non-configurable properties of this PersistenceManagerFactory. Properties with keys VendorName and VersionNumber are required. Other keys are optional. the non-configurable properties of this PersistenceManagerFactory.



getSequenceForFactoryClass
public Sequence getSequenceForFactoryClass(String factoryClassName)(Code)
Accessor for the sequence for a factory class.
Parameters:
  factoryClassName - The name of the factory class The sequence



releasePersistenceManager
public void releasePersistenceManager(AbstractPersistenceManager om)(Code)
Remove a PersistenceManager from the cache Only the PersistenceManager is allowed to call this method
Parameters:
  om - the PersistenceManager to be removed from cache



removeInstanceLifecycleListener
public void removeInstanceLifecycleListener(InstanceLifecycleListener listener)(Code)
Method to remove a lifecycle listener. Removes the listener from all PM's as well.
Parameters:
  listener - The Listener
since:
   1.1



supportedOptions
public Collection supportedOptions()(Code)
The application can determine from the results of this method which optional features, and which query languages are supported by the JDO implementation. Se esection 11.6 of the JDO 2 specification. A Collection of String representing the supported options.



Fields inherited from org.jpox.ObjectManagerFactoryImpl
protected Level2Cache cache(Code)(Java Doc)
protected OMFContext omfContext(Code)(Java Doc)

Methods inherited from org.jpox.ObjectManagerFactoryImpl
public void addFetchGroup(FetchGroup group)(Code)(Java Doc)
protected void assertIsOpen()(Code)(Java Doc)
public void clearFetchGroups()(Code)(Java Doc)
public synchronized void close()(Code)(Java Doc)
public FetchGroup createFetchGroup(String name, Class cls)(Code)(Java Doc)
public FetchGroup getFetchGroup(String name, Class cls)(Code)(Java Doc)
public FetchGroup[] getFetchGroups(String name)(Code)(Java Doc)
public Level2Cache getLevel2Cache()(Code)(Java Doc)
public OMFContext getOMFContext()(Code)(Java Doc)
public PersistenceConfiguration getPersistenceConfiguration()(Code)(Java Doc)
public static String getVendorName()(Code)(Java Doc)
public static String getVersionNumber()(Code)(Java Doc)
protected void initialiseLevel2Cache()(Code)(Java Doc)
protected void initialiseOMFContext()(Code)(Java Doc)
protected void initialiseStoreManager(ClassLoaderResolver clr)(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
protected void logConfiguration()(Code)(Java Doc)
public void removeFetchGroup(String name, Class cls)(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.