org.castor.ddlgen.schemaobject
Class Schema

java.lang.Object
  extended by org.castor.ddlgen.schemaobject.AbstractSchemaObject
      extended by 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: 8993 $ $Date: 2011-08-02 01:28:52 +0200 (Di, 02 Aug 2011) $
Author:
Le Duc Bao, Ralf Joachim

Field Summary
 
Fields inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
HASHFACTOR
 
Constructor Summary
Schema()
           
 
Method Summary
 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
 

Constructor Detail

Schema

public Schema()
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.


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