Removed deprecated helper classes and methods (that have been deprecated since 3.0 or before)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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.
|
||||
@@ -37,16 +37,4 @@ public class CannotGetJdbcConnectionException extends DataAccessResourceFailureE
|
||||
super(msg, ex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor for CannotGetJdbcConnectionException.
|
||||
* @param msg the detail message
|
||||
* @param ex ClassNotFoundException root cause
|
||||
* @deprecated since Spring 2.5, in favor of throwing an
|
||||
* IllegalStateException in case of the driver not being found
|
||||
*/
|
||||
@Deprecated
|
||||
public CannotGetJdbcConnectionException(String msg, ClassNotFoundException ex) {
|
||||
super(msg, ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -226,15 +226,6 @@ public abstract class AbstractJdbcCall {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a {@link org.springframework.jdbc.core.RowMapper} for the specified parameter or column.
|
||||
* @deprecated in favor of {@link #addDeclaredRowMapper(String, org.springframework.jdbc.core.RowMapper)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void addDeclaredRowMapper(String parameterName, ParameterizedRowMapper rowMapper) {
|
||||
addDeclaredRowMapper(parameterName, (RowMapper) rowMapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the call string that should be used based on parameters and meta data.
|
||||
*/
|
||||
|
||||
@@ -125,15 +125,6 @@ public class SimpleJdbcCall extends AbstractJdbcCall implements SimpleJdbcCallOp
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated in favor of {@link #returningResultSet(String, org.springframework.jdbc.core.RowMapper)}
|
||||
*/
|
||||
@Deprecated
|
||||
public SimpleJdbcCall returningResultSet(String parameterName, ParameterizedRowMapper rowMapper) {
|
||||
addDeclaredRowMapper(parameterName, rowMapper);
|
||||
return this;
|
||||
}
|
||||
|
||||
public SimpleJdbcCall withoutProcedureColumnMetaDataAccess() {
|
||||
setAccessCallParameterMetaData(false);
|
||||
return this;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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.
|
||||
@@ -94,17 +94,6 @@ public interface SimpleJdbcCallOperations {
|
||||
* */
|
||||
SimpleJdbcCallOperations returningResultSet(String parameterName, RowMapper rowMapper);
|
||||
|
||||
/**
|
||||
* Used to specify when a ResultSet is returned by the stored procedure and you want it mapped
|
||||
* by a RowMapper. The results will be returned using the parameter name specified. Multiple
|
||||
* ResultSets must be declared in the correct order. If the database you are using uses ref cursors
|
||||
* then the name specified must match the name of the parameter declared for the procedure in the
|
||||
* database.
|
||||
* @deprecated in favor of {@link #returningResultSet(String, org.springframework.jdbc.core.RowMapper)}
|
||||
*/
|
||||
@Deprecated
|
||||
SimpleJdbcCallOperations returningResultSet(String parameterName, ParameterizedRowMapper rowMapper);
|
||||
|
||||
/**
|
||||
* Turn off any processing of parameter meta data information obtained via JDBC.
|
||||
* @return the instance of this SimpleJdbcCall
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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.
|
||||
@@ -107,26 +107,6 @@ public class DriverManagerDataSource extends AbstractDriverBasedDataSource {
|
||||
setConnectionProperties(conProps);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new DriverManagerDataSource with the given standard
|
||||
* DriverManager parameters.
|
||||
* @param driverClassName the JDBC driver class name
|
||||
* @param url the JDBC URL to use for accessing the DriverManager
|
||||
* @param username the JDBC username to use for accessing the DriverManager
|
||||
* @param password the JDBC password to use for accessing the DriverManager
|
||||
* @deprecated since Spring 2.5. DriverManagerDataSource is primarily
|
||||
* intended for accessing <i>pre-registered</i> JDBC drivers.
|
||||
* If you need to register a new driver, consider using
|
||||
* {@link SimpleDriverDataSource} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public DriverManagerDataSource(String driverClassName, String url, String username, String password) {
|
||||
setDriverClassName(driverClassName);
|
||||
setUrl(url);
|
||||
setUsername(username);
|
||||
setPassword(password);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the JDBC driver class name. This driver will get initialized
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 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.
|
||||
@@ -80,28 +80,6 @@ public class SingleConnectionDataSource extends DriverManagerDataSource
|
||||
public SingleConnectionDataSource() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new SingleConnectionDataSource with the given standard
|
||||
* DriverManager parameters.
|
||||
* @param driverClassName the JDBC driver class name
|
||||
* @param url the JDBC URL to use for accessing the DriverManager
|
||||
* @param username the JDBC username to use for accessing the DriverManager
|
||||
* @param password the JDBC password to use for accessing the DriverManager
|
||||
* @param suppressClose if the returned Connection should be a
|
||||
* close-suppressing proxy or the physical Connection
|
||||
* @deprecated since Spring 2.5. Driver parameter usage is generally not recommended
|
||||
* for a SingleConnectionDataSource. If you insist on using driver parameters
|
||||
* directly, set up the Driver class manually before invoking this DataSource.
|
||||
* @see java.sql.DriverManager#getConnection(String, String, String)
|
||||
*/
|
||||
@Deprecated
|
||||
public SingleConnectionDataSource(
|
||||
String driverClassName, String url, String username, String password, boolean suppressClose) {
|
||||
|
||||
super(driverClassName, url, username, password);
|
||||
this.suppressClose = suppressClose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new SingleConnectionDataSource with the given standard
|
||||
* DriverManager parameters.
|
||||
|
||||
Reference in New Issue
Block a user