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 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.