All Packages Class Hierarchy This Package Previous Next Index
Class interbase.interclient.ResultSetMetaData
java.lang.Object
|
+----interbase.interclient.ResultSetMetaData
- public final class ResultSetMetaData
- extends Object
- implements ResultSetMetaData
A ResultSetMetaData object can be used to find out about the types
and properties of the columns in a ResultSet.
-
columnNoNulls
- Does not allow NULL values.
-
columnNullable
- Allows NULL values.
-
columnNullableUnknown
- Nullability unknown.
-
getCatalogName(int)
- Get the column's table's catalog name.
-
getColumnCount()
- Get the number of columns in the ResultSet.
-
getColumnDisplaySize(int)
- What's the column's normal max width in chars?
-
getColumnLabel(int)
- Get the suggested column title for use in printouts and
displays.
-
getColumnName(int)
- Get the column's name.
-
getColumnType(int)
- Get the column's SQL type.
-
getColumnTypeName(int)
- Get the column's data source specific type name.
-
getPrecision(int)
- Get the column's number of decimal digits.
-
getScale(int)
- Get the column's number of digits to right of the decimal point.
-
getSchemaName(int)
- Get the column's table's schema name.
-
getTableName(int)
- Get the column's table name.
-
isAutoIncrement(int)
- Is the column automatically numbered, thus read-only?
-
isCaseSensitive(int)
- Does a column's case matters?
-
isCurrency(int)
- Can the column can be used to represent a cash value?
-
isDefinitelyWritable(int)
- Will a write on the column definitely succeed?
-
isNullable(int)
- Can you can put a NULL in this column?
-
isReadOnly(int)
- Is a column definitely not writable?
-
isSearchable(int)
- Can a column be used in a where clause?
-
isSigned(int)
- Can the column can contain signed numbers?
-
isWritable(int)
- Is it possible for a write on the column to succeed?
columnNoNulls
public final static int columnNoNulls
- Does not allow NULL values.
columnNullable
public final static int columnNullable
- Allows NULL values.
columnNullableUnknown
public final static int columnNullableUnknown
- Nullability unknown.
getColumnCount
public int getColumnCount() throws SQLException
- Get the number of columns in the ResultSet.
isAutoIncrement
public boolean isAutoIncrement(int column) throws SQLException
- Is the column automatically numbered, thus read-only?
Note: It is not known how to detect a generator field
using InterBase system tables.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- always false for InterClient.
isCaseSensitive
public boolean isCaseSensitive(int column) throws SQLException
- Does a column's case matters?
Text fields in InterBase are always case sensitive, even text BLObs
when using the 'containing' operator.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- always true for InterBase.
isSearchable
public boolean isSearchable(int column) throws SQLException
- Can a column be used in a where clause?
In InterBase, even a BLOb field can be used in a where clause,
eg. WHERE blob-field CONTAINING foobar
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- always true for InterBase.
isCurrency
public boolean isCurrency(int column) throws SQLException
- Can the column can be used to represent a cash value?
InterBase does not support a money type.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- always false for InterBase.
isNullable
public int isNullable(int column) throws SQLException
- Can you can put a NULL in this column?
Note: Unlike other RDBMS vendors, InterBase will
always know column nullability and never return columnNullableUnknown.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- columnNoNulls, columnNullable or columnNullableUnknown
isSigned
public boolean isSigned(int column) throws SQLException
- Can the column can contain signed numbers?
- Parameters:
- column - the first column is 1, the second is 2, ...
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws SQLException
- What's the column's normal max width in chars?
- Parameters:
- column - the first column is 1, the second is 2, ...
getColumnLabel
public String getColumnLabel(int column) throws SQLException
- Get the suggested column title for use in printouts and
displays.
- Parameters:
- column - the first column is 1, the second is 2, ...
getColumnName
public String getColumnName(int column) throws SQLException
- Get the column's name.
- Parameters:
- column - the first column is 1, the second is 2, ...
getSchemaName
public String getSchemaName(int column) throws SQLException
- Get the column's table's schema name.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- schema name or "" if not applicable
- Throws: SQLException
- InterBase does not support schemas.
getPrecision
public int getPrecision(int column) throws SQLException
- Get the column's number of decimal digits.
- Parameters:
- column - the first column is 1, the second is 2, ...
getScale
public int getScale(int column) throws SQLException
- Get the column's number of digits to right of the decimal point.
- Parameters:
- column - the first column is 1, the second is 2, ...
getTableName
public synchronized String getTableName(int column) throws SQLException
- Get the column's table name.
- Returns:
- table name or "" if not applicable
getCatalogName
public String getCatalogName(int column) throws SQLException
- Get the column's table's catalog name.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- catalog name or "" if not applicable
- Throws: SQLException
- InterBase does not support Catalogs.
getColumnType
public int getColumnType(int column) throws SQLException
- Get the column's SQL type.
Map the stored InterBase Type to the SQL Type.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- SQL type
- See Also:
- Types
getColumnTypeName
public String getColumnTypeName(int column) throws SQLException
- Get the column's data source specific type name.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- InterBase type name for the column.
isReadOnly
public boolean isReadOnly(int column) throws SQLException
- Is a column definitely not writable?
- Parameters:
- column - the first column is 1, the second is 2, ...
isWritable
public synchronized boolean isWritable(int column) throws SQLException
- Is it possible for a write on the column to succeed?
- Parameters:
- column - the first column is 1, the second is 2, ...
isDefinitelyWritable
public boolean isDefinitelyWritable(int column) throws SQLException
- Will a write on the column definitely succeed?
Note: InterBase can never guarantee this.
- Parameters:
- column - the first column is 1, the second is 2, ...
- Returns:
- false for InterBase.
All Packages Class Hierarchy This Package Previous Next Index