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/11/25 0:04:12
6    */
7   package org.asyrinx.joey.gen.command.rdb;
8   
9   import org.asyrinx.joey.gen.model.rdb.ForeignKey;
10  
11  /***
12   * @author takeshi
13   */
14  public class PrepareReferrers extends RdbCommand {
15  
16      /***
17       *  
18       */
19      public PrepareReferrers() {
20          super();
21      }
22  
23      /*
24       * (non-Javadoc)
25       * 
26       * @see org.asyrinx.joey.gen.command.rdb.RdbCommand#visit(org.asyrinx.joey.gen.model.rdb.ForeignKey)
27       */
28      public void visit(ForeignKey foreignKey) {
29          if (foreignKey.getForeignTable() != null)
30              foreignKey.getForeignTable().getReferrers().add(foreignKey);
31      }
32  
33  }