com.cyclops.dbdigger.schema
Class DefaultDatabase

java.lang.Object
  extended bycom.cyclops.dbdigger.schema.DefaultDatabase
All Implemented Interfaces:
Database

public class DefaultDatabase
extends Object
implements Database

Since:
2003-5-21 23:17:54
Author:
joel guo

Field Summary
 
Fields inherited from interface com.cyclops.dbdigger.schema.Database
EMPTY_ARRAY
 
Constructor Summary
DefaultDatabase()
           
 
Method Summary
 void addTable(Table table)
          Method addTable() in class DefaultDatabase
 String getDescription()
          Override method getDescription() of super class
 String getName()
          Override method getName() in super class
 Schema getSchema()
          Override method getSchema() in super class
 Table getTable(String tableName)
          Override method getTable() in super class
 Table[] getTables()
          Override method getTables() in super class
 void setDescription(String string)
          Method setDescription()
 void setName(String string)
          Method setName() in class DefaultDatabase
 void setSchema(Schema aschema)
          Method setSchema() in class DefaultDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDatabase

public DefaultDatabase()
Method Detail

addTable

public void addTable(Table table)
Method addTable() in class DefaultDatabase

Parameters:
table - Table object to add

getDescription

public String getDescription()
Override method getDescription() of super class

Specified by:
getDescription in interface Database
Returns:
Description of this database
See Also:
com.cyclops.digger.schema.Database#getDescription()

getName

public String getName()
Override method getName() in super class

Specified by:
getName in interface Database
Returns:
Name of this database
See Also:
com.cyclops.digger.schema.Database#getName()

getSchema

public Schema getSchema()
Override method getSchema() in super class

Specified by:
getSchema in interface Database
Returns:
Schema this database belong to
See Also:
com.cyclops.digger.schema.Database#getSchema()

getTable

public Table getTable(String tableName)
Override method getTable() in super class

Specified by:
getTable in interface Database
Parameters:
tableName - Name of table to be find
Returns:
Find Table object by its name, null if not found
See Also:
com.cyclops.digger.schema.Database#getTable(java.lang.String)

getTables

public Table[] getTables()
Override method getTables() in super class

Specified by:
getTables in interface Database
Returns:
All table objects in this database
See Also:
com.cyclops.digger.schema.Database#getTables()

setDescription

public void setDescription(String string)
Method setDescription()

Parameters:
string - Description of this database

setName

public void setName(String string)
Method setName() in class DefaultDatabase

Parameters:
string - Name of this database

setSchema

public void setSchema(Schema aschema)
Method setSchema() in class DefaultDatabase

Parameters:
aschema - Schema of this database


Copyright © 2003 Cyclops Group. All Rights Reserved.