FileDocCategorySizeDatePackage
ResultSetMetaData.javaAPI DocAndroid 1.5 API9962Wed May 06 22:41:06 BST 2009java.sql

ResultSetMetaData

public interface ResultSetMetaData
Provides information about the columns returned in a {@code ResultSet}.
since
Android 1.0

Fields Summary
public static final int
columnNoNulls
Indicates that a column cannot contain {@code NULL} values.
public static final int
columnNullable
Indicates that a column can contain {@code NULL} values.
public static final int
columnNullableUnknown
Indicates that it is unknown whether a column can contain {@code NULL}s or not.
Constructors Summary
Methods Summary
public java.lang.StringgetCatalogName(int column)
Returns the title of an indexed column's catalog.

param
column the column index, starting at 1.
return
the catalog title.
throws
SQLException if there is a database error.
since
Android 1.0

public java.lang.StringgetColumnClassName(int column)
Returns the fully-qualified type of the class that is produced when invoking {@code ResultSet.getObject} to recover this column's value.

param
column the column index, starting at 1.
return
the fully-qualified class name.
throws
SQLException if there is a database error.
see
ResultSet#getObject
since
Android 1.0

public intgetColumnCount()
Returns number of columns contained in the associated result set.

return
the column count.
throws
SQLException if there is a database error.
since
Android 1.0

public intgetColumnDisplaySize(int column)
Returns the indexed column's standard maximum width, expressed in number of characters.

param
column the column index, starting at 1.
return
the column's max width.
throws
SQLException if there is a database error.
since
Android 1.0

public java.lang.StringgetColumnLabel(int column)
Returns a recommended title for the indexed column, to be used when the title needs to be displayed.

param
column the column index, starting at 1.
return
the column's title.
throws
SQLException if there is a database error.
since
Android 1.0

public java.lang.StringgetColumnName(int column)
Returns the title of the indexed column.

param
column the column index, starting at 1.
return
the column title.
throws
SQLException if there is a database error.
since
Android 1.0

public intgetColumnType(int column)
Returns the type of the indexed column as SQL type code.

param
column the column index, starting at 1.
return
the column type code.
throws
SQLException if there is a database error.
see
Types
since
Android 1.0

public java.lang.StringgetColumnTypeName(int column)
Returns the type name of the indexed column.

param
column the column index, starting at 1.
return
the type name.
throws
SQLException if there is a database error.
since
Android 1.0

public intgetPrecision(int column)
Returns the decimal precision of the indexed column.

param
column the column index, starting at 1.
return
the precision.
throws
SQLException if there is a database error.
since
Android 1.0

public intgetScale(int column)
Returns the number of digits to the right of the decimal point of the indexed column.

param
column the column index, starting at 1.
return
number of decimal places.
throws
SQLException if there is a database error.
since
Android 1.0

public java.lang.StringgetSchemaName(int column)
Returns the name of the indexed columns schema.

param
column the column index, starting at 1.
return
the name of the columns schema.
throws
SQLException if there is a database error.
since
Android 1.0

public java.lang.StringgetTableName(int column)
Returns the title of the indexed columns table.

param
column the column index, starting at 1.
return
the table title.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisAutoIncrement(int column)
Returns an indication of whether the indexed column is automatically incremented and is therefore read-only.

param
column the column index, starting at 1.
return
{@code true} if it is automatically numbered, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisCaseSensitive(int column)
Returns an indication of whether the case of the indexed column is important.

param
column the column index, starting at 1.
return
{@code true} if case matters, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisCurrency(int column)
Returns whether the indexed column contains a monetary amount.

param
column the column index, starting at 1.
return
{@code true} if it is a monetary value, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisDefinitelyWritable(int column)
Returns an indication of whether writing to the indexed column is guaranteed to be successful.

param
column the column index, starting at 1.
return
{@code true} if the write is guaranteed, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public intisNullable(int column)
Returns whether the indexed column is nullable.

param
column the column index, starting at 1.
return
{@code true} if it is nullable, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisReadOnly(int column)
Returns an indication of whether writing to the indexed column is guaranteed to be unsuccessful.

param
column the column index, starting at 1.
return
{@code true} if the column is read-only, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisSearchable(int column)
Returns an indication of whether the indexed column is searchable.

param
column the column index, starting at 1.
return
{@code true} if the indexed column is searchable, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisSigned(int column)
Returns an indication of whether the values contained in the indexed column are signed.

param
column the column index, starting at 1.
return
{@code true} if they are signed, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0

public booleanisWritable(int column)
Returns an indication of whether writing to the indexed column is possible.

param
column the column index, starting at 1.
return
{@code true} if it is possible to write, {@code false} otherwise.
throws
SQLException if there is a database error.
since
Android 1.0