Package org.castor.ddlgen.engine.mysql
Class MysqlTable
- java.lang.Object
-
- org.castor.ddlgen.schemaobject.AbstractSchemaObject
-
- org.castor.ddlgen.schemaobject.Table
-
- org.castor.ddlgen.engine.mysql.MysqlTable
-
- All Implemented Interfaces:
SchemaObject
public final class MysqlTable extends Table
MySQL table.- 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 MysqlTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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.
-
-