iiitToolkit 1.0

de.iiit.jdbc
Class JdbcDatabaseMetaData

java.lang.Object
  |
  +--de.iiit.jdbc.JdbcDatabaseMetaData

public class JdbcDatabaseMetaData
extends Object

Encapsulates an java.sql.DatabaseMetaData

Version:
$Revision: 1.6 $ $Date: 2003/01/01 21:03:49 $

Constructor Summary
protected JdbcDatabaseMetaData(JdbcConnection connection, DatabaseMetaData metaData)
          Creates a new instance of JdbcDatabaseMetaData
 
Method Summary
 void close()
          Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
protected  void finalize()
          Release the JdbcConnection hold by this object explicitly.
 JdbcResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
          Retrieves a description of the tables available in the given catalog.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDatabaseMetaData

protected JdbcDatabaseMetaData(JdbcConnection connection,
                               DatabaseMetaData metaData)
Creates a new instance of JdbcDatabaseMetaData

Parameters:
connection - the connection that was used to create the meta data object.
metaData - the encapsulated DataBaseMetaData
Method Detail

getTables

public JdbcResultSet getTables(String catalog,
                               String schemaPattern,
                               String tableNamePattern,
                               String[] types)
                        throws JdbcException
Retrieves a description of the tables available in the given catalog. Only table descriptions matching the catalog, schema, table name and type criteria are returned. They are ordered by TABLE_TYPE, TABLE_SCHEM and TABLE_NAME.

Parameters:
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 search
schemaPattern - 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 search
tableNamePattern - a table name pattern; must match the table name as it is stored in the database
types - a list of table types to include; null returns all types
Returns:
each row is a table description
Throws:
JdbcException - if a database access error occurs

close

public void close()
Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.


finalize

protected void finalize()
                 throws Throwable
Release the JdbcConnection hold by this object explicitly.

Overrides:
finalize in class Object
Throws:
Throwable - Any throwable thrown during the excution.

iiitToolkit 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement