src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java

Print this page




 562      * @param columnIndex the first column is 1, the second is 2, and so on;
 563      *        must be between <code>1</code> and the number of columns, inclusive
 564      * @return a constant from the <code>ResultSetMetaData</code> interface;
 565      *         either <code>columnNoNulls</code>,
 566      *         <code>columnNullable</code>, or
 567      *         <code>columnNullableUnknown</code>
 568      * @throws SQLException if a database access error occurs
 569      *         or the given column number is out of bounds
 570      */
 571     public int isNullable(int columnIndex) throws SQLException {
 572         checkColRange(columnIndex);
 573         return colInfo[columnIndex].nullable;
 574     }
 575 
 576     /**
 577      * Indicates whether a value stored in the designated column is
 578      * a signed number.
 579      *
 580      * @param columnIndex the first column is 1, the second is 2, and so on;
 581      *        must be between <code>1</code> and the number of columns, inclusive
 582      * @return <code>true</code> if if a value in the designated column is a signed
 583      *         number; <code>false</code> otherwise
 584      * @throws SQLException if a database access error occurs
 585      *         or the given column number is out of bounds
 586      */
 587     public boolean isSigned(int columnIndex) throws SQLException {
 588         checkColRange(columnIndex);
 589         return colInfo[columnIndex].signed;
 590     }
 591 
 592     /**
 593      * Retrieves the normal maximum width in chars of the designated column.
 594      *
 595      * @param columnIndex the first column is 1, the second is 2, and so on;
 596      *        must be between <code>1</code> and the number of columns, inclusive
 597      * @return the maximum number of chars that can be displayed in the designated
 598      *         column
 599      * @throws SQLException if a database access error occurs
 600      *         or the given column number is out of bounds
 601      */
 602     public int getColumnDisplaySize(int columnIndex) throws SQLException {




 562      * @param columnIndex the first column is 1, the second is 2, and so on;
 563      *        must be between <code>1</code> and the number of columns, inclusive
 564      * @return a constant from the <code>ResultSetMetaData</code> interface;
 565      *         either <code>columnNoNulls</code>,
 566      *         <code>columnNullable</code>, or
 567      *         <code>columnNullableUnknown</code>
 568      * @throws SQLException if a database access error occurs
 569      *         or the given column number is out of bounds
 570      */
 571     public int isNullable(int columnIndex) throws SQLException {
 572         checkColRange(columnIndex);
 573         return colInfo[columnIndex].nullable;
 574     }
 575 
 576     /**
 577      * Indicates whether a value stored in the designated column is
 578      * a signed number.
 579      *
 580      * @param columnIndex the first column is 1, the second is 2, and so on;
 581      *        must be between <code>1</code> and the number of columns, inclusive
 582      * @return <code>true</code> if a value in the designated column is a signed
 583      *         number; <code>false</code> otherwise
 584      * @throws SQLException if a database access error occurs
 585      *         or the given column number is out of bounds
 586      */
 587     public boolean isSigned(int columnIndex) throws SQLException {
 588         checkColRange(columnIndex);
 589         return colInfo[columnIndex].signed;
 590     }
 591 
 592     /**
 593      * Retrieves the normal maximum width in chars of the designated column.
 594      *
 595      * @param columnIndex the first column is 1, the second is 2, and so on;
 596      *        must be between <code>1</code> and the number of columns, inclusive
 597      * @return the maximum number of chars that can be displayed in the designated
 598      *         column
 599      * @throws SQLException if a database access error occurs
 600      *         or the given column number is out of bounds
 601      */
 602     public int getColumnDisplaySize(int columnIndex) throws SQLException {