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
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 -
Method Summary
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
-
Constructor Details
-
Schema
public Schema()
-
-
Method Details
-
addTable
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
Get table at given index.- Parameters:
index
- Index of table to return.- Returns:
- Table at given index.
-
getTable
Get table with given name.- Parameters:
name
- Name of table to return.- Returns:
- Table with given name.
-