|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData
org.postgresql.jdbc3.AbstractJdbc3DatabaseMetaData
public abstract class AbstractJdbc3DatabaseMetaData
| Field Summary |
|---|
| Fields inherited from class org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData |
|---|
connection |
| Constructor Summary | |
|---|---|
AbstractJdbc3DatabaseMetaData(AbstractJdbc3Connection conn)
|
|
| Method Summary | |
|---|---|
ResultSet |
getAttributes(String catalog,
String schemaPattern,
String typeNamePattern,
String attributeNamePattern)
Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog. |
ResultSet |
getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
|
int |
getDatabaseMajorVersion()
Retrieves the major version number of the underlying database. |
int |
getDatabaseMinorVersion()
Retrieves the minor version number of the underlying database. |
int |
getJDBCMajorVersion()
Retrieves the major JDBC version number for this driver. |
int |
getJDBCMinorVersion()
Retrieves the minor JDBC version number for this driver. |
int |
getResultSetHoldability()
Retrieves the default holdability of this ResultSet
object. |
ResultSet |
getSchemas()
|
int |
getSQLStateType()
Indicates whether the SQLSTATEs returned by SQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99. |
ResultSet |
getSuperTables(String catalog,
String schemaPattern,
String tableNamePattern)
Retrieves a description of the table hierarchies defined in a particular schema in this database. |
ResultSet |
getSuperTypes(String catalog,
String schemaPattern,
String typeNamePattern)
Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. |
boolean |
locatorsUpdateCopy()
Indicates whether updates made to a LOB are made on a copy or directly to the LOB. |
boolean |
supportsGetGeneratedKeys()
Retrieves whether auto-generated keys can be retrieved after a statement has been executed. |
boolean |
supportsMultipleOpenResults()
Retrieves whether it is possible to have multiple ResultSet objects
returned from a CallableStatement object
simultaneously. |
boolean |
supportsNamedParameters()
Retrieves whether this database supports named parameters to callable statements. |
boolean |
supportsResultSetHoldability(int holdability)
Retrieves whether this database supports the given result set holdability. |
boolean |
supportsSavepoints()
Retrieves whether this database supports savepoints. |
boolean |
supportsStatementPooling()
Retrieves weather this database supports statement pooling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJdbc3DatabaseMetaData(AbstractJdbc3Connection conn)
| Method Detail |
|---|
public boolean supportsSavepoints()
throws SQLException
true if savepoints are supported;
false otherwise
SQLException - if a database access error occurs
public boolean supportsNamedParameters()
throws SQLException
true if named parameters are supported;
false otherwise
SQLException - if a database access error occurs
public boolean supportsMultipleOpenResults()
throws SQLException
ResultSet objects
returned from a CallableStatement object
simultaneously.
true if a CallableStatement object
can return multiple ResultSet objects
simultaneously; false otherwise
SQLException - if a datanase access error occurs
public boolean supportsGetGeneratedKeys()
throws SQLException
true if auto-generated keys can be retrieved
after a statement has executed; false otherwise
SQLException - if a database access error occurs
public ResultSet getSuperTypes(String catalog,
String schemaPattern,
String typeNamePattern)
throws SQLException
Only supertype information for UDTs matching the catalog, schema, and type name is returned. The type name parameter may be a fully-qualified name. When the UDT name supplied is a fully-qualified name, the catalog and schemaPattern parameters are ignored.
If a UDT does not have a direct super type, it is not listed here.
A row of the ResultSet object returned by this method
describes the designated UDT and a direct supertype. A row has the following
columns:
null)
null)
null)
null)
Note: If the driver does not support type hierarchies, an empty result set is returned.
catalog - a catalog name; "" retrieves those without a catalog;
null means drop catalog name from the selection criteriaschemaPattern - a schema name pattern; "" retrieves those
without a schematypeNamePattern - a UDT name pattern; may be a fully-qualified
name
ResultSet object in which a row gives information
about the designated UDT
SQLException - if a database access error occurs
public ResultSet getSuperTables(String catalog,
String schemaPattern,
String tableNamePattern)
throws SQLException
Only supertable information for tables matching the catalog, schema and table name are returned. The table name parameter may be a fully- qualified name, in which case, the catalog and schemaPattern parameters are ignored. If a table does not have a super table, it is not listed here. Supertables have to be defined in the same catalog and schema as the sub tables. Therefore, the type description does not need to include this information for the supertable.
Each type description has the following columns:
null)
null)
Note: If the driver does not support type hierarchies, an empty result set is returned.
catalog - a catalog name; "" retrieves those without a catalog;
null means drop catalog name from the selection criteriaschemaPattern - a schema name pattern; "" retrieves those
without a schematableNamePattern - a table name pattern; may be a fully-qualified
name
ResultSet object in which each row is a type description
SQLException - if a database access error occurs
public ResultSet getAttributes(String catalog,
String schemaPattern,
String typeNamePattern,
String attributeNamePattern)
throws SQLException
Descriptions are returned only for attributes of UDTs matching the catalog, schema, type, and attribute name criteria. They are ordered by TYPE_SCHEM, TYPE_NAME and ORDINAL_POSITION. This description does not contain inherited attributes.
The ResultSet object that is returned has the following
columns:
null)
null)
null)
null)
null if DATA_TYPE isn't REF)
null if DATA_TYPE isn't REF)
null if the DATA_TYPE isn't REF)
null if DATA_TYPE
isn't DISTINCT or user-generated REF)
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 searchtypeNamePattern - a type name pattern; must match the
type name as it is stored in the databaseattributeNamePattern - an attribute name pattern; must match the attribute
name as it is declared in the database
ResultSet object in which each row is an
attribute description
SQLException - if a database access error occurs
public boolean supportsResultSetHoldability(int holdability)
throws SQLException
holdability - one of the following constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMIT
- Returns:
true if so; false otherwise
- Throws:
SQLException - if a database access error occurs- Since:
- 1.4
- See Also:
Connection
public int getResultSetHoldability()
throws SQLException
ResultSet
object.
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMIT
SQLException - if a database access error occurs
public int getDatabaseMajorVersion()
throws SQLException
SQLException - if a database access error occurs
public int getDatabaseMinorVersion()
throws SQLException
SQLException - if a database access error occurs
public int getJDBCMajorVersion()
throws SQLException
SQLException - if a database access error occurs
public int getJDBCMinorVersion()
throws SQLException
SQLException - if a database access error occurs
public int getSQLStateType()
throws SQLException
SQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99.
SQLException - if a database access error occurs
public boolean locatorsUpdateCopy()
throws SQLException
true if updates are made to a copy of the LOB;
false if updates are made directly to the LOB
SQLException - if a database access error occurs
public boolean supportsStatementPooling()
throws SQLException
true is so;
false otherwise
SQLExcpetion - if a database access error occurs
SQLException
public ResultSet getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
throws SQLException
getColumns in class AbstractJdbc2DatabaseMetaDataSQLException
public ResultSet getSchemas()
throws SQLException
getSchemas in class AbstractJdbc2DatabaseMetaDataSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||