|
|||||||||
| 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 | |
|---|---|
java.sql.ResultSet |
getAttributes(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String typeNamePattern,
java.lang.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. |
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. |
int |
getSQLStateType()
Indicates whether the SQLSTATEs returned by SQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99. |
java.sql.ResultSet |
getSuperTables(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern)
Retrieves a description of the table hierarchies defined in a particular schema in this database. |
java.sql.ResultSet |
getSuperTypes(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.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 java.sql.SQLException
true if savepoints are supported;
false otherwise
java.sql.SQLException - if a database access error occurs
public boolean supportsNamedParameters()
throws java.sql.SQLException
true if named parameters are supported;
false otherwise
java.sql.SQLException - if a database access error occurs
public boolean supportsMultipleOpenResults()
throws java.sql.SQLException
ResultSet objects
returned from a CallableStatement object
simultaneously.
true if a CallableStatement object
can return multiple ResultSet objects
simultaneously; false otherwise
java.sql.SQLException - if a datanase access error occurs
public boolean supportsGetGeneratedKeys()
throws java.sql.SQLException
true if auto-generated keys can be retrieved
after a statement has executed; false otherwise
java.sql.SQLException - if a database access error occurs
public java.sql.ResultSet getSuperTypes(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String typeNamePattern)
throws java.sql.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
java.sql.SQLException - if a database access error occurs
public java.sql.ResultSet getSuperTables(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern)
throws java.sql.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
java.sql.SQLException - if a database access error occurs
public java.sql.ResultSet getAttributes(java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String typeNamePattern,
java.lang.String attributeNamePattern)
throws java.sql.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
java.sql.SQLException - if a database access error occurs
public boolean supportsResultSetHoldability(int holdability)
throws java.sql.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:
java.sql.SQLException - if a database access error occurs- Since:
- 1.4
- See Also:
Connection
public int getResultSetHoldability()
throws java.sql.SQLException
ResultSet
object.
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMIT
java.sql.SQLException - if a database access error occurs
public int getDatabaseMajorVersion()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public int getDatabaseMinorVersion()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public int getJDBCMajorVersion()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public int getJDBCMinorVersion()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public int getSQLStateType()
throws java.sql.SQLException
SQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99.
java.sql.SQLException - if a database access error occurs
public boolean locatorsUpdateCopy()
throws java.sql.SQLException
true if updates are made to a copy of the LOB;
false if updates are made directly to the LOB
java.sql.SQLException - if a database access error occurs
public boolean supportsStatementPooling()
throws java.sql.SQLException
true is so;
false otherwise
SQLExcpetion - if a database access error occurs
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||