Name

ResultSetMetaData

Synopsis

This interface provides metainformation about the data underlying a particular ResultSet. In particular, you can get information about the columns of the ResultSet with getColumnCount(), getColumnLabel(), and getColumnTypeName().

public interface ResultSetMetaData {
// Public Constants
   public static final int columnNoNulls;                        // =0
   public static final int columnNullable;                       // =1
   public static final int columnNullableUnknown;                // =2
                  // Public Instance Methods
   public abstract String getCatalogName(
        int column) throws SQLException;  
   public abstract String getColumnClassName(                    // 1.2
        int column) throws SQLException;  
   public abstract int getColumnCount() throws SQLException;  
   public abstract int getColumnDisplaySize(
        int column) throws SQLException;  
   public abstract String getColumnLabel(
        int column) throws SQLException;  
   public abstract String getColumnName(
        int column) throws SQLException;  
   public abstract int getColumnType(
        int column) throws SQLException;  
   public abstract String getColumnTypeName(
        int column) throws SQLException;  
   public abstract int getPrecision(
        int column) throws SQLException;  
   public abstract int getScale(
        int column) throws SQLException;  
   public abstract String getSchemaName(
        int column) throws SQLException;  
   public abstract String getTableName(
        int column) throws SQLException;  
   public abstract boolean isAutoIncrement(
        int column) throws SQLException;  
   public abstract boolean isCaseSensitive(
        int column) throws SQLException; public abstract boolean ...

Get Java Enterprise in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.