1
1
/*
2
- * Copyright 2002-2010 the original author or authors.
2
+ * Copyright 2002-2012 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -134,8 +134,8 @@ public class JdbcTemplate extends JdbcAccessor implements JdbcOperations {
134
134
/**
135
135
* If this variable is set to true then all results from a stored procedure call
136
136
* that don't have a corresponding SqlOutParameter declaration will be bypassed.
137
- * All other results processng will be take place unless the variable
138
- * <code>skipResultsProcessing</code> is set to <code>true</code>
137
+ * All other results processing will be take place unless the variable
138
+ * <code>skipResultsProcessing</code> is set to <code>true</code>.
139
139
*/
140
140
private boolean skipUndeclaredResults = false ;
141
141
@@ -274,9 +274,9 @@ public int getQueryTimeout() {
274
274
}
275
275
276
276
/**
277
- * Set whether results processing should be skipped. Can be used to optimize callable
277
+ * Set whether results processing should be skipped. Can be used to optimize callable
278
278
* statement processing when we know that no results are being passed back - the processing
279
- * of out parameter will still take place. This can be used to avoid a bug in some older
279
+ * of out parameter will still take place. This can be used to avoid a bug in some older
280
280
* Oracle JDBC drivers like 10.1.0.2.
281
281
*/
282
282
public void setSkipResultsProcessing (boolean skipResultsProcessing ) {
@@ -291,7 +291,7 @@ public boolean isSkipResultsProcessing() {
291
291
}
292
292
293
293
/**
294
- * Set whether undelared results should be skipped.
294
+ * Set whether undeclared results should be skipped.
295
295
*/
296
296
public void setSkipUndeclaredResults (boolean skipUndeclaredResults ) {
297
297
this .skipUndeclaredResults = skipUndeclaredResults ;
@@ -1083,9 +1083,10 @@ public Map<String, Object> doInCallableStatement(CallableStatement cs) throws SQ
1083
1083
* Extract returned ResultSets from the completed stored procedure.
1084
1084
* @param cs JDBC wrapper for the stored procedure
1085
1085
* @param updateCountParameters Parameter list of declared update count parameters for the stored procedure
1086
- * @param resultSetParameters Parameter list of declared resturn resultSet parameters for the stored procedure
1086
+ * @param resultSetParameters Parameter list of declared resultSet parameters for the stored procedure
1087
1087
* @return Map that contains returned results
1088
1088
*/
1089
+ @ SuppressWarnings ("rawtypes" )
1089
1090
protected Map <String , Object > extractReturnedResults (
1090
1091
CallableStatement cs , List updateCountParameters , List resultSetParameters , int updateCount )
1091
1092
throws SQLException {
@@ -1189,7 +1190,7 @@ protected Map<String, Object> extractOutputParameters(CallableStatement cs, List
1189
1190
* @param param the corresponding stored procedure parameter
1190
1191
* @return Map that contains returned results
1191
1192
*/
1192
- @ SuppressWarnings ("unchecked" )
1193
+ @ SuppressWarnings ({ "unchecked" , "rawtypes" } )
1193
1194
protected Map <String , Object > processResultSet (ResultSet rs , ResultSetSupportingSqlParameter param ) throws SQLException {
1194
1195
if (rs == null ) {
1195
1196
return Collections .emptyMap ();
@@ -1286,7 +1287,7 @@ protected void applyStatementSettings(Statement stmt) throws SQLException {
1286
1287
/**
1287
1288
* Create a new ArgPreparedStatementSetter using the args passed in. This method allows the
1288
1289
* creation to be overridden by sub-classes.
1289
- * @param args object array woth arguments
1290
+ * @param args object array with arguments
1290
1291
* @return the new PreparedStatementSetter
1291
1292
*/
1292
1293
protected PreparedStatementSetter newArgPreparedStatementSetter (Object [] args ) {
@@ -1296,7 +1297,7 @@ protected PreparedStatementSetter newArgPreparedStatementSetter(Object[] args) {
1296
1297
/**
1297
1298
* Create a new ArgTypePreparedStatementSetter using the args and argTypes passed in.
1298
1299
* This method allows the creation to be overridden by sub-classes.
1299
- * @param args object array woth arguments
1300
+ * @param args object array with arguments
1300
1301
* @param argTypes int array of SQLTypes for arguments
1301
1302
* @return the new PreparedStatementSetter
1302
1303
*/
@@ -1368,6 +1369,7 @@ public CloseSuppressingInvocationHandler(Connection target) {
1368
1369
this .target = target ;
1369
1370
}
1370
1371
1372
+ @ SuppressWarnings ("rawtypes" )
1371
1373
public Object invoke (Object proxy , Method method , Object [] args ) throws Throwable {
1372
1374
// Invocation on ConnectionProxy interface coming in...
1373
1375
0 commit comments