public class

PostgresCallMetaDataProvider

extends GenericCallMetaDataProvider
java.lang.Object
   ↳ org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
     ↳ org.springframework.jdbc.core.metadata.PostgresCallMetaDataProvider

Class Overview

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

Summary

[Expand]
Inherited Fields
From class org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
Public Constructors
PostgresCallMetaDataProvider(DatabaseMetaData databaseMetaData)
Public Methods
boolean byPassReturnParameter(String parameterName)
Should we bypass the return parameter with the specified name.
SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta)
Create a default out parameter based on the provided meta data.
int getRefCursorSqlType()
Get the java.sql.Types type for columns that return resultsets as ref cursors if this feature is supported.
boolean isRefCursorSupported()
Does this database support returning resultsets as ref cursors to be retrieved with getObject(int) for the specified column.
boolean isReturnResultSetSupported()
Does this database support returning resultsets that should be retrieved with the JDBC call getResultSet()
String metaDataSchemaNameToUse(String schemaName)
Provide any modification of the schema name passed in to match the meta data currently used.
[Expand]
Inherited Methods
From class org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider
From class java.lang.Object
From interface org.springframework.jdbc.core.metadata.CallMetaDataProvider

Public Constructors

public PostgresCallMetaDataProvider (DatabaseMetaData databaseMetaData)

Throws
SQLException

Public Methods

public boolean byPassReturnParameter (String parameterName)

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.

public SqlParameter createDefaultOutParameter (String parameterName, CallParameterMetaData meta)

Create a default out parameter based on the provided meta data. This is used when no explicit parameter declaration has been made.

Parameters
parameterName the name of the parameter
meta meta data used for this call
Returns
  • the configured SqlOutParameter

public int getRefCursorSqlType ()

Get the java.sql.Types type for columns that return resultsets as ref cursors if this feature is supported.

public boolean isRefCursorSupported ()

Does this database support returning resultsets as ref cursors to be retrieved with getObject(int) for the specified column.

public boolean isReturnResultSetSupported ()

Does this database support returning resultsets that should be retrieved with the JDBC call getResultSet()

public String metaDataSchemaNameToUse (String schemaName)

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.