接口 ResultSetInternalMethods

    • 方法详细资料

      • getObjectStoredProc

        Object getObjectStoredProc​(int columnIndex,
                                   int desiredSqlType)
                            throws SQLException
        Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).
        参数:
        columnIndex - 1-based column index
        desiredSqlType - desired column type, one of Types
        返回:
        object
        抛出:
        SQLException - if an error occurs
      • getObjectStoredProc

        Object getObjectStoredProc​(int i,
                                   Map<Object,​Object> map,
                                   int desiredSqlType)
                            throws SQLException
        Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).
        参数:
        i - 1-based column index
        map - map
        desiredSqlType - desired column type, one of Types
        返回:
        object
        抛出:
        SQLException - if an error occurs
      • getObjectStoredProc

        Object getObjectStoredProc​(String columnName,
                                   int desiredSqlType)
                            throws SQLException
        Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).
        参数:
        columnName - column name
        desiredSqlType - desired column type, one of Types
        返回:
        object
        抛出:
        SQLException - if an error occurs
      • getObjectStoredProc

        Object getObjectStoredProc​(String colName,
                                   Map<Object,​Object> map,
                                   int desiredSqlType)
                            throws SQLException
        Functions like ResultSet.getObject(), but using the given SQL type (as registered during CallableStatement.registerOutParameter()).
        参数:
        colName - column name
        map - map
        desiredSqlType - desired column type, one of Types
        返回:
        object
        抛出:
        SQLException - if an error occurs
      • realClose

        void realClose​(boolean calledExplicitly)
                throws SQLException
        Closes this ResultSet and releases resources.
        参数:
        calledExplicitly - was realClose called by the standard ResultSet.close() method, or was it closed internally by the driver?
        抛出:
        SQLException - if an error occurs
      • setFirstCharOfQuery

        void setFirstCharOfQuery​(char firstCharUpperCase)
        Sets the first character of the query that was issued to create this result set. The character should be upper-cased.
        参数:
        firstCharUpperCase - character
      • setOwningStatement

        void setOwningStatement​(JdbcStatement owningStatement)
        Sets the statement that "owns" this result set (usually used when the result set should internally "belong" to one statement, but is created by another.
        参数:
        owningStatement - the statement this result set will belong to
      • getFirstCharOfQuery

        char getFirstCharOfQuery()
        Returns the first character of the query that was issued to create this result set, upper-cased.
        返回:
        character
      • setWrapperStatement

        void setWrapperStatement​(Statement wrapperStatement)
        参数:
        wrapperStatement - The wrapperStatement to set.