RowSetMetaDataImpl

RowSetMetaDataImpl (행 집합 메타데이터 구현)

RowSet 객체의 컬럼에 대한 메타데이터 정보를 설정하고 얻는 메서드의 구현을 제공하는 클래스입니다.

출처: Java API Reference

본문

RowSetMetaDataImpl 객체는 행셋의 컬럼 수를 추적하고 각 컬럼에 대한 컬럼 속성의 내부 배열을 유지합니다. RowSet 객체는 자신의 컬럼에 대한 정보를 설정하고 조회하기 위해 이 RowSetMetaDataImpl 객체를 내부적으로 만듭니다.

RowSetMetaDataImpl 객체의 모든 메타데이터는 그 객체가 설명하는 RowSet이 채워질 때까지 사용할 수 없는 것으로 간주해야 해요. 따라서 정보를 조회하는 어떤 RowSetMetaDataImpl 메서드도 RowSet 객체에 데이터가 들어오기 전에 호출되면 정의되지 않은 동작을 합니다.

public RowSetMetaDataImpl()
public void setColumnCount(int columnCount) throws SQLException
public void setAutoIncrement(int columnIndex, boolean property) throws SQLException
public void setCaseSensitive(int columnIndex, boolean property) throws SQLException
public void setCatalogName(int columnIndex, String catalogName) throws SQLException
public void setColumnDisplaySize(int columnIndex, int size) throws SQLException
public void setColumnLabel(int columnIndex, String label) throws SQLException
public void setColumnName(int columnIndex, String columnName) throws SQLException
public void setColumnType(int columnIndex, int SQLType) throws SQLException
public void setColumnTypeName(int columnIndex, String typeName) throws SQLException
public void setCurrency(int columnIndex, boolean property) throws SQLException
public void setNullable(int columnIndex, int property) throws SQLException
public void setPrecision(int columnIndex, int precision) throws SQLException
public void setScale(int columnIndex, int scale) throws SQLException
public void setSchemaName(int columnIndex, String schemaName) throws SQLException
public void setSearchable(int columnIndex, boolean property) throws SQLException
public void setSigned(int columnIndex, boolean property) throws SQLException
public void setTableName(int columnIndex, String tableName) throws SQLException
public int getColumnCount()
public boolean isAutoIncrement(int columnIndex) throws SQLException
public boolean isCaseSensitive(int columnIndex) throws SQLException
public String getCatalogName(int columnIndex) throws SQLException
public int getColumnDisplaySize(int columnIndex) throws SQLException
public String getColumnLabel(int columnIndex) throws SQLException
public String getColumnName(int columnIndex) throws SQLException
public int getColumnType(int columnIndex) throws SQLException
public String getColumnTypeName(int columnIndex) throws SQLException
public boolean isCurrency(int columnIndex) throws SQLException
public int isNullable(int columnIndex) throws SQLException
public int getPrecision(int columnIndex) throws SQLException
public int getScale(int columnIndex) throws SQLException
public String getSchemaName(int columnIndex) throws SQLException
public boolean isSearchable(int columnIndex) throws SQLException
public boolean isSigned(int columnIndex) throws SQLException
public String getTableName(int columnIndex) throws SQLException

setColumnCount로 컬럼 수를 정하고 각 세터 메서드로 컬럼별 속성(auto increment 여부, 대소문자 구분, 타입, 이름, 라벨, 정밀도, 스케일 등)을 설정합니다.

더 알아보기 (Learn more)

Java 공식 API