class TempTableDataSourceProvider extends java.lang.Object implements DataSourceProvider
Implements prepared statement caching in a manner compatible with H2's prepared statement implementation.
Modifier and Type | Class and Description |
---|---|
private static class |
TempTableDataSourceProvider.DataSourceImpl
Implementation of the
DataSource interface, which maintains context-local data for each
private temp-table connection. |
private static class |
TempTableDataSourceProvider.PSKey
Prepared statement cache key.
|
Constructor and Description |
---|
TempTableDataSourceProvider() |
Modifier and Type | Method and Description |
---|---|
javax.sql.DataSource |
getDataSource(Database database)
Obtain the
DataSource for a specific Database , within the current context. |
public javax.sql.DataSource getDataSource(Database database)
DataSource
for a specific Database
, within the current context.getDataSource
in interface DataSourceProvider
database
- The FWD Database
that needs a connection to backing database.DataSource
for the specified Database
.