org.datanucleus.store.rdbms.datasource
Class AbstractDataSourceFactory
java.lang.Object
org.datanucleus.store.rdbms.datasource.AbstractDataSourceFactory
- Direct Known Subclasses:
- BoneCPDataSourceFactory, C3P0DataSourceFactory, DBCPBuiltinDataSourceFactory, DBCPDataSourceFactory, ProxoolDataSourceFactory
public abstract class AbstractDataSourceFactory
- extends Object
Abstract superclass for data source factory.
|
Method Summary |
static Properties |
getPropertiesForDriver(org.datanucleus.store.StoreManager storeMgr)
Convenience method to return the properties to pass to the driver. |
protected void |
loadDriver(String dbDriver,
org.datanucleus.ClassLoaderResolver clr)
Convenience method to load the driver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDataSourceFactory
public AbstractDataSourceFactory()
loadDriver
protected void loadDriver(String dbDriver,
org.datanucleus.ClassLoaderResolver clr)
- Convenience method to load the driver.
- Parameters:
dbDriver - Datastore driverclr - Class loader resolver
getPropertiesForDriver
public static Properties getPropertiesForDriver(org.datanucleus.store.StoreManager storeMgr)
- Convenience method to return the properties to pass to the driver.
Includes as a minimum "user" and "password", but a user may define a persistence property with name
"datanucleus.connectionPool.driverProps" then is a comma separated name-value pair that are
treated as properties
- Parameters:
storeMgr - StoreManager
- Returns:
- The properties for the driver
Copyright © 2012. All Rights Reserved.