Java Doc for PersistenceManagerFactoryImpl.java in  » Database-ORM » TJDO » com » triactive » 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 » TJDO » com.triactive.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.triactive.jdo.PersistenceManagerFactoryImpl

PersistenceManagerFactoryImpl
public class PersistenceManagerFactoryImpl implements PersistenceManagerFactory(Code)
A factory used to obtain javax.jdo.PersistenceManager instances.
author:
   Mike Martin
version:
   $Revision: 1.13 $

Inner Class :public interface PropertySetter

Field Summary
final public static  StringAUTO_CREATE_TABLES_PROPERTY
     The system property that selects the default value for the AutoCreateTables setting.
final public static  StringTRANSACTION_ISOLATION_PROPERTY
     The system property that selects the default value for the transaction isolation level.
final public static  StringVALIDATE_CONSTRAINTS_PROPERTY
     The system property that selects the default value for the ValidateConstraints setting.
final public static  StringVALIDATE_TABLES_PROPERTY
     The system property that selects the default value for the ValidateTables setting.

Constructor Summary
public  PersistenceManagerFactoryImpl()
     Constructs a new PersistenceManagerFactoryImpl.

Method Summary
public synchronized  voidclose()
    
public synchronized  booleanequals(Object obj)
    
public  booleangetAutoCreateTables()
     Get the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory.
public  StringgetConnectionDriverName()
     Get the driver name for the data store connection.
public  ObjectgetConnectionFactory()
     Get the data store connection factory.
public  ObjectgetConnectionFactory2()
     Get the second data store connection factory.
public  StringgetConnectionFactory2Name()
     Get the name for the second data store connection factory.
public  StringgetConnectionFactoryName()
     Get the name for the data store connection factory.
public  StringgetConnectionURL()
     Get the URL for the data store connection.
public  StringgetConnectionUserName()
     Get the user name for the data store connection.
public  booleangetIgnoreCache()
     Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory.
public  intgetMaxPool()
     Get the MaxPool setting for the PersistenceManager pool for this factory.
public  intgetMinPool()
     Get the MinPool setting for the PersistenceManager pool for this factory.
public  intgetMsWait()
     Get the MsWait setting for the PersistenceManager pool for this factory.
public  booleangetMultithreaded()
     Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory.
public synchronized  DataSourcegetNontransactionalDataSource()
     Returns the data source to be used for non-transactional access.
public  booleangetNontransactionalRead()
     Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
public  booleangetNontransactionalWrite()
     Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.
public  booleangetOptimistic()
     Get the default Optimistic setting for all PersistenceManager instances obtained from this factory.
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.
public static synchronized  PersistenceManagerFactorygetPersistenceManagerFactory(Properties props)
     Return a new PersistenceManagerFactoryImpl with options set according to the given Properties.
Parameters:
  props - The Properties to initialize the PersistenceManagerFactory with.
public  PropertiesgetProperties()
     Return non-configurable properties of this PersistenceManagerFactory. Properties with keys VendorName and VersionNumber are required.
public  booleangetRestoreValues()
     Get the default RestoreValues setting for all PersistenceManager instances obtained from this factory.
public  booleangetRetainValues()
     Get the default RetainValues setting for all PersistenceManager instances obtained from this factory.
public  intgetTransactionIsolation()
     Get the default transaction isolation level for all PersistenceManager instances obtained from this factory.
public synchronized  DataSourcegetTransactionalDataSource()
     Returns the data source to be used for transactional access.
public  booleangetValidateConstraints()
     Get the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory.
public  booleangetValidateTables()
     Get the default ValidateTables setting for all PersistenceManager instances obtained from this factory.
public synchronized  inthashCode()
    
synchronized  voidpmClosed(PersistenceManagerImpl pm)
    
public synchronized  voidsetAutoCreateTables(boolean flag)
     Set the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetConnectionDriverName(String driverName)
     Set the driver name for the data store connection.
public synchronized  voidsetConnectionFactory(Object connectionFactory)
     Set the data store connection factory.
public synchronized  voidsetConnectionFactory2(Object connectionFactory2)
     Set the second data store connection factory.
public synchronized  voidsetConnectionFactory2Name(String connectionFactory2Name)
     Set the name for the second data store connection factory.
public synchronized  voidsetConnectionFactoryName(String connectionFactoryName)
     Set the name for the data store connection factory.
public synchronized  voidsetConnectionPassword(String password)
     Set the password for the data store connection.
public synchronized  voidsetConnectionURL(String URL)
     Set the URL for the data store connection.
public synchronized  voidsetConnectionUserName(String userName)
     Set the user name for the data store connection.
public synchronized  voidsetIgnoreCache(boolean flag)
     Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetMaxPool(int maxPool)
     Set the MaxPool setting for the PersistenceManager pool for this factory.
public synchronized  voidsetMinPool(int minPool)
     Set the MinPool setting for the PersistenceManager pool for this factory.
public synchronized  voidsetMsWait(int msWait)
     Set the MsWait setting for the PersistenceManager pool for this factory.
