private static class TempTableDataSourceProvider.DataSourceImpl.Context extends java.lang.Object implements CacheExpiryListener<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement>
| Modifier and Type | Field and Description |
|---|---|
private java.sql.Connection |
physicalConn
Physical JDBC connection
|
private java.sql.Connection |
proxyConn
Proxied JDBC connection which overrides close behavior
|
private ExpiryCache<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement> |
psCache
Prepared statement cache which closes statements as they expire from the cache
|
| Modifier | Constructor and Description |
|---|---|
private |
Context() |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheExpired(CacheExpiryEvent<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement> event)
Manage prepared statements which expire from the cache, by closing them.
|
private java.sql.Connection physicalConn
private java.sql.Connection proxyConn
private ExpiryCache<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement> psCache
public void cacheExpired(CacheExpiryEvent<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement> event)
cacheExpired in interface CacheExpiryListener<TempTableDataSourceProvider.PSKey,UnclosablePreparedStatement>event - Event which contains the prepared statement(s) which have expired from the cache.