Java org.springframework.jdbc.datasource DataSourceUtils fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.jdbc.datasource DataSourceUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.jdbc.datasource DataSourceUtils.

The text is from its open source code.

Method

voidapplyTimeout(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.
voidapplyTransactionTimeout(Statement stmt, @Nullable DataSource dataSource)
Apply the current transaction timeout, if any, to the given JDBC Statement object.
ConnectiondoGetConnection(DataSource dataSource)
Actually obtain a JDBC Connection from the given DataSource.
voiddoReleaseConnection(@Nullable Connection con, @Nullable DataSource dataSource)
Actually close the given Connection, obtained from the given DataSource.
ConnectiongetConnection(DataSource dataSource)
Obtain a Connection from the given DataSource.
booleanisConnectionTransactional(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.
IntegerprepareConnectionForTransaction(Connection con, @Nullable TransactionDefinition definition)
Prepare the given Connection with the given transaction semantics.
voidreleaseConnection(@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).
voidresetConnectionAfterTransaction(Connection con, @Nullable Integer previousIsolationLevel)
Reset the given Connection after a transaction, regarding read-only flag and isolation level.