getMetaData()

Syntax:

ResultSetMetaData getMetaData()
                              throws SQLException

Description:

Retrieves the number, types and properties of this ResultSet object's columns.

Returns:

the description of this ResultSet object's columns

Throws:

SQLException - if a database access error occurs or this method is called on a closed result set.

Reference:

For more information, reference JDBC documentation for: ResultSet.getMetaData()