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 FkToIndex());
35          add(new BasicNaming());
36          add(new PrepareReferrers());
37          add(new SortTablesByExtends());
38          add(new CheckNameOfColumn());
39          add(new CheckNameOfTable());
40          add(new CheckNameOfIndex());
41          add(new CheckNameOfFk());
42          add(new CheckNameDuplication.Tables());
43          add(new CheckNameDuplication.Columns());
44          add(new CheckNameDuplication.Enumerations());
45          add(new CheckNameDuplication.EnumerationEntries());
46          add(new CheckFkColumnType());
47          add(new CheckForeignKey());
48          add(new CheckIndexEntry());
49      }
50  }