public interface PooledDataSource
extends DataSource
| Modifier and Type | Field and Description |
|---|---|
static ClassDef |
DEFAULT_IMPL
Default pooled data source implementation.
|
static String |
IMPL_PROPERTY
Pooled data source implementation property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionProperty(String name,
String value)
Adds a custom property.
|
void |
close()
Close and release all connections that are currently stored in the
connection pool associated with our data source.
|
void |
setDefaultAutoCommit(Boolean defaultAutoCommit)
Sets the default auto-commit state.
|
void |
setDriverClassName(String driverClassName)
Sets the driver class name.
|
void |
setPassword(String password)
Sets the password.
|
void |
setUrl(String url)
Sets the data source URL.
|
void |
setUsername(String username)
Sets the username.
|
static final ClassDef DEFAULT_IMPL
static final String IMPL_PROPERTY
void addConnectionProperty(@Nonnull
String name,
@Nonnull
String value)
name - The name of the property.value - The value of the property.void close()
throws SQLException
SQLException - If a database error occursvoid setDefaultAutoCommit(@Nonnull
Boolean defaultAutoCommit)
defaultAutoCommit - The default auto-commit state.void setDriverClassName(@Nonnull
String driverClassName)
driverClassName - The driver class name.void setPassword(@Nonnull
String password)
password - The password.void setUrl(@Nonnull
String url)
url - The data source URL.void setUsername(@Nonnull
String username)
username - The username.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.