Movatterモバイル変換


[0]ホーム

URL:


         


Interface RowSetMetaData

All Superinterfaces:
java.sql.ResultSetMetaData

public interfaceRowSetMetaData
extends java.sql.ResultSetMetaData

The RowSetMetaData interface extends ResultSetMetaData with methods that allow a metadata object to be initialized. A RowSetReader may create a RowSetMetaData and pass it to a rowset when new data is read.


Fields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
 
setAutoIncrement(int columnIndex, boolean property)
          Specify whether the is column automatically numbered, thus read-only.
setCaseSensitive(int columnIndex, boolean property)
          Specify whether the column is case sensitive.
setCatalogName(int columnIndex, java.lang.String catalogName)
          Specify the column's table's catalog name, if any.
setColumnCount(int columnCount)
          Set the number of columns in the RowSet.
setColumnDisplaySize(int columnIndex, int size)
          Specify the column's normal max width in chars.
setColumnLabel(int columnIndex, java.lang.String label)
          Specify the suggested column title for use in printouts and displays, if any.
setColumnName(int columnIndex, java.lang.String columnName)
          Specify the column name.
setColumnType(int columnIndex, int SQLType)
          Specify the column's SQL type.
setColumnTypeName(int columnIndex, java.lang.String typeName)
          Specify the column's data source specific type name, if any.
setCurrency(int columnIndex, boolean property)
          Specify whether the column is a cash value.
setNullable(int columnIndex, int property)
          Specify whether the column's value can be set to NULL.
setPrecision(int columnIndex, int precision)
          Specify the column's number of decimal digits.
setScale(int columnIndex, int scale)
          Specify the column's number of digits to right of the decimal point.
setSchemaName(int columnIndex, java.lang.String schemaName)
          Specify the column's table's schema, if any.
setSearchable(int columnIndex, boolean property)
          Specify whether the column can be used in a where clause.
setSigned(int columnIndex, boolean property)
          Speicfy whether the column is a signed number.
setTableName(int columnIndex, java.lang.String tableName)
          Specify the column's table name, if any.
 
Methods inherited from interface java.sql.ResultSetMetaData
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWritable
 

setColumnCount

public voidsetColumnCount(int columnCount)                    throws java.sql.SQLException
Set the number of columns in the RowSet.
Parameters:
columnCount - number of columns.
Throws:
java.sql.SQLException - if a database-access error occurs.

setAutoIncrement

public voidsetAutoIncrement(int columnIndex,                             boolean property)                      throws java.sql.SQLException
Specify whether the is column automatically numbered, thus read-only.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.
Throws:
java.sql.SQLException - if a database-access error occurs.

setCaseSensitive

public voidsetCaseSensitive(int columnIndex,                             boolean property)                      throws java.sql.SQLException
Specify whether the column is case sensitive.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.
Throws:
java.sql.SQLException - if a database-access error occurs.

setSearchable

public voidsetSearchable(int columnIndex,                          boolean property)                   throws java.sql.SQLException
Specify whether the column can be used in a where clause.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.
Throws:
java.sql.SQLException - if a database-access error occurs.

setCurrency

public voidsetCurrency(int columnIndex,                        boolean property)                 throws java.sql.SQLException
Specify whether the column is a cash value.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.
Throws:
java.sql.SQLException - if a database-access error occurs.

setNullable

public voidsetNullable(int columnIndex,                        int property)                 throws java.sql.SQLException
Specify whether the column's value can be set to NULL.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either one of columnNoNulls, columnNullable or columnNullableUnknown.
Throws:
java.sql.SQLException - if a database-access error occurs.

setSigned

public voidsetSigned(int columnIndex,                      boolean property)               throws java.sql.SQLException
Speicfy whether the column is a signed number.
Parameters:
column - the first column is 1, the second is 2, ...
property - is either true or false.
Throws:
java.sql.SQLException - if a database-access error occurs.

setColumnDisplaySize

public voidsetColumnDisplaySize(int columnIndex,                                 int size)                          throws java.sql.SQLException
Specify the column's normal max width in chars.
Parameters:
column - the first column is 1, the second is 2, ...
size - size of the column
Throws:
java.sql.SQLException - if a database-access error occurs.

setColumnLabel

public voidsetColumnLabel(int columnIndex,                           java.lang.String label)                    throws java.sql.SQLException
Specify the suggested column title for use in printouts and displays, if any.
Parameters:
column - the first column is 1, the second is 2, ...
label - the column title
Throws:
java.sql.SQLException - if a database-access error occurs.

setColumnName

public voidsetColumnName(int columnIndex,                          java.lang.String columnName)                   throws java.sql.SQLException
Specify the column name.
Parameters:
column - the first column is 1, the second is 2, ...
columnName - the column name
Throws:
java.sql.SQLException - if a database-access error occurs.

setSchemaName

public voidsetSchemaName(int columnIndex,                          java.lang.String schemaName)                   throws java.sql.SQLException
Specify the column's table's schema, if any.
Parameters:
column - the first column is 1, the second is 2, ...
schemaName - the schema name
Throws:
java.sql.SQLException - if a database-access error occurs.

setPrecision

public voidsetPrecision(int columnIndex,                         int precision)                  throws java.sql.SQLException
Specify the column's number of decimal digits.
Parameters:
column - the first column is 1, the second is 2, ...
precision - number of decimal digits.
Throws:
java.sql.SQLException - if a database-access error occurs.

setScale

public voidsetScale(int columnIndex,                     int scale)              throws java.sql.SQLException
Specify the column's number of digits to right of the decimal point.
Parameters:
column - the first column is 1, the second is 2, ...
scale - number of digits to right of decimal point.
Throws:
java.sql.SQLException - if a database-access error occurs.

setTableName

public voidsetTableName(int columnIndex,                         java.lang.String tableName)                  throws java.sql.SQLException
Specify the column's table name, if any.
Parameters:
column - the first column is 1, the second is 2, ...
tableName - column's table name.
Throws:
java.sql.SQLException - if a database-access error occurs.

setCatalogName

public voidsetCatalogName(int columnIndex,                           java.lang.String catalogName)                    throws java.sql.SQLException
Specify the column's table's catalog name, if any.
Parameters:
column - the first column is 1, the second is 2, ...
catalogName - column's catalog name.
Throws:
java.sql.SQLException - if a database-access error occurs.

setColumnType

public voidsetColumnType(int columnIndex,                          int SQLType)                   throws java.sql.SQLException
Specify the column's SQL type.
Parameters:
column - the first column is 1, the second is 2, ...
SQLType - column's SQL type.
Throws:
java.sql.SQLException - if a database-access error occurs.
See Also:
Types

setColumnTypeName

public voidsetColumnTypeName(int columnIndex,                              java.lang.String typeName)                       throws java.sql.SQLException
Specify the column's data source specific type name, if any.
Parameters:
column - the first column is 1, the second is 2, ...
typeName - data source specific type name.
Throws:
java.sql.SQLException - if a database-access error occurs.

         


[8]ページ先頭

©2009-2025 Movatter.jp