Example usage for Java org.springframework.jdbc.datasource DataSourceUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
void | applyTimeout(Statement stmt, @Nullable DataSource dataSource, int timeout) Apply the specified timeout - overridden by the current transaction timeout, if any - to the given JDBC Statement object. |
void | applyTransactionTimeout(Statement stmt, @Nullable DataSource dataSource) Apply the current transaction timeout, if any, to the given JDBC Statement object. |
Connection | doGetConnection(DataSource dataSource) Actually obtain a JDBC Connection from the given DataSource. |
void | doReleaseConnection(@Nullable Connection con, @Nullable DataSource dataSource) Actually close the given Connection, obtained from the given DataSource. |
Connection | getConnection(DataSource dataSource) Obtain a Connection from the given DataSource. |
boolean | isConnectionTransactional(Connection con, @Nullable DataSource dataSource) Determine whether the given JDBC Connection is transactional, that is, bound to the current thread by Spring's transaction facilities. |
Integer | prepareConnectionForTransaction(Connection con, @Nullable TransactionDefinition definition) Prepare the given Connection with the given transaction semantics. |
void | releaseConnection(@Nullable Connection con, @Nullable DataSource dataSource) Close the given Connection, obtained from the given DataSource, if it is not managed externally (that is, not bound to the thread). |
void | resetConnectionAfterTransaction(Connection con, @Nullable Integer previousIsolationLevel) Reset the given Connection after a transaction, regarding read-only flag and isolation level. |