Здавалка
Главная | Обратная связь

Сводка методов класса



public interface ResultSetMetaData {

static public final int columnNoNulls;

static public final int columnNullable;

static public final int columnNullableUnknown;

String getCatalogName(int index)throws SQLException;

String getColumnClassName(int index)throws SQLException;

public int getColumnCount() throws SQLException;

public int getColumnDisplaySize(int index)throws SQLException;

public String getColumnLabel(int index) throws SQLException;

public String getColumnName(int index)throws SQLException;

public int getColumnType(int index) throws SQLException;

public String getColumnTypeName(int index)throws SQLException;

public int getPrecision(int index) throws SQLException;

public int getScale(int index) throws SQLException;

public String getSchemaName(int index)throws SQLException;

public String getTableName(int index)throws SQLException;

public boolean isAutoIncrement(int index)throws SQLException;

public isCaseSensitive(int index)throws SQLException;

public boolean isCurrency(int index)throws SQLException;

public boolean isDefinitelyWritable(int index)throws SQLException;

public int isNullable(int index) throws SQLException;

public boolean isReadOnly(int index)throws SQLException;

public boolean isSearchable(int index)throws SQLException;

public boolean isSigned(int index) throws SQLException;

public boolean isWritable(int index)throws SQLException; }

Атрибуты класса

ColumnNoNulls

static public final int columnNoNulls

Описание. В рассматриваемой колонке недопустимы значения NULL.

ColumnNullable

static public final int columnNullable

Описание. В рассматриваемой колонке допустимы значения NULL.

ColumnNullableUnknown

static public final int columnNullableUnknown

Описание. Неизвестно, допустимы ли значения NULL в рассматриваемой колонке.

Методы объекта

GetCatalogName( )

public String getCatalogName(int index) throws SQLException

Описание. Возвращает имя каталога, связанного с таблицей, в которой находится заданная колонка.

GetColumnClassName( )

public String getColumnClassName(int index) throws SQLException

Описание. Возвращает полностью квалифицированное имя класса Java, который будет создан при вызове ResultSet. getObject() для заданной колонки.

GetColumnCount( )

public int getColumnCount() throws SQLException

Описание. Возвращает количество колонок в результирующем наборе.

GetColumnDisplaySize( )

public int getColumnDisplaySize(int column) throws SQLException

Описание. Возвращает максимальную ширину вывода данных колонки.

GetColumnLabel( )

public String getColumnLabel(int column) throws SQLException

Описание. Возвращает заголовок, с которым выводится колонка.

Get ColumnName( )

public String getcname(int column) throws SQLException

Описание. Возвращает имя, под которым колонка хранится в базе данных.

GetColumnType( )

public int getColumnType(int -column) throws SQLException

Описание. Возвращает SQL-тип заданной колонки как значение из java.sql.Types.







©2015 arhivinfo.ru Все права принадлежат авторам размещенных материалов.