ConnectionProvider
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private Properties | |
| private Integer | |
| private static final Logger | |
| private final ArrayList | |
| private int | |
| 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. |
| protected void | finalize()
Overrides java. |
| public Connection | getConnection()
Implements org. |
| public boolean | supportsAggressiveRelease()
Implements org. |
| autocommit | back to summary |
|---|---|
| private boolean autocommit | |
| checkedOut | back to summary |
|---|---|
| private int checkedOut | |
| connectionProps | back to summary |
|---|---|
| private Properties connectionProps | |
| isolation | back to summary |
|---|---|
| private Integer isolation | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| pool | back to summary |
|---|---|
| private final ArrayList<E> pool | |
| poolSize | back to summary |
|---|---|
| private int poolSize | |
| url | back to summary |
|---|---|
| private String url | |
| DriverManagerConnectionProvider | back to summary |
|---|---|
| public DriverManagerConnectionProvider() | |
| 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.
| |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| 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.
| |
| 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. | |