Interface ResultSetMetadata (2.42.0)

public interface ResultSetMetadata

Provides information about the schema of a ResultSet.

Methods

getColumnIndex(String columnName)

public abstract int getColumnIndex(String columnName)
Parameter
Name Description
columnName String

name of the column

Returns
Type Description
int

index of the column with the given name

getColumnType(int columnIndex)

public abstract SqlType<?> getColumnType(int columnIndex)
Parameter
Name Description
columnIndex int

index of the column

Returns
Type Description
SqlType<?>

the SqlType of the column at the given index

getColumnType(String columnName)

public abstract SqlType<?> getColumnType(String columnName)
Parameter
Name Description
columnName String

name of the column

Returns
Type Description
SqlType<?>

the SqlType of the column with the given name

getColumns()

public abstract List<ColumnMetadata> getColumns()
Returns
Type Description
List<ColumnMetadata>

full list of ColumnMetadata for each column in the ResultSet.