ConnectionProvider that manages connections from an underlying DataSource.
The DataSource to use may be specified by either:
setDataSource
DataSource instance using the hibernate.connection.datasource config property
DataSource is found via the hibernate.connection.datasource config property
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private DataSource | |
| private JndiService | |
| private String | |
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | closeConnection(Connection
The JDBC connection to release connection)Implements org. |
| public void | configure(Map<String, Object>
The configuration properties. configValues)Implements org. |
| public Connection | getConnection()
Implements org. |
| public DataSource | |
| public boolean | isUnwrappableAs(Class<?>
The type to check. unwrapType)Implements org. |
| public void | |
| public void | |
| public void | |
| public boolean | supportsAggressiveRelease()
Implements org. |
| public <T> T | unwrap(Class<T>
The java type as which to unwrap this instance. unwrapType)Implements org. |
| available | back to summary |
|---|---|
| private boolean available | |
| dataSource | back to summary |
|---|---|
| private DataSource dataSource | |
| jndiService | back to summary |
|---|---|
| private JndiService jndiService | |
| pass | back to summary |
|---|---|
| private String pass | |
| useCredentials | back to summary |
|---|---|
| private boolean useCredentials | |
| user | back to summary |
|---|---|
| private String user | |
| DatasourceConnectionProviderImpl | back to summary |
|---|---|
| public DatasourceConnectionProviderImpl() | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection(Connection connection) throws SQLException Implements org. Doc from org. Release a connection from Hibernate use.
| |
| configure | back to summary |
|---|---|
| public void configure(Map<String, Object> configValues) Implements org. Doc from org. Configure the service. | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements org. Doc from org. Obtains a connection for Hibernate use according to the underlying strategy of this provider.
| |
| getDataSource | back to summary |
|---|---|
| public DataSource getDataSource() | |
| isUnwrappableAs | back to summary |
|---|---|
| public boolean isUnwrappableAs(Class<?> unwrapType) Implements org. Doc from org. Can this wrapped service be unwrapped as the indicated type? | |
| setDataSource | back to summary |
|---|---|
| public void setDataSource(DataSource dataSource) | |
| setJndiService | back to summary |
|---|---|
public void setJndiService(JndiService jndiService)
| |
| stop | back to summary |
|---|---|
| public void stop() Implements org. Doc from org. Stop phase notification
| |
| supportsAggressiveRelease | back to summary |
|---|---|
| public boolean supportsAggressiveRelease() Implements org. Doc from org. Does this connection provider support aggressive release of JDBC connections and later re-acquisition of those connections if needed?
This is used in conjunction with Typically, this is only true in managed environments where a container tracks connections by transaction or thread. Note that JTA semantic depends on the fact that the underlying connection provider does support aggressive release.
| |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> unwrapType) Implements org. Doc from org. Unproxy the service proxy
| |