|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.AbstractDatabaseMetaData
org.firebirdsql.jdbc.FBDatabaseMetaData
public class FBDatabaseMetaData
| Field Summary |
|---|
| Fields inherited from class org.firebirdsql.jdbc.AbstractDatabaseMetaData |
|---|
ALL_TYPES, GET_COLUMNS_END, SYSTEM_TABLE, TABLE, VIEW |
| Constructor Summary | |
|---|---|
FBDatabaseMetaData(AbstractConnection c)
|
|
FBDatabaseMetaData(GDSHelper gdsHelper)
|
|
| Method Summary | |
|---|---|
boolean |
autoCommitFailureClosesAllResultSets()
|
ResultSet |
getClientInfoProperties()
Retrieves a list of the client info properties that the driver supports. |
ResultSet |
getFunctionColumns(String catalog,
String schemaPattern,
String functionNamePattern,
String columnNamePattern)
Retrieves a description of the given catalog's system or user function parameters and return type. |
ResultSet |
getFunctions(String catalog,
String schemaPattern,
String functionNamePattern)
Retrieves a description of the system and user functions available in the given catalog. |
RowIdLifetime |
getRowIdLifetime()
Indicates whether or not this data source supports the SQL ROWID type,
and if so the lifetime for which a RowId object remains valid. |
ResultSet |
getSchemas(String catalog,
String schemaPattern)
Retrieves the schema names available in this database. |
boolean |
isWrapperFor(Class arg0)
|
boolean |
supportsStoredFunctionsUsingCallSyntax()
|
Object |
unwrap(Class arg0)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBDatabaseMetaData(AbstractConnection c)
throws GDSException
GDSExceptionpublic FBDatabaseMetaData(GDSHelper gdsHelper)
| Method Detail |
|---|
public boolean supportsStoredFunctionsUsingCallSyntax()
throws SQLException
SQLException
public boolean autoCommitFailureClosesAllResultSets()
throws SQLException
SQLException
public ResultSet getClientInfoProperties()
throws SQLException
The ResultSet is sorted by the NAME column
ResultSet object; each row is a supported client info
property
SQLException - if a database access error occurs
public ResultSet getFunctionColumns(String catalog,
String schemaPattern,
String functionNamePattern,
String columnNamePattern)
throws SQLException
Only descriptions matching the schema, function and
parameter name criteria are returned. They are ordered by
FUNCTION_CAT, FUNCTION_SCHEM,
FUNCTION_NAME and
SPECIFIC_ NAME. Within this, the return value,
if any, is first. Next are the parameter descriptions in call
order. The column descriptions follow in column number order.
Each row in the ResultSet
is a parameter description, column description or
return type description with the following fields:
null)
null)
ResultSet
FUNCTION_NAME
for example with overload functions
The PRECISION column represents the specified column size for the given parameter or column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used to narrow
the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
null means that the schema name should not be used to narrow
the searchfunctionNamePattern - a procedure name pattern; must match the
function name as it is stored in the databasecolumnNamePattern - a parameter name pattern; must match the
parameter or column name as it is stored in the database
ResultSet - each row describes a
user function parameter, column or return type
SQLException - if a database access error occursAbstractDatabaseMetaData.getSearchStringEscape()
public ResultSet getFunctions(String catalog,
String schemaPattern,
String functionNamePattern)
throws SQLException
Only system and user function descriptions matching the schema and
function name criteria are returned. They are ordered by
FUNCTION_CAT, FUNCTION_SCHEM,
FUNCTION_NAME and
SPECIFIC_ NAME.
Each function description has the the following columns:
null)
null)
FUNCTION_NAME
for example with overload functions
A user may not have permission to execute any of the functions that are
returned by getFunctions
catalog - a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
null means that the catalog name should not be used to narrow
the searchschemaPattern - a schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
null means that the schema name should not be used to narrow
the searchfunctionNamePattern - a function name pattern; must match the
function name as it is stored in the database
ResultSet - each row is a function description
SQLException - if a database access error occursAbstractDatabaseMetaData.getSearchStringEscape()
public RowIdLifetime getRowIdLifetime()
throws SQLException
ROWID type,
and if so the lifetime for which a RowId object remains valid.
The returned int values have the following relationship:
ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION
< ROWID_VALID_SESSION < ROWID_VALID_FOREVER
so conditional logic such as
if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)
can be used. Valid Forever means valid across all Sessions, and valid for
a Session means valid across all its contained Transactions.
RowId
SQLException - if a database access error occurs
public ResultSet getSchemas(String catalog,
String schemaPattern)
throws SQLException
TABLE_CATALOG and
TABLE_SCHEM.
The schema columns are:
null)
catalog - a catalog name; must match the catalog name as it is stored
in the database;"" retrieves those without a catalog; null means catalog
name should not be used to narrow down the search.schemaPattern - a schema name; must match the schema name as it is
stored in the database; null means
schema name should not be used to narrow down the search.
ResultSet object in which each row is a
schema description
SQLException - if a database access error occursAbstractDatabaseMetaData.getSearchStringEscape()
public boolean isWrapperFor(Class arg0)
throws SQLException
SQLException
public Object unwrap(Class arg0)
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||