public interface CallMetaDataProvider
This is intended for internal use by Spring's
SimpleJdbcCall
.
Modifier and Type | Method and Description |
---|---|
boolean |
byPassReturnParameter(String parameterName)
Should we bypass the return parameter with the specified name.
|
String |
catalogNameToUse(String catalogName)
Provide any modification of the catalog name passed in to match the meta data currently used.
|
SqlParameter |
createDefaultInOutParameter(String parameterName,
CallParameterMetaData meta)
Create a default inout parameter based on the provided meta data.
|
SqlParameter |
createDefaultInParameter(String parameterName,
CallParameterMetaData meta)
Create a default in parameter based on the provided meta data.
|
SqlParameter |
createDefaultOutParameter(String parameterName,
CallParameterMetaData meta)
Create a default out parameter based on the provided meta data.
|
List<CallParameterMetaData> |
getCallParameterMetaData()
Get the call parameter metadata that is currently used.
|
int |
getRefCursorSqlType()
Get the
Types type for columns that return ResultSets as ref cursors
if this feature is supported. |
String |
getUserName()
Get the name of the current user.
|
void |
initializeWithMetaData(DatabaseMetaData databaseMetaData)
Initialize using the provided DatabaseMetData.
|
void |
initializeWithProcedureColumnMetaData(DatabaseMetaData databaseMetaData,
String catalogName,
String schemaName,
String procedureName)
Initialize the database specific management of procedure column meta data.
|
boolean |
isProcedureColumnMetaDataUsed()
Are we using the meta data for the procedure columns?
|
boolean |
isRefCursorSupported()
Does this database support returning ResultSets as ref cursors to be retrieved with
CallableStatement.getObject(int) for the specified column. |
boolean |
isReturnResultSetSupported()
Does this database support returning ResultSets that should be retrieved with the JDBC call.
|
boolean |
isSupportsCatalogsInProcedureCalls()
Does the database support the use of catalog name in procedure calls
|
boolean |
isSupportsSchemasInProcedureCalls()
Does the database support the use of schema name in procedure calls
|
String |
metaDataCatalogNameToUse(String catalogName)
Provide any modification of the catalog name passed in to match the meta data currently used.
|
String |
metaDataSchemaNameToUse(String schemaName)
Provide any modification of the schema name passed in to match the meta data currently used.
|
String |
parameterNameToUse(String parameterName)
Provide any modification of the column name passed in to match the meta data currently used.
|
String |
procedureNameToUse(String procedureName)
Provide any modification of the procedure name passed in to match the meta data currently used.
|
String |
schemaNameToUse(String schemaName)
Provide any modification of the schema name passed in to match the meta data currently used.
|
void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException
databaseMetaData
- used to retrieve database specific informationSQLException
- in case of initialization failurevoid initializeWithProcedureColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String procedureName) throws SQLException
databaseMetaData
- used to retrieve database specific informationcatalogName
- name of catalog to use or nullschemaName
- name of schema name to use or nullprocedureName
- name of the stored procedureSQLException
- in case of initialization failureSimpleJdbcCall.withoutProcedureColumnMetaDataAccess()
String procedureNameToUse(String procedureName)
String catalogNameToUse(String catalogName)
String schemaNameToUse(String schemaName)
String metaDataCatalogNameToUse(String catalogName)
String metaDataSchemaNameToUse(String schemaName)
String parameterNameToUse(String parameterName)
parameterName
- name of the parameter of columnSqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta)
parameterName
- the name of the parametermeta
- meta data used for this callSqlParameter createDefaultInOutParameter(String parameterName, CallParameterMetaData meta)
parameterName
- the name of the parametermeta
- meta data used for this callSqlParameter createDefaultInParameter(String parameterName, CallParameterMetaData meta)
parameterName
- the name of the parametermeta
- meta data used for this callString getUserName()
boolean isReturnResultSetSupported()
Statement.getResultSet()
boolean isRefCursorSupported()
CallableStatement.getObject(int)
for the specified column.int getRefCursorSqlType()
Types
type for columns that return ResultSets as ref cursors
if this feature is supported.boolean isProcedureColumnMetaDataUsed()
boolean byPassReturnParameter(String parameterName)
List<CallParameterMetaData> getCallParameterMetaData()
CallParameterMetaData
boolean isSupportsCatalogsInProcedureCalls()
boolean isSupportsSchemasInProcedureCalls()