Package javax.sql

Interface RowSetMetaData

    • Method Detail

      • setAutoIncrement

        void setAutoIncrement​(int columnIndex,
                              boolean autoIncrement)
                       throws SQLException
        Sets automatic numbering for a specified column in the RowSet. If automatic numbering is on, the column is read-only. The default value for the auto increment parameter is false.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        autoIncrement - true to set automatic numbering on, false to turn it off (default).
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setCaseSensitive

        void setCaseSensitive​(int columnIndex,
                              boolean caseSensitive)
                       throws SQLException
        Sets the case sensitive property for a specified column in the RowSet. The default is that the column is not case sensitive.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        caseSensitive - true to make the column case sensitive, false to make it case insensitive (default).
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setCatalogName

        void setCatalogName​(int columnIndex,
                            String catalogName)
                     throws SQLException
        Sets the catalog name for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        catalogName - the new catalog's name.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnCount

        void setColumnCount​(int columnCount)
                     throws SQLException
        Sets the number of columns contained in the row set.
        Parameters:
        columnCount - the number of columns contained in the RowSet.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnDisplaySize

        void setColumnDisplaySize​(int columnIndex,
                                  int displaySize)
                           throws SQLException
        Sets the normal maximum width in characters for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        displaySize - the normal maximum column width in characters.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnLabel

        void setColumnLabel​(int columnIndex,
                            String theLabel)
                     throws SQLException
        Sets the suggested name as label for the column contained in the RowSet. The label is an alias for printing and displaying purposes.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theLabel - the alias name for the column.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnName

        void setColumnName​(int columnIndex,
                           String theColumnName)
                    throws SQLException
        Sets the column name for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theColumnName - the column's label.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnType

        void setColumnType​(int columnIndex,
                           int theSQLType)
                    throws SQLException
        Sets the SQL type for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theSQLType - the SQL Type, as defined by java.sql.Types.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setColumnTypeName

        void setColumnTypeName​(int columnIndex,
                               String theTypeName)
                        throws SQLException
        Sets the type name for a specified column in the RowSet, where the data type is specific to the data source.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theTypeName - the SQL type name for the column.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setCurrency

        void setCurrency​(int columnIndex,
                         boolean isCurrency)
                  throws SQLException
        Sets whether a specified column is a currency value. The default value is false.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        isCurrency - true if the column should be treated as a currency value, false if it should not be treated as a currency value (default).
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setNullable

        void setNullable​(int columnIndex,
                         int nullability)
                  throws SQLException
        Sets whether a specified column can contain SQL NULL values.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        nullability - an integer which is one of the following values:
        • ResultSetMetaData.columnNoNulls
        • ResultSetMetaData.columnNullable
        • ResultSetMetaData.columnNullableUnknown

        The default value is ResultSetMetaData.columnNullableUnknown.

        Throws:
        SQLException - if a problem occurs accessing the database.
      • setPrecision

        void setPrecision​(int columnIndex,
                          int thePrecision)
                   throws SQLException
        Sets the number of decimal digits for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        thePrecision - the number of decimal digits.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setScale

        void setScale​(int columnIndex,
                      int theScale)
               throws SQLException
        Declares how many decimal digits there should be after a decimal point for the column specified by columnIndex.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theScale - the number of digits after the decimal point.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setSchemaName

        void setSchemaName​(int columnIndex,
                           String theSchemaName)
                    throws SQLException
        Sets the schema name for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theSchemaName - a String containing the schema name.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setSearchable

        void setSearchable​(int columnIndex,
                           boolean isSearchable)
                    throws SQLException
        Sets whether a specified column can be used in a search involving a WHERE clause. The default value is false.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        isSearchable - true of the column can be used in a WHERE clause search, false otherwise.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setSigned

        void setSigned​(int columnIndex,
                       boolean isSigned)
                throws SQLException
        Sets if a specified column can contain signed numbers.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        isSigned - true if the column can contain signed numbers, false otherwise.
        Throws:
        SQLException - if a problem occurs accessing the database.
      • setTableName

        void setTableName​(int columnIndex,
                          String theTableName)
                   throws SQLException
        Sets the table name for a specified column in the RowSet.
        Parameters:
        columnIndex - the index number for the column; the first column's index is 1.
        theTableName - the table name for the column.
        Throws:
        SQLException - if a problem occurs accessing the database.