org.castor.ddlgen.schemaobject

Class Schema

Implemented Interfaces:
SchemaObject
Known Direct Subclasses:
DefaultSchema, MysqlSchema

public abstract class Schema
extends AbstractSchemaObject

Abstract base class for all schemas.
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Authors:
Le Duc Bao
Ralf Joachim
Since:
1.1

Field Summary

Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject

HASHFACTOR

Method Summary

void
addTable(Table table)
Add given table to list of tables.
Table
getTable(String name)
Get table with given name.
Table
getTable(int index)
Get table at given index.
int
getTableCount()
Get number of tables.

Methods inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject

equals, getConfiguration, getName, setConfiguration, setName

Method Details

addTable

public final void addTable(Table table)
Add given table to list of tables.
Parameters:
table - Table to add to list of tables.

getTable

public final Table getTable(String name)
Get table with given name.
Parameters:
name - Name of table to return.
Returns:
Table with given name.

getTable

public final Table getTable(int index)
Get table at given index.
Parameters:
index - Index of table to return.
Returns:
Table at given index.

getTableCount

public final int getTableCount()
Get number of tables.
Returns:
Number of tables.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com