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