schemacrawler.crawl
Class CachingCrawlHandler

java.lang.Object
  extended by schemacrawler.crawl.CachingCrawlHandler
All Implemented Interfaces:
CrawlHandler

public final class CachingCrawlHandler
extends Object
implements CrawlHandler

Caches a crawled database internally.

Author:
Sualeh Fatehi

Constructor Summary
CachingCrawlHandler()
          Creates a new caching crawl handler.
 
Method Summary
 void begin()
          Handles the begin of the crawl.
 void end()
          Handles the end of the crawl.
 Database getDatabase()
          Gets the entire database.
 void handle(ColumnDataType dataType)
          Handles information on column data types.
 void handle(ColumnMap[] weakAssociations)
          Provides information on the database schema.
 void handle(DatabaseInfo databaseInfo)
          Handles information on the database.
 void handle(JdbcDriverInfo jdbcDriverInfo)
          Handles information on the JDBC driver.
 void handle(Procedure procedure)
          Provides information on the database schema.
 void handle(SchemaCrawlerInfo schemaCrawlerInfo)
          Handles information on SchemaCrawler.
 void handle(Table table)
          Provides information on the database schema.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingCrawlHandler

public CachingCrawlHandler()
Creates a new caching crawl handler.

Method Detail

begin

public void begin()
           throws SchemaCrawlerException
Handles the begin of the crawl.

Specified by:
begin in interface CrawlHandler
Throws:
SchemaCrawlerException - On an exception
See Also:
CrawlHandler.begin()

end

public void end()
         throws SchemaCrawlerException
Handles the end of the crawl.

Specified by:
end in interface CrawlHandler
Throws:
SchemaCrawlerException - On an exception
See Also:
CrawlHandler.end()

getDatabase

public Database getDatabase()
Gets the entire database.

Returns:
Database

handle

public void handle(ColumnDataType dataType)
Handles information on column data types. This method may be called more than once, once for each schema.

Specified by:
handle in interface CrawlHandler
Parameters:
dataType - Column data type information
See Also:
CrawlHandler.handle(schemacrawler.schema.ColumnDataType)

handle

public void handle(ColumnMap[] weakAssociations)
            throws SchemaCrawlerException
Provides information on the database schema.

Specified by:
handle in interface CrawlHandler
Parameters:
weakAssociations - Table associations information
Throws:
SchemaCrawlerException - On an exception
See Also:
schemacrawler.schemacrawler.CrawlHandler#handle(schemacrawler.schema.WeakAssociations)

handle

public void handle(DatabaseInfo databaseInfo)
Handles information on the database.

Specified by:
handle in interface CrawlHandler
See Also:
CrawlHandler.handle(schemacrawler.schema.DatabaseInfo)

handle

public void handle(JdbcDriverInfo jdbcDriverInfo)
            throws SchemaCrawlerException
Handles information on the JDBC driver.

Specified by:
handle in interface CrawlHandler
Parameters:
jdbcDriverInfo - JDBC driver information
Throws:
SchemaCrawlerException - On an exception
See Also:
CrawlHandler.handle(schemacrawler.schema.JdbcDriverInfo)

handle

public void handle(Procedure procedure)
Provides information on the database schema.

Specified by:
handle in interface CrawlHandler
Parameters:
procedure - Procedure information
See Also:
CrawlHandler.handle(schemacrawler.schema.Procedure)

handle

public void handle(SchemaCrawlerInfo schemaCrawlerInfo)
            throws SchemaCrawlerException
Handles information on SchemaCrawler.

Specified by:
handle in interface CrawlHandler
Parameters:
schemaCrawlerInfo - SchemaCrawler information
Throws:
SchemaCrawlerException - On an exception
See Also:
CrawlHandler.handle(schemacrawler.schema.SchemaCrawlerInfo)

handle

public void handle(Table table)
Provides information on the database schema.

Specified by:
handle in interface CrawlHandler
Parameters:
table - Table information
See Also:
CrawlHandler.handle(schemacrawler.schema.Table)


Copyright © 2003-2009 Sualeh Fatehi. All Rights Reserved.