ResultSetMetaData Interface

Objects of the ResultSetMetaData class provide methods for determining the structure of a result set. Objects of the ResultSetMetaData class are created by the getMetaData method of ResultSet objects. Table A.12 describes the methods belonging to the ResultSetMetaData class.

Table A.12. Methods of the ResultSetMetaData Class
MethodPurpose
getCatalogNameReturn the catalog name for the specified column.
getColumnCountReturn the number of columns in the current result set.
getColumnDisplaySizeReturn the maximum width of the specified column.
getColumnLabelReturn a label (usually the column name) for the specified column.
getColumnNameReturn the name of the specified column.
getColumnTypeReturn the datatype for the specified column. ...

Get e-Commerce Applications Using Oracle8i and Java from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.