接口 CallMetaDataProvider

    • 方法详细资料

      • initializeWithProcedureColumnMetaData

        void initializeWithProcedureColumnMetaData​(DatabaseMetaData databaseMetaData,
                                                   String catalogName,
                                                   String schemaName,
                                                   String procedureName)
                                            throws SQLException
        Initialize the database specific management of procedure column meta-data. This is only called for databases that are supported. This initialization can be turned off by specifying that column meta-data should not be used.
        参数:
        databaseMetaData - used to retrieve database specific information
        catalogName - name of catalog to use (or null if none)
        schemaName - name of schema name to use (or null if none)
        procedureName - name of the stored procedure
        抛出:
        SQLException - in case of initialization failure
        另请参阅:
        SimpleJdbcCall.withoutProcedureColumnMetaDataAccess()
      • procedureNameToUse

        String procedureNameToUse​(String procedureName)
        Provide any modification of the procedure name passed in to match the meta-data currently used. This could include altering the case.
      • catalogNameToUse

        String catalogNameToUse​(String catalogName)
        Provide any modification of the catalog name passed in to match the meta-data currently used. This could include altering the case.
      • schemaNameToUse

        String schemaNameToUse​(String schemaName)
        Provide any modification of the schema name passed in to match the meta-data currently used. This could include altering the case.
      • metaDataCatalogNameToUse

        String metaDataCatalogNameToUse​(String catalogName)
        Provide any modification of the catalog 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 catalog if none is provided.
      • metaDataSchemaNameToUse

        String metaDataSchemaNameToUse​(String schemaName)
        Provide 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.
      • parameterNameToUse

        String parameterNameToUse​(String parameterName)
        Provide any modification of the column name passed in to match the meta-data currently used. This could include altering the case.
        参数:
        parameterName - name of the parameter of column
      • createDefaultOutParameter

        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.
        参数:
        parameterName - the name of the parameter
        meta - meta-data used for this call
        返回:
        the configured SqlOutParameter
      • createDefaultInOutParameter

        SqlParameter createDefaultInOutParameter​(String parameterName,
                                                 CallParameterMetaData meta)
        Create a default inout parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.
        参数:
        parameterName - the name of the parameter
        meta - meta-data used for this call
        返回:
        the configured SqlInOutParameter
      • createDefaultInParameter

        SqlParameter createDefaultInParameter​(String parameterName,
                                              CallParameterMetaData meta)
        Create a default in parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.
        参数:
        parameterName - the name of the parameter
        meta - meta-data used for this call
        返回:
        the configured SqlParameter
      • getUserName

        String getUserName()
        Get the name of the current user. Useful for meta-data lookups etc.
        返回:
        current user name from database connection
      • getRefCursorSqlType

        int getRefCursorSqlType()
        Get the Types type for columns that return ResultSets as ref cursors if this feature is supported.
      • byPassReturnParameter

        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.