接口 DataSourceFactory
public interface DataSourceFactory
DataSourceFactoryencapsulates the creation of a particularDataSourceimplementation such as aSimpleDriverDataSourceor a connection pool such as Apache DBCP or C3P0.Call
getConnectionProperties()to configure normalizedDataSourceproperties before callinggetDataSource()to actually get the configuredDataSourceinstance.- 从以下版本开始:
- 3.0
- 作者:
- Keith Donald, Sam Brannen
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ConnectionPropertiesgetConnectionProperties()Get the connection properties of theDataSourceto be configured.DataSourcegetDataSource()Get theDataSourcewith the connection properties applied.
方法详细资料
getConnectionProperties
ConnectionProperties getConnectionProperties()
Get the connection properties of theDataSourceto be configured.
getDataSource
DataSource getDataSource()
Get theDataSourcewith the connection properties applied.