com.googlecode.jdbw.util
Class OneSharedConnectionDataSource.Factory
java.lang.Object
com.googlecode.jdbw.util.OneSharedConnectionDataSource.Factory
- All Implemented Interfaces:
- DataSourceFactory
- Enclosing class:
- OneSharedConnectionDataSource
public static class OneSharedConnectionDataSource.Factory
- extends Object
- implements DataSourceFactory
|
Method Summary |
void |
close(DataSource previouslyConstructedDataSource)
Closes a DataSource previously created by newDataSource on this
object. |
DataSource |
newDataSource(String jdbcUrl,
Properties properties)
Creates a new DataSource using supplied connection configuration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneSharedConnectionDataSource.Factory
public OneSharedConnectionDataSource.Factory()
newDataSource
public DataSource newDataSource(String jdbcUrl,
Properties properties)
- Description copied from interface:
DataSourceFactory
- Creates a new
DataSource using supplied connection configuration
- Specified by:
newDataSource in interface DataSourceFactory
- Parameters:
jdbcUrl - JDBC url to connect toproperties - Extra connection properties (should contain username
and password, at least)
- Returns:
- DataSource implementation created from the supplied configuration
close
public void close(DataSource previouslyConstructedDataSource)
- Description copied from interface:
DataSourceFactory
- Closes a
DataSource previously created by newDataSource on this
object.
- Specified by:
close in interface DataSourceFactory
- Parameters:
previouslyConstructedDataSource - Data source to close
Copyright © 2012. All Rights Reserved.