Consistent formatting of license headers, package javadocs, and import declarations

This commit is contained in:
Juergen Hoeller
2014-10-21 00:30:42 +02:00
parent b6fdcffc94
commit 8325b10080
2059 changed files with 3944 additions and 5473 deletions

View File

@@ -18,6 +18,8 @@ package org.springframework.jdbc.config;
import java.util.List;
import org.w3c.dom.Element;
import org.springframework.beans.BeanMetadataElement;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.TypedStringValue;
@@ -27,7 +29,6 @@ import org.springframework.jdbc.datasource.init.CompositeDatabasePopulator;
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
import org.springframework.util.StringUtils;
import org.springframework.util.xml.DomUtils;
import org.w3c.dom.Element;
/**
* @author Juergen Hoeller

View File

@@ -1,6 +1,4 @@
/**
* Defines the Spring JDBC configuration namespace.
*/
package org.springframework.jdbc.config;

View File

@@ -16,9 +16,9 @@
package org.springframework.jdbc.core;
import java.util.List;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
/**
* Generic utility methods for working with JDBC batch statements. Mainly for internal use

View File

@@ -16,12 +16,12 @@
package org.springframework.jdbc.core;
import org.springframework.jdbc.support.JdbcUtils;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import org.springframework.jdbc.support.JdbcUtils;
/**
* Implementation of RowCallbackHandler. Convenient superclass for callback handlers.
* An instance can only be used once.

View File

@@ -20,7 +20,6 @@ import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;

View File

@@ -16,14 +16,14 @@
package org.springframework.jdbc.core.metadata;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.ColumnMapRowMapper;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.sql.Types;
import org.springframework.jdbc.core.ColumnMapRowMapper;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.SqlParameter;
/**
* Oracle specific implementation for the {@link org.springframework.jdbc.core.metadata.CallMetaDataProvider} interface.
* This class is intended for internal use by the Simple JDBC classes.

View File

@@ -1,8 +1,4 @@
/**
*
* Context metadata abstraction for the configuration and execution of a stored procedure call.
*
*/
package org.springframework.jdbc.core.metadata;

View File

@@ -19,9 +19,9 @@ package org.springframework.jdbc.core.namedparam;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
import org.springframework.jdbc.core.BatchUpdateUtils;
import org.springframework.jdbc.core.JdbcOperations;
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
/**
* Generic utility methods for working with JDBC batch statements using named parameters. Mainly for internal use

View File

@@ -18,6 +18,7 @@ package org.springframework.jdbc.core.namedparam;
import java.util.HashMap;
import java.util.Map;
import org.springframework.jdbc.core.SqlParameterValue;
/**

View File

@@ -1,5 +1,4 @@
/**
*
* JdbcTemplate variant with named parameter support.
*
* <p>NamedParameterJdbcTemplate is a wrapper around JdbcTemplate that adds
@@ -10,7 +9,5 @@
* <P>If you need the full power of Spring JDBC for less common operations, use
* the {@code getJdbcOperations()} method of NamedParameterJdbcTemplate and
* work with the returned classic template, or use a JdbcTemplate instance directly.
*
*/
package org.springframework.jdbc.core.namedparam;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides the core JDBC framework, based on JdbcTemplate
* and its associated callback interfaces and helper objects.
*
*/
package org.springframework.jdbc.core;

View File

@@ -18,7 +18,6 @@ package org.springframework.jdbc.core.simple;
import java.util.Arrays;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.jdbc.core.JdbcTemplate;

View File

@@ -1,16 +1,8 @@
/**
*
* Simplification layer over JdbcTemplate for Java 5 and above.
*
* <p>{@code SimpleJdbcInsert} and {@code SimpleJdbcCall} are classes that takes advantage
* of database metadata provided by the JDBC driver to simplify the application code. Much of the
* parameter specification becomes unnecessary since it can be looked up in the metadata.
*
* Note: The {@code SimpleJdbcOperations} and {@code SimpleJdbcTemplate}, which provides a wrapper
* around JdbcTemplate to take advantage of Java 5 features like generics, varargs and autoboxing, is now deprecated
* since Spring 3.1. All functionality is now available in the {@code JdbcOperations} and
* {@code NamedParametersOperations} respectively.
*
*/
package org.springframework.jdbc.core.simple;

View File

@@ -19,7 +19,6 @@ package org.springframework.jdbc.core.support;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;

View File

@@ -17,7 +17,6 @@
package org.springframework.jdbc.core.support;
import java.sql.Connection;
import javax.sql.DataSource;
import org.springframework.dao.support.DaoSupport;

View File

@@ -1,8 +1,5 @@
/**
*
* Classes supporting the {@code org.springframework.jdbc.core} package.
* Contains a DAO base class for JdbcTemplate usage.
*
*/
package org.springframework.jdbc.core.support;

View File

@@ -17,7 +17,6 @@
package org.springframework.jdbc.datasource;
import java.sql.Connection;
import javax.sql.DataSource;
/**

View File

@@ -17,7 +17,6 @@
package org.springframework.jdbc.datasource.embedded;
import java.sql.Driver;
import javax.sql.DataSource;
import org.springframework.jdbc.datasource.SimpleDriverDataSource;

View File

@@ -1,8 +1,4 @@
/**
*
* Provides extensible support for creating embedded database instances.
*
*/
package org.springframework.jdbc.datasource.embedded;

