Spring Framework

org.springframework.jdbc.core.metadata
Class Db2CallMetaDataProvider

java.lang.Object
  extended by org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
      extended by org.springframework.jdbc.core.metadata.Db2CallMetaDataProvider
All Implemented Interfaces:
CallMetaDataProvider

public class Db2CallMetaDataProvider
extends GenericCallMetaDataProvider

DB2 specific implementation for the CallMetaDataProvider interface. This class is intended for internal use by the Simple JDBC classes.

Since:
2.5
Author:
Thomas Risberg, Juergen Hoeller

Field Summary
 
Fields inherited from class org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
logger
 
Constructor Summary
Db2CallMetaDataProvider(java.sql.DatabaseMetaData databaseMetaData)
           
 
Method Summary
 void initializeWithMetaData(java.sql.DatabaseMetaData databaseMetaData)
          Initialize using the provided DatabaseMetData.
 java.lang.String metaDataSchemaNameToUse(java.lang.String schemaName)
          Provide any modification of the schema name passed in to match the meta data currently used.
 
Methods inherited from class org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
byPassReturnParameter, catalogNameToUse, createDefaultInOutParameter, createDefaultInParameter, createDefaultOutParameter, getCallParameterMetaData, getRefCursorSqlType, getUserName, initializeWithProcedureColumnMetaData, isProcedureColumnMetaDataUsed, isRefCursorSupported, isReturnResultSetSupported, isStoresLowerCaseIdentifiers, isStoresUpperCaseIdentifiers, isSupportsCatalogsInProcedureCalls, isSupportsSchemasInProcedureCalls, metaDataCatalogNameToUse, parameterNameToUse, procedureNameToUse, schemaNameToUse, setStoresLowerCaseIdentifiers, setStoresUpperCaseIdentifiers, setSupportsCatalogsInProcedureCalls, setSupportsSchemasInProcedureCalls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Db2CallMetaDataProvider

public Db2CallMetaDataProvider(java.sql.DatabaseMetaData databaseMetaData)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

initializeWithMetaData

public void initializeWithMetaData(java.sql.DatabaseMetaData databaseMetaData)
                            throws java.sql.SQLException
Description copied from interface: CallMetaDataProvider
Initialize using the provided DatabaseMetData.

Specified by:
initializeWithMetaData in interface CallMetaDataProvider
Overrides:
initializeWithMetaData in class GenericCallMetaDataProvider
Parameters:
databaseMetaData - used to retrieve database specific information
Throws:
java.sql.SQLException - in case of initialization failure

metaDataSchemaNameToUse

public java.lang.String metaDataSchemaNameToUse(java.lang.String schemaName)
Description copied from interface: CallMetaDataProvider
Provide any modification of the schema name passed in to match the meta data currently used. The reyurned value will be used for meta data lookups. This could include alterig the case used or providing a base schema if mone provided.

Specified by:
metaDataSchemaNameToUse in interface CallMetaDataProvider
Overrides:
metaDataSchemaNameToUse in class GenericCallMetaDataProvider

Spring Framework