public synchronized  voidsetMultithreaded(boolean flag)
     Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetNontransactionalRead(boolean flag)
     Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetNontransactionalWrite(boolean flag)
     Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetOptimistic(boolean flag)
     Set the default Optimistic setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetRestoreValues(boolean flag)
     Set the default RestoreValues setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetRetainValues(boolean flag)
     Set the default RetainValues setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetTransactionIsolation(int isolationLevel)
     Set the default transaction isolation level for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetValidateConstraints(boolean flag)
     Set the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory.
public synchronized  voidsetValidateTables(boolean flag)
     Set the default ValidateTables setting for all PersistenceManager instances obtained from this factory.
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
AUTO_CREATE_TABLES_PROPERTY
final public static String AUTO_CREATE_TABLES_PROPERTY(Code)
The system property that selects the default value for the AutoCreateTables setting. This is the string "com.triactive.jdo.autoCreateTables".



TRANSACTION_ISOLATION_PROPERTY
final public static String TRANSACTION_ISOLATION_PROPERTY(Code)
The system property that selects the default value for the transaction isolation level. This is the string "com.triactive.jdo.transactionIsolation".



VALIDATE_CONSTRAINTS_PROPERTY
final public static String VALIDATE_CONSTRAINTS_PROPERTY(Code)
The system property that selects the default value for the ValidateConstraints setting. This is the string "com.triactive.jdo.validateConstraints".



VALIDATE_TABLES_PROPERTY
final public static String VALIDATE_TABLES_PROPERTY(Code)
The system property that selects the default value for the ValidateTables setting. This is the string "com.triactive.jdo.validateTables".




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




Method Detail
close
public synchronized void close()(Code)



equals
public synchronized boolean equals(Object obj)(Code)



getAutoCreateTables
public boolean getAutoCreateTables()(Code)
Get the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory. the default AutoCreateTables setting.



getConnectionDriverName
public String getConnectionDriverName()(Code)
Get the driver name for the data store connection. the driver name for the data store connection.



getConnectionFactory
public Object getConnectionFactory()(Code)
Get the data store connection factory. the data store connection factory.



getConnectionFactory2
public Object getConnectionFactory2()(Code)
Get the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. the data store connection factory.



getConnectionFactory2Name
public String getConnectionFactory2Name()(Code)
Get the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. the name of the data store connection factory.



getConnectionFactoryName
public String getConnectionFactoryName()(Code)
Get the name for the data store connection factory. the name of the data store connection factory.



getConnectionURL
public String getConnectionURL()(Code)
Get the URL for the data store connection. the URL for the data store connection.



getConnectionUserName
public String getConnectionUserName()(Code)
Get the user name for the data store connection. the user name for the data store connection.



getIgnoreCache
public boolean getIgnoreCache()(Code)
Get the default IgnoreCache setting for all PersistenceManager instances obtained from this factory. the default IngoreCache setting.



getMaxPool
public int getMaxPool()(Code)
Get the MaxPool setting for the PersistenceManager pool for this factory. the MaxPool setting.



getMinPool
public int getMinPool()(Code)
Get the MinPool setting for the PersistenceManager pool for this factory. the MinPool setting.



getMsWait
public int getMsWait()(Code)
Get the MsWait setting for the PersistenceManager pool for this factory. the MsWait setting.



getMultithreaded
public boolean getMultithreaded()(Code)
Get the default Multithreaded setting for all PersistenceManager instances obtained from this factory. the default Multithreaded setting.



getNontransactionalDataSource
public synchronized DataSource getNontransactionalDataSource()(Code)
Returns the data source to be used for non-transactional access. The data source to be used for non-transactional access.



getNontransactionalRead
public boolean getNontransactionalRead()(Code)
Get the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory. the default NontransactionalRead setting.



getNontransactionalWrite
public boolean getNontransactionalWrite()(Code)
Get the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory. the default NontransactionalWrite setting.



getOptimistic
public boolean getOptimistic()(Code)
Get the default Optimistic setting for all PersistenceManager instances obtained from this factory. the default Optimistic setting.



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 and 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 a PersistenceManager instance with default options.




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



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 thisPersistenceManagerFactory.



getRestoreValues
public boolean getRestoreValues()(Code)
Get the default RestoreValues setting for all PersistenceManager instances obtained from this factory. the default RestoreValues setting.



getRetainValues
public boolean getRetainValues()(Code)
Get the default RetainValues setting for all PersistenceManager instances obtained from this factory. the default RetainValues setting.



getTransactionIsolation
public int getTransactionIsolation()(Code)
Get the default transaction isolation level for all PersistenceManager instances obtained from this factory. the default transaction isolation level.



getTransactionalDataSource
public synchronized DataSource getTransactionalDataSource()(Code)
Returns the data source to be used for transactional access. The data source to be used for transactional access.



getValidateConstraints
public boolean getValidateConstraints()(Code)
Get the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory. the default ValidateConstraints setting.



getValidateTables
public boolean getValidateTables()(Code)
Get the default ValidateTables setting for all PersistenceManager instances obtained from this factory. the default ValidateTables setting.



