Skip to content

Commit b2b195e

Browse files
author
Thomas Risberg
committed
changed the access of the "reconcileColumnsToUse" and "reconcileParameters" methods to protected (SPR-7556)
1 parent 2c559aa commit b2b195e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public boolean isAccessCallParameterMetaData() {
219219
* Create a ReturnResultSetParameter/SqlOutParameter depending on the support provided
220220
* by the JDBC driver used for the database in use.
221221
* @param parameterName the name of the parameter (also used as the name of the List returned in the output)
222-
* @param rowMapper a RowMapper implementation used to map the data retuned in the result set
222+
* @param rowMapper a RowMapper implementation used to map the data returned in the result set
223223
* @return the appropriate SqlParameter
224224
*/
225225
public SqlParameter createReturnResultSetParameter(String parameterName, RowMapper rowMapper) {
@@ -268,7 +268,7 @@ public void initializeMetaData(DataSource dataSource) {
268268
}
269269

270270
/**
271-
* Process the list of parameters provided and if procedure column metedata is used the
271+
* Process the list of parameters provided and if procedure column metadata is used the
272272
* parameters will be matched against the metadata information and any missing ones will
273273
* be automatically included
274274
* @param parameters the list of parameters to use as a base
@@ -280,7 +280,7 @@ public void processParameters(List<SqlParameter> parameters) {
280280
/**
281281
* Reconcile the provided parameters with available metadata and add new ones where appropriate
282282
*/
283-
private List<SqlParameter> reconcileParameters(List<SqlParameter> parameters) {
283+
protected List<SqlParameter> reconcileParameters(List<SqlParameter> parameters) {
284284
final List<SqlParameter> declaredReturnParameters = new ArrayList<SqlParameter>();
285285
final Map<String, SqlParameter> declaredParameters = new LinkedHashMap<String, SqlParameter>();
286286
boolean returnDeclared = false;

org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataContext.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2010 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -135,7 +135,7 @@ public void setOverrideIncludeSynonymsDefault(boolean override) {
135135
}
136136

137137
/**
138-
* Are we overrding include synonyms default?
138+
* Are we overriding include synonyms default?
139139
*/
140140
public boolean isOverrideIncludeSynonymsDefault() {
141141
return this.overrideIncludeSynonymsDefault;
@@ -149,7 +149,7 @@ public List<String> getTableColumns() {
149149
}
150150

151151
/**
152-
* Does this database support the JDBC 3.0 feature of retreiving generated keys
152+
* Does this database support the JDBC 3.0 feature of retrieving generated keys
153153
* {@link java.sql.DatabaseMetaData#supportsGetGeneratedKeys()}?
154154
*/
155155
public boolean isGetGeneratedKeysSupported() {
@@ -175,7 +175,7 @@ public String getSimulationQueryForGetGeneratedKey(String tableName, String keyC
175175
}
176176

177177
/**
178-
* Is a column name String array for retreiving generated keys supported
178+
* Is a column name String array for retrieving generated keys supported
179179
* {@link java.sql.Connection#createStruct(String, Object[])}?
180180
*/
181181
public boolean isGeneratedKeysColumnNameArraySupported() {
@@ -186,7 +186,7 @@ public boolean isGeneratedKeysColumnNameArraySupported() {
186186
/**
187187
* Process the current meta data with the provided configuration options
188188
* @param dataSource the DataSource being used
189-
* @param declaredColumns any coluns that are declared
189+
* @param declaredColumns any columns that are declared
190190
* @param generatedKeyNames name of generated keys
191191
*/
192192
public void processMetaData(DataSource dataSource, List<String> declaredColumns, String[] generatedKeyNames) {
@@ -199,7 +199,7 @@ public void processMetaData(DataSource dataSource, List<String> declaredColumns,
199199
* @param declaredColumns declared column names
200200
* @param generatedKeyNames names of generated key columns
201201
*/
202-
private List<String> reconcileColumnsToUse(List<String> declaredColumns, String[] generatedKeyNames) {
202+
protected List<String> reconcileColumnsToUse(List<String> declaredColumns, String[] generatedKeyNames) {
203203
if (generatedKeyNames.length > 0) {
204204
generatedKeyColumnsUsed = true;
205205
}

0 commit comments

Comments
 (0)