Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,19 +43,16 @@ public interface ConnectionCallback<T> {
|
||||
* Gets called by {@code JdbcTemplate.execute} with an active JDBC
|
||||
* Connection. Does not need to care about activating or closing the
|
||||
* Connection, or handling transactions.
|
||||
*
|
||||
* <p>If called without a thread-bound JDBC transaction (initiated by
|
||||
* DataSourceTransactionManager), the code will simply get executed on the
|
||||
* JDBC connection with its transactional semantics. If JdbcTemplate is
|
||||
* configured to use a JTA-aware DataSource, the JDBC Connection and thus
|
||||
* the callback code will be transactional if a JTA transaction is active.
|
||||
*
|
||||
* <p>Allows for returning a result object created within the callback, i.e.
|
||||
* a domain object or a collection of domain objects. Note that there's special
|
||||
* support for single step actions: see {@code JdbcTemplate.queryForObject}
|
||||
* etc. A thrown RuntimeException is treated as application exception:
|
||||
* it gets propagated to the caller of the template.
|
||||
*
|
||||
* @param con active JDBC Connection
|
||||
* @return a result object, or {@code null} if none
|
||||
* @throws SQLException if thrown by a JDBC method, to be auto-converted
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,26 +47,22 @@ public interface PreparedStatementCallback<T> {
|
||||
* PreparedStatement. Does not need to care about closing the Statement
|
||||
* or the Connection, or about handling transactions: this will all be
|
||||
* handled by Spring's JdbcTemplate.
|
||||
*
|
||||
* <p><b>NOTE:</b> Any ResultSets opened should be closed in finally blocks
|
||||
* within the callback implementation. Spring will close the Statement
|
||||
* object after the callback returned, but this does not necessarily imply
|
||||
* that the ResultSet resources will be closed: the Statement objects might
|
||||
* get pooled by the connection pool, with {@code close} calls only
|
||||
* returning the object to the pool but not physically closing the resources.
|
||||
*
|
||||
* <p>If called without a thread-bound JDBC transaction (initiated by
|
||||
* DataSourceTransactionManager), the code will simply get executed on the
|
||||
* JDBC connection with its transactional semantics. If JdbcTemplate is
|
||||
* configured to use a JTA-aware DataSource, the JDBC connection and thus
|
||||
* the callback code will be transactional if a JTA transaction is active.
|
||||
*
|
||||
* <p>Allows for returning a result object created within the callback, i.e.
|
||||
* a domain object or a collection of domain objects. Note that there's
|
||||
* special support for single step actions: see JdbcTemplate.queryForObject etc.
|
||||
* A thrown RuntimeException is treated as application exception, it gets
|
||||
* propagated to the caller of the template.
|
||||
*
|
||||
* @param ps active JDBC PreparedStatement
|
||||
* @return a result object, or {@code null} if none
|
||||
* @throws SQLException if thrown by a JDBC method, to be auto-converted
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,26 +40,22 @@ public interface StatementCallback<T> {
|
||||
* Statement. Does not need to care about closing the Statement or the
|
||||
* Connection, or about handling transactions: this will all be handled
|
||||
* by Spring's JdbcTemplate.
|
||||
*
|
||||
* <p><b>NOTE:</b> Any ResultSets opened should be closed in finally blocks
|
||||
* within the callback implementation. Spring will close the Statement
|
||||
* object after the callback returned, but this does not necessarily imply
|
||||
* that the ResultSet resources will be closed: the Statement objects might
|
||||
* get pooled by the connection pool, with {@code close} calls only
|
||||
* returning the object to the pool but not physically closing the resources.
|
||||
*
|
||||
* <p>If called without a thread-bound JDBC transaction (initiated by
|
||||
* DataSourceTransactionManager), the code will simply get executed on the
|
||||
* JDBC connection with its transactional semantics. If JdbcTemplate is
|
||||
* configured to use a JTA-aware DataSource, the JDBC connection and thus
|
||||
* the callback code will be transactional if a JTA transaction is active.
|
||||
*
|
||||
* <p>Allows for returning a result object created within the callback, i.e.
|
||||
* a domain object or a collection of domain objects. Note that there's
|
||||
* special support for single step actions: see JdbcTemplate.queryForObject etc.
|
||||
* A thrown RuntimeException is treated as application exception, it gets
|
||||
* propagated to the caller of the template.
|
||||
*
|
||||
* @param stmt active JDBC Statement
|
||||
* @return a result object, or {@code null} if none
|
||||
* @throws SQLException if thrown by a JDBC method, to be auto-converted
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -613,7 +613,7 @@ public class OracleLobHandler extends AbstractLobHandler {
|
||||
/**
|
||||
* Internal callback interface for use with createLob.
|
||||
*/
|
||||
protected static interface LobCallback {
|
||||
protected interface LobCallback {
|
||||
|
||||
/**
|
||||
* Populate the given BLOB or CLOB instance with content.
|
||||
|
||||
Reference in New Issue
Block a user