hashCode
public synchronized int hashCode()(Code)



pmClosed
synchronized void pmClosed(PersistenceManagerImpl pm)(Code)



setAutoCreateTables
public synchronized void setAutoCreateTables(boolean flag)(Code)
Set the default AutoCreateTables setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default AutoCreateTables setting.



setConnectionDriverName
public synchronized void setConnectionDriverName(String driverName)(Code)
Set the driver name for the data store connection.
Parameters:
  driverName - the driver name for the data store connection.



setConnectionFactory
public synchronized void setConnectionFactory(Object connectionFactory)(Code)
Set the data store connection factory. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification.
Parameters:
  connectionFactory - the data store connection factory.



setConnectionFactory2
public synchronized void setConnectionFactory2(Object connectionFactory2)(Code)
Set the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions. JDO implementations will support specific connection factories. The connection factory interfaces are not part of the JDO specification.
Parameters:
  connectionFactory2 - the data store connection factory.



setConnectionFactory2Name
public synchronized void setConnectionFactory2Name(String connectionFactory2Name)(Code)
Set the name for the second data store connection factory. This is needed for managed environments to get nontransactional connections for optimistic transactions.
Parameters:
  connectionFactory2Name - the name of the data store connection factory.



setConnectionFactoryName
public synchronized void setConnectionFactoryName(String connectionFactoryName)(Code)
Set the name for the data store connection factory.
Parameters:
  connectionFactoryName - the name of the data store connection factory.



setConnectionPassword
public synchronized void setConnectionPassword(String password)(Code)
Set the password for the data store connection.
Parameters:
  password - the password for the data store connection.



setConnectionURL
public synchronized void setConnectionURL(String URL)(Code)
Set the URL for the data store connection.
Parameters:
  URL - the URL for the data store connection.



setConnectionUserName
public synchronized void setConnectionUserName(String userName)(Code)
Set the user name for the data store connection.
Parameters:
  userName - the user name for the data store connection.



setIgnoreCache
public synchronized void setIgnoreCache(boolean flag)(Code)
Set the default IgnoreCache setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default IgnoreCache setting.



setMaxPool
public synchronized void setMaxPool(int maxPool)(Code)
Set the MaxPool setting for the PersistenceManager pool for this factory.
Parameters:
  maxPool - the MaxPool setting.



setMinPool
public synchronized void setMinPool(int minPool)(Code)
Set the MinPool setting for the PersistenceManager pool for this factory.
Parameters:
  minPool - the MinPool setting.



setMsWait
public synchronized void setMsWait(int msWait)(Code)
Set the MsWait setting for the PersistenceManager pool for this factory.
Parameters:
  msWait - the MsWait setting.



setMultithreaded
public synchronized void setMultithreaded(boolean flag)(Code)
Set the default Multithreaded setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default Multithreaded setting.



setNontransactionalRead
public synchronized void setNontransactionalRead(boolean flag)(Code)
Set the default NontransactionalRead setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default NontransactionalRead setting.



setNontransactionalWrite
public synchronized void setNontransactionalWrite(boolean flag)(Code)
Set the default NontransactionalWrite setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default NontransactionalWrite setting.



setOptimistic
public synchronized void setOptimistic(boolean flag)(Code)
Set the default Optimistic setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default Optimistic setting.



setRestoreValues
public synchronized void setRestoreValues(boolean flag)(Code)
Set the default RestoreValues setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default RestoreValues setting.



setRetainValues
public synchronized void setRetainValues(boolean flag)(Code)
Set the default RetainValues setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default RetainValues setting.



setTransactionIsolation
public synchronized void setTransactionIsolation(int isolationLevel)(Code)
Set the default transaction isolation level for all PersistenceManager instances obtained from this factory.
Parameters:
  isolationLevel - the default transaction isolation level.



setValidateConstraints
public synchronized void setValidateConstraints(boolean flag)(Code)
Set the default ValidateConstraints setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default ValidateConstraints setting.



setValidateTables
public synchronized void setValidateTables(boolean flag)(Code)
Set the default ValidateTables setting for all PersistenceManager instances obtained from this factory.
Parameters:
  flag - the default ValidateTables setting.



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.

Each supported JDO optional feature is represented by a String with one of the following values:

javax.jdo.option.TransientTransactional javax.jdo.option.NontransactionalRead javax.jdo.option.NontransactionalWrite javax.jdo.option.RetainValues javax.jdo.option.Optimistic javax.jdo.option.ApplicationIdentity javax.jdo.option.DatastoreIdentity javax.jdo.option.NonDatastoreIdentity javax.jdo.option.ArrayList javax.jdo.option.HashMap javax.jdo.option.Hashtable javax.jdo.option.LinkedList javax.jdo.option.TreeMap javax.jdo.option.TreeSet javax.jdo.option.Vector javax.jdo.option.Map javax.jdo.option.List javax.jdo.option.Array javax.jdo.option.NullCollection
The standard JDO query language is represented by a String:
javax.jdo.query.JDOQL
A Collection of String representing the supported options.



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.