org.castor.ddlgen.schemaobject
Class DefaultTable

java.lang.Object
  extended by org.castor.ddlgen.schemaobject.AbstractSchemaObject
      extended by org.castor.ddlgen.schemaobject.Table
          extended by org.castor.ddlgen.schemaobject.DefaultTable
All Implemented Interfaces:
SchemaObject

public final class DefaultTable
extends Table

Table contains fields, foreignkeys, indexes and table's options.

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
DefaultTable()
           
 
Method Summary
 void toCreateDDL(DDLWriter writer)
          Build create script for the schema object.
 void toDropDDL(DDLWriter writer)
          Build drop script for the schema object.
 
Methods inherited from class org.castor.ddlgen.schemaobject.Table
addField, addForeignKey, addIndex, equals, fields, getField, getField, getFieldCount, getForeignKey, getForeignKeyCount, getIndex, getIndexCount, getKeyGenerator, getPrimaryKey, getSchema, hashCode, merge, setKeyGenerator, setPrimaryKey, setSchema
 
Methods inherited from class org.castor.ddlgen.schemaobject.AbstractSchemaObject
equals, getConfiguration, getName, setConfiguration, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTable

public DefaultTable()
Method Detail

toCreateDDL

public void toCreateDDL(DDLWriter writer)
                 throws GeneratorException
Build create script for the schema object.

Parameters:
writer - DDLWriter to write schema objects to.
Throws:
GeneratorException - If generation of the script failed or is not supported.

toDropDDL

public void toDropDDL(DDLWriter writer)
Build drop script for the schema object.

Parameters:
writer - DDLWriter to write schema objects to.


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