pl.kernelpanic.dbmonster
Class ProgressMonitorAdapter

java.lang.Object
  extended bypl.kernelpanic.dbmonster.ProgressMonitorAdapter
All Implemented Interfaces:
ProgressMonitor

public class ProgressMonitorAdapter
extends Object
implements ProgressMonitor

Version:
$Revision: 1.1 $ $Date: 2007/06/21 08:38:14 $
Author:
Piotr Maj <ant@kernelpanic.pl>

Field Summary
protected  int rowsCount
           
protected  String schemaName
           
protected  int schemasCount
           
protected  String tableName
           
protected  int tablesCount
           
 
Constructor Summary
ProgressMonitorAdapter()
           
 
Method Summary
 void reset()
          Resets all settings.
 void resetRows()
          Reset rows.
 void resetTables()
          Resets tables.
 void rowComplete()
          Called when row is complete.
 void schemaComplete()
          Called when schema is completed.
 void setRowsCount(int count)
          Sets the number of rows.
 void setSchemaCount(int count)
          Sets the schema count.
 void setSchemaName(String name)
          Sets the name of the schema being generated.
 void setTableCount(int count)
          Sets the table count.
 void setTableName(String name)
          Sets the name of the table being generated.
 void setUp()
          Called on startup.
 void tableComplete()
          Called when table is completed.
 void tearDown()
          Called after the work is over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemasCount

protected int schemasCount

tablesCount

protected int tablesCount

rowsCount

protected int rowsCount

schemaName

protected String schemaName

tableName

protected String tableName
Constructor Detail

ProgressMonitorAdapter

public ProgressMonitorAdapter()
Method Detail

setUp

public void setUp()
Description copied from interface: ProgressMonitor
Called on startup.

Specified by:
setUp in interface ProgressMonitor

tearDown

public void tearDown()
Description copied from interface: ProgressMonitor
Called after the work is over.

Specified by:
tearDown in interface ProgressMonitor

reset

public void reset()
Description copied from interface: ProgressMonitor
Resets all settings.

Specified by:
reset in interface ProgressMonitor

resetTables

public void resetTables()
Description copied from interface: ProgressMonitor
Resets tables.

Specified by:
resetTables in interface ProgressMonitor

resetRows

public void resetRows()
Description copied from interface: ProgressMonitor
Reset rows. Called before next table is processed.

Specified by:
resetRows in interface ProgressMonitor

setSchemaCount

public void setSchemaCount(int count)
Description copied from interface: ProgressMonitor
Sets the schema count.

Specified by:
setSchemaCount in interface ProgressMonitor
Parameters:
count - number of schemas.

setTableCount

public void setTableCount(int count)
Description copied from interface: ProgressMonitor
Sets the table count.

Specified by:
setTableCount in interface ProgressMonitor
Parameters:
count - number of tables.

setRowsCount

public void setRowsCount(int count)
Description copied from interface: ProgressMonitor
Sets the number of rows.

Specified by:
setRowsCount in interface ProgressMonitor
Parameters:
count - number of rows

schemaComplete

public void schemaComplete()
Description copied from interface: ProgressMonitor
Called when schema is completed.

Specified by:
schemaComplete in interface ProgressMonitor

tableComplete

public void tableComplete()
Description copied from interface: ProgressMonitor
Called when table is completed.

Specified by:
tableComplete in interface ProgressMonitor

rowComplete

public void rowComplete()
Description copied from interface: ProgressMonitor
Called when row is complete.

Specified by:
rowComplete in interface ProgressMonitor

setSchemaName

public void setSchemaName(String name)
Description copied from interface: ProgressMonitor
Sets the name of the schema being generated.

Specified by:
setSchemaName in interface ProgressMonitor
Parameters:
name - schema name

setTableName

public void setTableName(String name)
Description copied from interface: ProgressMonitor
Sets the name of the table being generated.

Specified by:
setTableName in interface ProgressMonitor
Parameters:
name - table name


Copyright © 2003-2005 .:. kernelpanic.pl .:.. All Rights Reserved.