org.plasma.text.ddl
Interface DDLFactory

All Known Implementing Classes:
MySQLFactory, OracleFactory

public interface DDLFactory


Method Summary
 String createCheckConstraint(Schema schema, Table table, Check check)
           
 String createForeignKeyConstraint(Schema schema, Table table, Fk fk, Table toTable)
           
 String createIndex(Schema schema, Table table, Index index)
           
 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 dropTable(Schema schema, Table table)
           
 String dropUniqueConstraint(Schema schema, Table table, Unique unique)
           
 String enableCheckConstraint(Schema schema, Table table, Check check, boolean enable)
           
 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)
           
 String truncateTable(Schema schema, Table table)
           
 

Method Detail

getType

String getType(Table table,
               Column column)

createTable

String createTable(Schema schema,
                   Table table)

dropTable

String dropTable(Schema schema,
                 Table table)

truncateTable

String truncateTable(Schema schema,
                     Table table)

createSequence

String createSequence(Schema schema,
                      Table table)

dropSequence

String dropSequence(Schema schema,
                    Table table)

createIndex

String createIndex(Schema schema,
                   Table table,
                   Index index)

dropIndex

String dropIndex(Schema schema,
                 Table table,
                 Index index)

createCheckConstraint

String createCheckConstraint(Schema schema,
                             Table table,
                             Check check)

dropCheckConstraint

String dropCheckConstraint(Schema schema,
                           Table table,
                           Check check)

enableCheckConstraint

String enableCheckConstraint(Schema schema,
                             Table table,
                             Check check,
                             boolean enable)

createUniqueConstraint

String createUniqueConstraint(Schema schema,
                              Table table,
                              Unique unique)

dropUniqueConstraint

String dropUniqueConstraint(Schema schema,
                            Table table,
                            Unique unique)

enableUniqueConstraint

String enableUniqueConstraint(Schema schema,
                              Table table,
                              Unique unique,
                              boolean enable)

createForeignKeyConstraint

String createForeignKeyConstraint(Schema schema,
                                  Table table,
                                  Fk fk,
                                  Table toTable)

dropForeignKeyConstraint

String dropForeignKeyConstraint(Schema schema,
                                Table table,
                                Fk fk,
                                Table toTable)

enableForeignKeyConstraint

String enableForeignKeyConstraint(Schema schema,
                                  Table table,
                                  Fk fk,
                                  Table toTable,
                                  boolean enable)


Copyright © 2013. All rights reserved.