View Javadoc

    1   /*
    2    * joey-gen and its relative products are published under the terms
    3    * of the Apache Software License.
    4    *
    5    * Created on 2004/08/16 6:21:18
    6    */
    7   package org.asyrinx.joey.gen.command.rdb;
    8
    9   import org.asyrinx.joey.gen.command.rdb2java.standard.JavaOptions;
    10  import org.asyrinx.joey.gen.model.command.CompositeCommand;
    11
    12  /***
    13   * @author akima
    14   */
    15  public class StandardCommands extends CompositeCommand {
    16
    17      /***
    18       *
    19       */
    20      public StandardCommands() {
    21          super();
    22          initCommands();
    23      }
    24
    25      protected void initCommands() {
    26          add(new CopyAncestorOption(JavaOptions.JAVA_PACKAGE));
    27          add(new CopyAncestorOption(JavaOptions.VIEW_CATEGORY));
    28          add(new CopyAncestorOption(JavaOptions.CATEGORY));
    29          add(new MergeDatabases());
    30          add(new PrepareCaptionColumn());
    31          add(new PreparePrimaryKey());
    32          add(new ExtendsToFk());
    33          add(new PrepareColumnFk());
    34          add(new PrepareColumnIndex());
    35          add(new PrepareColumnUnique());
    36          add(new FkToIndex());
    37          add(new ExpandPatterns());
    38          add(new BasicNaming());
    39          add(new PrepareReferrers());
    40          add(new SortTablesByExtends());
    41          add(new CheckNameOfColumn());
    42          add(new CheckNameOfTable());
    43          add(new CheckNameOfIndex());
    44          add(new CheckNameOfFk());
    45          add(new CheckNameDuplication.Tables());
    46          add(new CheckNameDuplication.Columns());
    47          add(new CheckNameDuplication.Enumerations());
    48          add(new CheckNameDuplication.EnumerationEntries());
    49          add(new CheckFkColumnType());
    50          add(new CheckForeignKey());
    51          add(new CheckIndexEntry());
    52          add(new CheckPrimaryKey());
    53      }
    54  }