View File

@@ -18,7 +18,6 @@ package org.springframework.jdbc.datasource.init;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

View File

@@ -17,7 +17,6 @@
package org.springframework.jdbc.datasource.init;
import java.sql.Connection;
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;

View File

@@ -20,7 +20,6 @@ import java.sql.Connection;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.core.io.Resource;

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

View File

@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -26,6 +26,7 @@ import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.EncodedResource;
import org.springframework.util.Assert;

View File

@@ -1,6 +1,4 @@
/**
* Provides extensible support for initializing databases through scripts.
*/
package org.springframework.jdbc.datasource.init;

View File

@@ -1,8 +1,4 @@
/**
*
* Provides a strategy for looking up JDBC DataSources by name.
*
*/
package org.springframework.jdbc.datasource.lookup;

View File

@@ -1,10 +1,6 @@
/**
*
* Provides a utility class for easy DataSource access,
* a PlatformTransactionManager for a single DataSource,
* and various simple DataSource implementations.
*
*/
package org.springframework.jdbc.datasource;

View File

@@ -18,9 +18,9 @@ package org.springframework.jdbc.object;
import java.util.Map;
import org.springframework.dao.InvalidDataAccessResourceUsageException;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.util.Assert;
import org.springframework.dao.InvalidDataAccessResourceUsageException;
public class GenericSqlQuery<T> extends SqlQuery<T> {

View File

@@ -18,7 +18,6 @@ package org.springframework.jdbc.object;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;

View File

@@ -19,7 +19,6 @@ package org.springframework.jdbc.object;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.jdbc.core.RowMapper;

View File

@@ -1,5 +1,4 @@
/**
*
* The classes in this package represent RDBMS queries, updates,
* and stored procedures as threadsafe, reusable objects. This approach
* is modelled by JDO, although of course objects returned by queries
@@ -14,7 +13,5 @@
* <p>This package and related packages are discussed in Chapter 9 of
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
*
*/
package org.springframework.jdbc.object;

View File

@@ -1,6 +1,4 @@
/**
*
* The classes in this package make JDBC easier to use and
* reduce the likelihood of common errors. In particular, they:
* <ul>
@@ -18,7 +16,5 @@
* <p>This package and related packages are discussed in Chapter 9 of
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
*
*/
package org.springframework.jdbc;

View File

@@ -19,7 +19,6 @@ package org.springframework.jdbc.support;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import javax.sql.DataSource;
import org.apache.commons.logging.Log;

View File

@@ -20,7 +20,6 @@ import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;

View File

@@ -20,7 +20,6 @@ import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.sql.DataSource;
import org.springframework.dao.DataAccessException;

View File

@@ -1,11 +1,7 @@
/**
*
* Provides a support framework for incrementing database table values
* via sequences, with implementations for various databases.
*
* <p>Can be used independently, for example in custom JDBC access code.
*
*/
package org.springframework.jdbc.support.incrementer;

View File

@@ -1,12 +1,8 @@
/**
*
* Provides a stategy interface for Large OBject handling,
* with implementations for various databases.
*
* <p>Can be used independently from jdbc.core and jdbc.object,
* for example in custom JDBC access code.
*
*/
package org.springframework.jdbc.support.lob;

View File

@@ -1,11 +1,7 @@
/**
*
* Provides a mechanism for extracting native implementations of JDBC
* interfaces from wrapper objects that got returned from connection pools.
*
* <p>Can be used independently, for example in custom JDBC access code.
*
*/
package org.springframework.jdbc.support.nativejdbc;

View File

@@ -1,13 +1,9 @@
/**
*
* Support classes for the JDBC framework, used by the classes in the
* jdbc.core and jdbc.object packages. Provides a translator from
* SQLExceptions Spring's generic DataAccessExceptions.
*
* <p>Can be used independently, for example in custom JDBC access code,
* or in JDBC-based O/R mapping layers.
*
*/
package org.springframework.jdbc.support;

View File

@@ -1,9 +1,5 @@
/**
*
* Provides a convenient holder for disconnected result sets.
* Supported by JdbcTemplate, but can be used independently too.
*
*/
package org.springframework.jdbc.support.rowset;

View File

@@ -20,7 +20,6 @@ import java.io.InputStream;
import java.io.Reader;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.xml.transform.Result;
import javax.xml.transform.Source;

View File

@@ -16,8 +16,8 @@
package org.springframework.jdbc.support.xml;
import java.io.OutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* Interface defining handling involved with providing {@code OutputStream}

View File

@@ -16,8 +16,8 @@
package org.springframework.jdbc.support.xml;
import java.io.Writer;
import java.io.IOException;
import java.io.Writer;
/**
* Interface defining handling involved with providing {@code Writer}

View File

@@ -1,8 +1,4 @@
/**
*
* Abstraction for handling fields of SQLXML data type.
*
*/
package org.springframework.jdbc.support.xml;