Package org.castor.ddlgen.schemaobject
Class Schema
- java.lang.Object
-
- org.castor.ddlgen.schemaobject.AbstractSchemaObject
-
- org.castor.ddlgen.schemaobject.Schema
-
- All Implemented Interfaces:
SchemaObject
- Direct Known Subclasses:
DefaultSchema
,MysqlSchema
public abstract class Schema extends AbstractSchemaObject
Abstract base class for all schemas.- Since:
- 1.1
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Le Duc Bao, Ralf Joachim
-
-
Field Summary
-
Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
HASHFACTOR
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTable(Table table)
Add given table to list of tables.Table
getTable(int index)
Get table at given index.Table
getTable(java.lang.String name)
Get table with given name.int
getTableCount()
Get number of tables.-
Methods inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
equals, getConfiguration, getName, setConfiguration, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.castor.ddlgen.schemaobject.SchemaObject
toCreateDDL, toDropDDL
-
-
-
-
Method Detail
-
addTable
public final void addTable(Table table)
Add given table to list of tables.- Parameters:
table
- Table to add to list of tables.
-
getTableCount
public final int getTableCount()
Get number of tables.- Returns:
- Number of tables.
-
getTable
public final Table getTable(int index)
Get table at given index.- Parameters:
index
- Index of table to return.- Returns:
- Table at given index.
-
getTable
public final Table getTable(java.lang.String name)
Get table with given name.- Parameters:
name
- Name of table to return.- Returns:
- Table with given name.
-
-