org.jdbcpersistence
Class JDBCPersistenceFactory

java.lang.Object
  extended by org.jdbcpersistence.JDBCPersistenceFactory

public final class JDBCPersistenceFactory
extends java.lang.Object

This class is used for obtaining instances of JDBCPersistence.

 Example:
 
    JDBCPersistence jdbcPersistence = JDBCPersistenceFactory.getInstance().newJdbcPersistence();
 
 
Once an instance of JDBCPersistence is obtained by an application it is to be held on to by the application for the rest of application's lifecycle.

Author:
Alex Rojkov Date: 21-Jul-2005 Time: 10:36:03 PM
See Also:
JDBCPersistence

Constructor Summary
JDBCPersistenceFactory()
           
 
Method Summary
static JDBCPersistenceFactory getInstance()
          Returns a singleton instance of JDBCPersistenceFactory
 JDBCPersistence newJdbcPersistence()
          Returns a new, not configured, instance of JDBCPersistence
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCPersistenceFactory

public JDBCPersistenceFactory()
Method Detail

getInstance

public static JDBCPersistenceFactory getInstance()
Returns a singleton instance of JDBCPersistenceFactory

Returns:
JDBCPersistenceFactory object

newJdbcPersistence

public JDBCPersistence newJdbcPersistence()
Returns a new, not configured, instance of JDBCPersistence

Returns:
JDBCPersistenceobject
See Also:
JDBCPersistence.init(javax.sql.DataSource,java.util.Properties)