Class PostgresCallMetaDataProvider
java.lang.Object
org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
org.springframework.jdbc.core.metadata.PostgresCallMetaDataProvider
- All Implemented Interfaces:
CallMetaDataProvider
Postgres-specific implementation for the
CallMetaDataProvider interface.
This class is intended for internal use by the Simple JDBC classes.- Since:
- 2.5
- Author:
- Thomas Risberg
-
Field Summary
Fields inherited from class org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyPassReturnParameter(String parameterName) Should we bypass the return parameter with the specified name.createDefaultOutParameter(String parameterName, CallParameterMetaData meta) Create a default out parameter based on the provided meta-data.intGet theTypestype for columns that return ResultSets as ref cursors if this feature is supported.booleanDoes this database support returning ResultSets as ref cursors to be retrieved withCallableStatement.getObject(int)for the specified column.booleanDoes this database support returning ResultSets that should be retrieved with the JDBC call:Statement.getResultSet()?metaDataSchemaNameToUse(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
catalogNameToUse, createDefaultInOutParameter, createDefaultInParameter, getCallParameterMetaData, getUserName, initializeWithMetaData, initializeWithProcedureColumnMetaData, isProcedureColumnMetaDataUsed, isStoresLowerCaseIdentifiers, isStoresUpperCaseIdentifiers, isSupportsCatalogsInProcedureCalls, isSupportsSchemasInProcedureCalls, metaDataCatalogNameToUse, parameterNameToUse, procedureNameToUse, schemaNameToUse, setStoresLowerCaseIdentifiers, setStoresUpperCaseIdentifiers, setSupportsCatalogsInProcedureCalls, setSupportsSchemasInProcedureCalls
-
Constructor Details
-
PostgresCallMetaDataProvider
- Throws:
SQLException
-
-
Method Details
-
isReturnResultSetSupported
public boolean isReturnResultSetSupported()Description copied from interface:CallMetaDataProviderDoes this database support returning ResultSets that should be retrieved with the JDBC call:Statement.getResultSet()?- Specified by:
isReturnResultSetSupportedin interfaceCallMetaDataProvider- Overrides:
isReturnResultSetSupportedin classGenericCallMetaDataProvider
-
isRefCursorSupported
public boolean isRefCursorSupported()Description copied from interface:CallMetaDataProviderDoes this database support returning ResultSets as ref cursors to be retrieved withCallableStatement.getObject(int)for the specified column.- Specified by:
isRefCursorSupportedin interfaceCallMetaDataProvider- Overrides:
isRefCursorSupportedin classGenericCallMetaDataProvider
-
getRefCursorSqlType
public int getRefCursorSqlType()Description copied from interface:CallMetaDataProviderGet theTypestype for columns that return ResultSets as ref cursors if this feature is supported.- Specified by:
getRefCursorSqlTypein interfaceCallMetaDataProvider- Overrides:
getRefCursorSqlTypein classGenericCallMetaDataProvider
-
metaDataSchemaNameToUse
Description copied from interface:CallMetaDataProviderProvide any modification of the schema name passed in to match the meta-data currently used. The returned value will be used for meta-data lookups. This could include altering the case used or providing a base schema if none is provided.- Specified by:
metaDataSchemaNameToUsein interfaceCallMetaDataProvider- Overrides:
metaDataSchemaNameToUsein classGenericCallMetaDataProvider
-
createDefaultOutParameter
Description copied from interface:CallMetaDataProviderCreate a default out parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.- Specified by:
createDefaultOutParameterin interfaceCallMetaDataProvider- Overrides:
createDefaultOutParameterin classGenericCallMetaDataProvider- Parameters:
parameterName- the name of the parametermeta- meta-data used for this call- Returns:
- the configured SqlOutParameter
-
byPassReturnParameter
Description copied from interface:CallMetaDataProviderShould 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.- Specified by:
byPassReturnParameterin interfaceCallMetaDataProvider- Overrides:
byPassReturnParameterin classGenericCallMetaDataProvider
-