fixed rertieval of generated keys for HSQLDB 1.9 and fixed some typos (SPR-6266)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2220 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Thomas Risberg 2009-10-28 19:40:32 +00:00
parent f3e4d94a57
commit becf15008c
3 changed files with 9 additions and 8 deletions

View File

@ -43,7 +43,7 @@ public interface CallMetaDataProvider {
* Initialize the database specific management of procedure column meta data.
* This is only called for databases that are supported. This initalization
* can be turned off by specifying that column meta data should not be used.
* @param databaseMetaData used to retreive database specific information
* @param databaseMetaData used to retrieve database specific information
* @param catalogName name of catalog to use or null
* @param schemaName name of schema name to use or null
* @param procedureName name of the stored procedure
@ -127,13 +127,13 @@ public interface CallMetaDataProvider {
String getUserName();
/**
* Does this database support returning resultsets that should be retreived with the JDBC call
* Does this database support returning resultsets that should be retrieved with the JDBC call
* {@link java.sql.Statement#getResultSet()}
*/
boolean isReturnResultSetSupported();
/**
* Does this database support returning resultsets as ref cursors to be retreived with
* Does this database support returning resultsets as ref cursors to be retrieved with
* {@link java.sql.CallableStatement#getObject(int)} for the specified column.
*/
boolean isRefCursorSupported();

View File

@ -63,8 +63,9 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider {
/** indicates whether the use of a String[] for generated keys is supported */
private boolean generatedKeysColumnNameArraySupported = true;
/** database product we know that don't support the use of a String[] for generated keys */
private List productsNotSupportingGeneratedKeysColumnNameArray = Arrays.asList(new String[] {"Apache Derby"});
/** database products we know not supporting the use of a String[] for generated keys */
private List productsNotSupportingGeneratedKeysColumnNameArray =
Arrays.asList(new String[] {"Apache Derby", "HSQL Database Engine"});
/** Collection of TableParameterMetaData objects */
private List<TableParameterMetaData> insertParameterMetaData = new ArrayList<TableParameterMetaData>();

View File

@ -39,7 +39,7 @@ public interface TableMetaDataProvider {
/**
* Initialize using provided database metadata, table and column information. This initalization can be
* turned off by specifying that column meta data should not be used.
* @param databaseMetaData used to retreive database specific information
* @param databaseMetaData used to retrieve database specific information
* @param catalogName name of catalog to use or null
* @param schemaName name of schema name to use or null
* @param tableName name of the table
@ -104,14 +104,14 @@ public interface TableMetaDataProvider {
boolean isGetGeneratedKeysSupported();
/**
* Does this database support a simple quey to retreive the generated key whe the JDBC 3.0 feature
* Does this database support a simple quey to retrieve the generated key whe the JDBC 3.0 feature
* of retreiving generated keys is not supported
* {@link java.sql.DatabaseMetaData#supportsGetGeneratedKeys()}
*/
boolean isGetGeneratedKeysSimulated();
/**
* Get the simple query to retreive a generated key
* Get the simple query to retrieve a generated key
*/
String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName);