org.jdbcpersistence
Class JDBCPersistenceFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCPersistenceFactory
public JDBCPersistenceFactory()
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)