Module java.sql
Package javax.sql

Interface RowSetMetaData

All Superinterfaces:
ResultSetMetaData, Wrapper
All Known Implementing Classes:
RowSetMetaDataImpl

public interface RowSetMetaData
extends ResultSetMetaData
An object that contains information about the columns in a RowSet object. This interface is an extension of the ResultSetMetaData interface with methods for setting the values in a RowSetMetaData object. When a RowSetReader object reads data into a RowSet object, it creates a RowSetMetaData object and initializes it using the methods in the RowSetMetaData interface. Then the reader passes the RowSetMetaData object to the rowset.

The methods in this interface are invoked internally when an application calls the method RowSet.execute; an application programmer would not use them directly.

Since:
1.4
  • Method Details

    • setColumnCount

      void setColumnCount​(int columnCount) throws SQLException
      Sets the number of columns in the RowSet object to the given number.
      Parameters:
      columnCount - the number of columns in the RowSet object
      Throws:
      SQLException - if a database access error occurs
    • setAutoIncrement

      void setAutoIncrement​(int columnIndex, boolean property) throws SQLException
      Sets whether the designated column is automatically numbered, The default is for a RowSet object's columns not to be automatically numbered.
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      property - true if the column is automatically numbered; false if it is not
      Throws:
      SQLException - if a database access error occurs
    • setCaseSensitive

      void setCaseSensitive​(int columnIndex, boolean property) throws SQLException
      Sets whether the designated column is case sensitive. The default is false.
      Parameters:
      columnIndex - the first column is 1, the second is 2, ...
      property - true if the column is case sensitive; false if it is not
      Throws:
      SQLException - if a database access error occurs
    • setSearchable

      void setSearchable​(int columnIndex, boolean property) throws