ConnectionProvider
| Modifier and Type | Field and Description |
|---|---|
| private DataSource | |
| private static final Logger | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. |
| public void | closeConnection(Connection
a JDBC connection conn)Implements org. |
| public void | configure(Properties
SessionFactory properties props)Implements org. |
| public Connection | getConnection()
Implements org. |
| public DataSource | |
| public void | |
| public boolean | supportsAggressiveRelease()
Implements org. |
| ds | back to summary |
|---|---|
| private DataSource ds | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| pass | back to summary |
|---|---|
| private String pass | |
| user | back to summary |
|---|---|
| private String user | |
| DatasourceConnectionProvider | back to summary |
|---|---|
| public DatasourceConnectionProvider() | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Release all resources held by this provider. JavaDoc requires a second sentence. | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection(Connection conn) throws SQLException Implements org. Doc from org. Dispose of a used connection.
| |
| configure | back to summary |
|---|---|
| public void configure(Properties props) throws HibernateException Implements org. Doc from org. Initialize the connection provider from given properties.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements org. Doc from org. Grab a connection, with the autocommit mode specified by hibernate.connection.autocommit.
| |
| getDataSource | back to summary |
|---|---|
| public DataSource getDataSource() | |
| setDataSource | back to summary |
|---|---|
| public void setDataSource(DataSource ds) | |
| supportsAggressiveRelease | back to summary |
|---|---|
| public boolean supportsAggressiveRelease() Implements org. Doc from org. Does this connection provider support aggressive release of JDBC connections and re-acquistion of those connections (if need be) later?
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. | |