Retrieves a JDBC connection.
Retrieves a JDBC connection.
data source name
when true
, sets this connection to auto-commit
a JDBC connection
error if the required data source is not registered
Retrieves a JDBC connection (autocommit is set to true).
Retrieves a JDBC connection (autocommit is set to true).
data source name
a JDBC connection
error if the required data source is not registered
Execute a block of code, providing a JDBC connection.
Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.
Code block to execute.
Execute a block of code, providing a JDBC connection.
Execute a block of code, providing a JDBC connection. The connection is automatically released.
The datasource name.
Code block to execute.
Execute a block of code, in the scope of a JDBC transaction.
Execute a block of code, in the scope of a JDBC transaction. The connection and all created statements are automatically released. The transaction is automatically committed, unless an exception occurs.
Code block to execute.
Execute a block of code, in the scope of a JDBC transaction.
Execute a block of code, in the scope of a JDBC transaction. The connection and all created statements are automatically released. The transaction is automatically committed, unless an exception occurs.
The datasource name.
Code block to execute.
Provides a high-level API for getting JDBC connections.
For example: