Top Description Fields Constructors Methods
org.springframework.jdbc.core.metadata

public Class SqlServerCallMetaDataProvider

extends GenericCallMetaDataProvider
Class Inheritance
Imports
java.sql.DatabaseMetaData, .SQLException, org.springframework.lang.Nullable

SQL Server specific implementation for the CallMetaDataProvider interface. This class is intended for internal use by the Simple JDBC classes.
Authors
Thomas Risberg, Juergen Hoeller
Since
2.5

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
Inherited from org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider:
logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
namedParameterBindingToUse(String
the name of the parameter to bind
parameterName
)

Overrides org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.namedParameterBindingToUse.

Implements org.springframework.jdbc.core.metadata.CallMetaDataProvider.namedParameterBindingToUse.

Return the name of the named parameter to use for binding the given parameter name.

public String
parameterNameToUse(String
name of the parameter of column
parameterName
)

Overrides org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.parameterNameToUse.

Implements org.springframework.jdbc.core.metadata.CallMetaDataProvider.parameterNameToUse.

Provide any modification of the column name passed in to match the meta-data currently used.

Inherited from org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider:
catalogNameToUsecreateDefaultInOutParametercreateDefaultInParametercreateDefaultOutParametergetCallParameterMetaDatagetRefCursorSqlTypegetUserNameinitializeWithMetaDatainitializeWithProcedureColumnMetaDataisProcedureColumnMetaDataUsedisRefCursorSupportedisReturnResultSetSupportedisStoresLowerCaseIdentifiersisStoresUpperCaseIdentifiersisSupportsCatalogsInProcedureCallsisSupportsSchemasInProcedureCallsmetaDataCatalogNameToUsemetaDataSchemaNameToUseprocedureNameToUseschemaNameToUsesetStoresLowerCaseIdentifierssetStoresUpperCaseIdentifierssetSupportsCatalogsInProcedureCallssetSupportsSchemasInProcedureCalls

Field Detail

REMOVABLE_COLUMN_PREFIXback to summary
private static final String REMOVABLE_COLUMN_PREFIX
RETURN_VALUE_NAMEback to summary
private static final String RETURN_VALUE_NAME

Constructor Detail

SqlServerCallMetaDataProviderback to summary
public SqlServerCallMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException

Method Detail

byPassReturnParameterback to summary
public boolean byPassReturnParameter(String parameterName)

Overrides org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.byPassReturnParameter.

Implements org.springframework.jdbc.core.metadata.CallMetaDataProvider.byPassReturnParameter.

Doc from org.springframework.jdbc.core.metadata.CallMetaDataProvider.byPassReturnParameter.

Should we bypass the return parameter with the specified name?

This allows the database specific implementation to skip the processing for specific results returned by the database call.

Annotations
@Override
namedParameterBindingToUseback to summary
public String namedParameterBindingToUse(String parameterName)

Overrides org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.namedParameterBindingToUse.

Implements org.springframework.jdbc.core.metadata.CallMetaDataProvider.namedParameterBindingToUse.

Doc from org.springframework.jdbc.core.metadata.CallMetaDataProvider.namedParameterBindingToUse.

Return the name of the named parameter to use for binding the given parameter name.

Parameters
parameterName:String

the name of the parameter to bind

Returns:String

the name of the named parameter to use for binding the given parameter name

Annotations
@Override
parameterNameToUseback to summary
public String parameterNameToUse(String parameterName)

Overrides org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.parameterNameToUse.

Implements org.springframework.jdbc.core.metadata.CallMetaDataProvider.parameterNameToUse.

Doc from org.springframework.jdbc.core.metadata.CallMetaDataProvider.parameterNameToUse.

Provide any modification of the column name passed in to match the meta-data currently used.

This could include altering the case.

Parameters
parameterName:String

name of the parameter of column

Annotations
@Override
@Nullable