public interface ConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
void |
close(CallableStatement call)
null-safe close CallableStatement. |
void |
close(ConnectionAdapter conn)
null-safe close connection. |
void |
close(PreparedStatement stmt)
null-safe close PreparedStatement. |
void |
close(ResultSet rs)
null-safe close ResultSet. |
void |
close(Statement stmt)
null-safe close Statement. |
String |
getContextName()
Name from repository context
|
Transactional |
getTransactionManager()
Create new Transaction Manager for JDBC transactions
|
ConnectionAdapter |
open()
Attempts to establish a connection to the database
|
ConnectionAdapter |
open(Isolation isolation)
Attempts to establish a connection to the database with specific isolation
|
ConnectionFactory |
with(HandleableException handlerException) |
ConnectionAdapter open()
RepositoryException - if cannot establish a connectionConnectionFactory with(HandleableException handlerException)
ConnectionAdapter open(Isolation isolation)
isolation - isolation level from transactionRepositoryException - if cannot establish a connectionTransactional getTransactionManager()
String getContextName()
void close(ConnectionAdapter conn)
null-safe close connection.
Throws SQLException is logged as warning.conn - connection to closevoid close(PreparedStatement stmt)
null-safe close PreparedStatement.
Throws SQLException is logged as warning.stmt - statement to closevoid close(Statement stmt)
null-safe close Statement.
Throws SQLException is logged as warning.stmt - statement to closevoid close(ResultSet rs)
null-safe close ResultSet.
Throws SQLException is logged as warning.rs - ResultSet to closevoid close(CallableStatement call)
null-safe close CallableStatement.
Throws SQLException is logged as warning.call - CallableStatement to closeCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.