org.plasma.text.ddl
Class MySQLFactory

java.lang.Object
  extended by org.plasma.text.ddl.DefaultDDLFactory
      extended by org.plasma.text.ddl.MySQLFactory
All Implemented Interfaces:
DDLFactory

public class MySQLFactory
extends DefaultDDLFactory
implements DDLFactory


Constructor Summary
MySQLFactory()
           
 
Method Summary
 String createCheckConstraint(Schema schema, Table table, Check check)
           
 String createForeignKeyConstraint(Schema schema, Table table, Fk fk, Table toTable)
           
 String createSequence(Schema schema, Table table)
           
 String createTable(Schema schema, Table table)
           
 String createUniqueConstraint(Schema schema, Table table, Unique unique)
           
 String dropCheckConstraint(Schema schema, Table table, Check check)
           
 String dropForeignKeyConstraint(Schema schema, Table table, Fk fk, Table toTable)
           
 String dropIndex(Schema schema, Table table, Index index)
           
 String dropSequence(Schema schema, Table table)
           
 String dropUniqueConstraint(Schema schema, Table table, Unique unique)
           
 String enableForeignKeyConstraint(Schema schema, Table table, Fk fk, Table toTable, boolean enable)
           
 String enableUniqueConstraint(Schema schema, Table table, Unique unique, boolean enable)
           
 String getType(Table table, Column column)
           
 
Methods inherited from class org.plasma.text.ddl.DefaultDDLFactory
createIndex, dropTable, enableCheckConstraint, isPk, truncateTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.plasma.text.ddl.DDLFactory
createIndex, dropTable, enableCheckConstraint, truncateTable
 

Constructor Detail

MySQLFactory

public MySQLFactory()
Method Detail

getType

public String getType(Table table,
                      Column column)
Specified by:
getType in interface DDLFactory
Specified by:
getType in class DefaultDDLFactory

createTable

public String createTable(Schema schema,
                          Table table)
Specified by:
createTable in interface DDLFactory
Overrides:
createTable in class DefaultDDLFactory

createForeignKeyConstraint

public String createForeignKeyConstraint(Schema schema,
                                         Table table,
                                         Fk fk,
                                         Table toTable)
Specified by:
createForeignKeyConstraint in interface DDLFactory
Overrides:
createForeignKeyConstraint in class DefaultDDLFactory

dropForeignKeyConstraint

public String dropForeignKeyConstraint(Schema schema,
                                       Table table,
                                       Fk fk,
                                       Table toTable)
Specified by:
dropForeignKeyConstraint in interface DDLFactory
Overrides:
dropForeignKeyConstraint in class DefaultDDLFactory

enableForeignKeyConstraint

public String enableForeignKeyConstraint(Schema schema,
                                         Table table,
                                         Fk fk,
                                         Table toTable,
                                         boolean enable)
Specified by:
enableForeignKeyConstraint in interface DDLFactory
Overrides:
enableForeignKeyConstraint in class DefaultDDLFactory

createUniqueConstraint

public String createUniqueConstraint(Schema schema,
                                     Table table,
                                     Unique unique)
Specified by:
createUniqueConstraint in interface DDLFactory
Overrides:
createUniqueConstraint in class DefaultDDLFactory

dropUniqueConstraint

public String dropUniqueConstraint(Schema schema,
                                   Table table,
                                   Unique unique)
Specified by:
dropUniqueConstraint in interface DDLFactory
Overrides:
dropUniqueConstraint in class DefaultDDLFactory

dropIndex

public String dropIndex(Schema schema,
                        Table table,
                        Index index)
Specified by:
dropIndex in interface DDLFactory
Overrides:
dropIndex in class DefaultDDLFactory

createSequence

public String createSequence(Schema schema,
                             Table table)
Specified by:
createSequence in interface DDLFactory
Overrides:
createSequence in class DefaultDDLFactory

dropSequence

public String dropSequence(Schema schema,
                           Table table)
Specified by:
dropSequence in interface DDLFactory
Overrides:
dropSequence in class DefaultDDLFactory

createCheckConstraint

public String createCheckConstraint(Schema schema,
                                    Table table,
                                    Check check)
Specified by:
createCheckConstraint in interface DDLFactory
Overrides:
createCheckConstraint in class DefaultDDLFactory

dropCheckConstraint

public String dropCheckConstraint(Schema schema,
                                  Table table,
                                  Check check)
Specified by:
dropCheckConstraint in interface DDLFactory
Overrides:
dropCheckConstraint in class DefaultDDLFactory

enableUniqueConstraint

public String enableUniqueConstraint(Schema schema,
                                     Table table,
                                     Unique unique,
                                     boolean enable)
Specified by:
enableUniqueConstraint in interface DDLFactory
Overrides:
enableUniqueConstraint in class DefaultDDLFactory


Copyright © 2014. All rights reserved.