Android
javax.sql
public interface

javax.sql.RowSetMetaData

javax.sql.RowSetMetaData ResultSetMetaData

An interface which provides facilities for getting information about the columns in a RowSet.

RowSetMetaData extends ResultSetMetaData, adding new operations for carrying out value sets.

Application code would not normally call this interface directly. It would be called internally when RowSet.execute is called.

Summary

Constants inherited from interface java.sql.ResultSetMetaData

Public Methods

          void  setAutoIncrement(int columnIndex, boolean autoIncrement)
Sets automatic numbering for a specified column in the RowSet.
          void  setCaseSensitive(int columnIndex, boolean caseSensitive)
Sets the case sensitive property for a specified column in the RowSet.
          void  setCatalogName(int columnIndex, String catalogName)
Sets the Catalog Name for a specified column in the RowSet.
          void  setColumnCount(int columnCount)
Sets the number of columns in the Row Set.
          void  setColumnDisplaySize(int columnIndex, int displaySize)
Sets the normal maximum width in characters for a specified column in the RowSet.
          void  setColumnLabel(int columnIndex, String theLabel)
          void  setColumnName(int columnIndex, String theColumnName)
Sets the suggested column label for a specified column in the RowSet.
          void  setColumnType(int columnIndex, int theSQLType)
Sets the SQL type for a specified column in the RowSet
          void  setColumnTypeName(int columnIndex, String theTypeName)
Sets the Type Name for a specified column in the RowSet, where the data type is specific to the datasource.
          void  setCurrency(int columnIndex, boolean isCurrency)
Sets whether a specified column is a currency value.
          void  setNullable(int columnIndex, int nullability)
Sets whether a specified column can contain SQL NULL values.
          void  setPrecision(int columnIndex, int thePrecision)
Sets the number of decimal digits for a specified column in the RowSet.
          void  setScale(int columnIndex, int theScale)
For the column specified by columnIndex declares how many digits there should be after a decimal point.
          void  setSchemaName(int columnIndex, String theSchemaName)
Sets the Schema Name for a specified column in the RowSet
          void  setSearchable(int columnIndex, boolean isSearchable)
Sets whether a specified column can be used in a search involving a WHERE clause.
          void  setSigned(int columnIndex, boolean isSigned)
Sets if a specified column can contain signed numbers
          void  setTableName(int columnIndex, String theTableName)
Sets the Table Name for a specified column in the RowSet
Methods inherited from interface java.sql.ResultSetMetaData

Details

Public Methods

public void setAutoIncrement(int columnIndex, boolean autoIncrement)

Sets automatic numbering for a specified column in the RowSet. If automatic numbering is on, the column is read only. The default value is for automatic numbering to be off.

Parameters

columnIndex the index number for the column, where the first column has index 1.
autoIncrement true to set automatic numbering on, false to turn it off.

Throws

SQLException if a problem occurs accessing the database

public void setCaseSensitive(int columnIndex, boolean caseSensitive)

Sets the case sensitive property for a specified column in the RowSet. The default is that the column is not case sensitive.

Parameters

columnIndex the index number for the column, where the first column has index 1.
caseSensitive true to make the column case sensitive, false to make it not case sensitive.

Throws

SQLException if a problem occurs accessing the database

public void setCatalogName(int columnIndex, String catalogName)

Sets the Catalog Name for a specified column in the RowSet.

Parameters

columnIndex the index number for the column, where the first column has index 1.
catalogName a string containing the new Catalog Name

Throws

SQLException if a problem occurs accessing the database

public void setColumnCount(int columnCount)

Sets the number of columns in the Row Set.

Parameters

columnCount an integer containing the number of columns in the RowSet.

Throws

SQLException if a problem occurs accessing the database

public void setColumnDisplaySize(int columnIndex, int displaySize)

Sets the normal maximum width in characters for a specified column in the RowSet.

Parameters

columnIndex the index number for the column, where the first column has index 1.
displaySize an integer with the normal maximum column width in characters

Throws

SQLException if a problem occurs accessing the database

public void setColumnLabel(int columnIndex, String theLabel)

Parameters

columnIndex the index number for the column, where the first column has index 1.

Throws

SQLException if a problem occurs accessing the database

public void setColumnName(int columnIndex, String theColumnName)

Sets the suggested column label for a specified column in the RowSet. This label is typically used in displaying or printing the column.

Parameters

columnIndex the index number for the column, where the first column has index 1.
theColumnName a string containing the column label

Throws

SQLException if a problem occurs accessing the database

public void setColumnType(int columnIndex, int theSQLType)

Sets the SQL type for a specified column in the RowSet

Parameters

columnIndex the index number for the column, where the first column has index 1.
theSQLType an integer containing the SQL Type, as defined by java.sql.Types.

Throws

SQLException if a problem occurs accessing the database

public void setColumnTypeName(int columnIndex, String theTypeName)

Sets the Type Name for a specified column in the RowSet, where the data type is specific to the datasource.

Parameters

columnIndex the index number for the column, where the first column has index 1.
theTypeName a string containing the Type Name for the column

Throws

SQLException if a problem occurs accessing the database

public void setCurrency(int columnIndex, boolean isCurrency)

Sets whether a specified column is a currency value.

Parameters

columnIndex the index number for the column, where the first column has index 1.
isCurrency true if the column should be treated as a currency value, false if it should not be treated as a currency value.

Throws

SQLException if a problem occurs accessing the database

public void setNullable(int columnIndex, int nullability)

Sets whether a specified column can contain SQL NULL values.

Parameters

columnIndex the index number for the column, where the first column has index 1.
nullability an integer which is one of the following values: ResultSetMetaData.columnNoNulls, ResultSetMetaData.columnNullable, or ResultSetMetaData.columnNullableUnknown

The default value is ResultSetMetaData.columnNullableUnknown

Throws

SQLException if a problem occurs accessing the database

public void setPrecision(int columnIndex, int thePrecision)

Sets the number of decimal digits for a specified column in the RowSet.

Parameters

columnIndex the index number for the column, where the first column has index 1.
thePrecision an integer containing the number of decimal digits

Throws

SQLException if a problem occurs accessing the database

public void setScale(int columnIndex, int theScale)

For the column specified by columnIndex declares how many digits there should be after a decimal point.

Parameters

columnIndex the index number for the column, where the first column has index 1.
theScale an integer containing the number of digits after the decimal point

Throws

SQLException if a problem occurs accessing the database

public void setSchemaName(int columnIndex, String theSchemaName)

Sets the Schema Name for a specified column in the RowSet

Parameters

columnIndex the index number for the column, where the first column has index 1.
theSchemaName a String containing the schema name

Throws

SQLException if a problem occurs accessing the database

public void setSearchable(int columnIndex, boolean isSearchable)

Sets whether a specified column can be used in a search involving a WHERE clause. The default value is false.

Parameters

columnIndex the index number for the column, where the first column has index 1.
isSearchable true of the column can be used in a WHERE clause search, false otherwise.

Throws

SQLException if a problem occurs accessing the database

public void setSigned(int columnIndex, boolean isSigned)

Sets if a specified column can contain signed numbers

Parameters

columnIndex the index number for the column, where the first column has index 1.
isSigned true if the column can contain signed numbers, false otherwise

Throws

SQLException if a problem occurs accessing the database

public void setTableName(int columnIndex, String theTableName)

Sets the Table Name for a specified column in the RowSet

Parameters

columnIndex the index number for the column, where the first column has index 1.
theTableName a String containing the Table Name for the column

Throws

SQLException if a problem occurs accessing the database
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48