类的使用
org.springframework.jdbc.datasource.AbstractDataSource
使用AbstractDataSource的程序包 程序包 说明 org.springframework.jdbc.datasource Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.org.springframework.jdbc.datasource.lookup Provides a strategy for looking up JDBC DataSources by name.org.springframework.jdbc.datasource中AbstractDataSource的使用
org.springframework.jdbc.datasource中AbstractDataSource的子类 修饰符和类型 类 说明 class
AbstractDriverBasedDataSource
Abstract base class for JDBCDataSource
implementations that operate on a JDBCDriver
.class
DriverManagerDataSource
Simple implementation of the standard JDBCDataSource
interface, configuring the plain old JDBCDriverManager
via bean properties, and returning a newConnection
from everygetConnection
call.class
SimpleDriverDataSource
Simple implementation of the standard JDBCDataSource
interface, configuring a plain old JDBCDriver
via bean properties, and returning a newConnection
from everygetConnection
call.class
SingleConnectionDataSource
Implementation ofSmartDataSource
that wraps a single JDBC Connection which is not closed after use.org.springframework.jdbc.datasource.lookup中AbstractDataSource的使用
org.springframework.jdbc.datasource.lookup中AbstractDataSource的子类 修饰符和类型 类 说明 class
AbstractRoutingDataSource
AbstractDataSource
implementation that routesAbstractRoutingDataSource.getConnection()
calls to one of various target DataSources based on a lookup key.class
IsolationLevelDataSourceRouter
DataSource that routes to one of various target DataSources based on the current transaction isolation level.