Retrieves a JDBC connection.
Retrieves a JDBC connection.
data source name
when true
, sets this connection to auto-commit
a JDBC connection
(Since version 2.5.0) Inject DBApi into your component
Retrieves a JDBC connection (autocommit is set to true).
Retrieves a JDBC connection (autocommit is set to true).
data source name
a JDBC connection
(Since version 2.5.0) Inject DBApi into your component
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.
(Since version 2.5.0) Inject DBApi into your component
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.
when true
, sets this connection to auto-commit
Code block to execute.
(Since version 2.5.0) Inject DBApi into your component
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.
(Since version 2.5.0) Inject DBApi into your component
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.
(Since version 2.5.0) Inject DBApi into your component
Provides a high-level API for getting JDBC connections.
For example: