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/15 14:50:06
    6    */
    7   package org.asyrinx.joey.gen.model.rdb.visitor;
    8
    9   import org.asyrinx.joey.gen.model.EnumerationEntry;
    10  import org.asyrinx.joey.gen.model.rdb.Column;
    11  import org.asyrinx.joey.gen.model.rdb.Database;
    12  import org.asyrinx.joey.gen.model.rdb.Databases;
    13  import org.asyrinx.joey.gen.model.rdb.PrimaryKey;
    14  import org.asyrinx.joey.gen.model.rdb.RdbEnumeration;
    15  import org.asyrinx.joey.gen.model.rdb.ForeignKey;
    16  import org.asyrinx.joey.gen.model.rdb.ForeignKeyEntry;
    17  import org.asyrinx.joey.gen.model.rdb.Index;
    18  import org.asyrinx.joey.gen.model.rdb.IndexEntry;
    19  import org.asyrinx.joey.gen.model.rdb.RdbVisitor;
    20  import org.asyrinx.joey.gen.model.rdb.Table;
    21  import org.asyrinx.joey.gen.model.rdb.TablePattern;
    22  import org.asyrinx.joey.gen.model.rdb.TablePatternParam;
    23  import org.asyrinx.joey.gen.model.rdb.Unique;
    24
    25  /***
    26   * @author akima
    27   */
    28  public class RdbVisitorWrapper implements RdbVisitor {
    29
    30      /***
    31       *
    32       */
    33      public RdbVisitorWrapper(RdbVisitor rdbVisitor) {
    34          super();
    35          this.rdbVisitor = rdbVisitor;
    36      }
    37
    38      protected final RdbVisitor rdbVisitor;
    39
    40      /***
    41       * @param column
    42       */
    43      public void visit(Column column) {
    44          rdbVisitor.visit(column);
    45      }
    46
    47      /***
    48       * @param database
    49       */
    50      public void visit(Database database) {
    51          rdbVisitor.visit(database);
    52      }
    53
    54      /***
    55       * @param databases
    56       */
    57      public void visit(Databases databases) {
    58          rdbVisitor.visit(databases);
    59      }
    60
    61      /***
    62       * @param enumeration
    63       */
    64      public void visit(RdbEnumeration enumeration) {
    65          rdbVisitor.visit(enumeration);
    66      }
    67
    68      /***
    69       * @param enumerationEntry
    70       */
    71      public void visit(EnumerationEntry enumerationEntry) {
    72          rdbVisitor.visit(enumerationEntry);
    73      }
    74
    75      /***
    76       * @param foreignKey
    77       */
    78      public void visit(ForeignKey foreignKey) {
    79          rdbVisitor.visit(foreignKey);
    80      }
    81
    82      /***
    83       * @param foreignKeyEntry
    84       */
    85      public void visit(ForeignKeyEntry foreignKeyEntry) {
    86          rdbVisitor.visit(foreignKeyEntry);
    87      }
    88
    89      /***
    90       * @param index
    91       */
    92      public void visit(Index index) {
    93          rdbVisitor.visit(index);
    94      }
    95
    96      /***
    97       * @param indexEntry
    98       */
    99      public void visit(IndexEntry indexEntry) {
    100         rdbVisitor.visit(indexEntry);
    101     }
    102
    103     /*
    104      * (non-Javadoc)
    105      *
    106      * @see org.asyrinx.joey.gen.model.rdb.RdbVisitor#visit(org.asyrinx.joey.gen.model.rdb.PrimaryKey)
    107      */
    108     public void visit(PrimaryKey primaryKey) {
    109         rdbVisitor.visit(primaryKey);
    110     }
    111
    112     /***
    113      * @param table
    114      */
    115     public void visit(Table table) {
    116         rdbVisitor.visit(table);
    117     }
    118
    119     /*
    120      * (non-Javadoc)
    121      *
    122      * @see org.asyrinx.joey.gen.model.rdb.RdbVisitor#visit(org.asyrinx.joey.gen.model.rdb.TablePattern)
    123      */
    124     public void visit(TablePattern tablePattern) {
    125         rdbVisitor.visit(tablePattern);
    126     }
    127
    128     /*
    129      * (non-Javadoc)
    130      *
    131      * @see org.asyrinx.joey.gen.model.rdb.RdbVisitor#visit(org.asyrinx.joey.gen.model.rdb.TablePatternParam)
    132      */
    133     public void visit(TablePatternParam tablePatternParam) {
    134         rdbVisitor.visit(tablePatternParam);
    135     }
    136
    137     /*
    138      * (non-Javadoc)
    139      *
    140      * @see org.asyrinx.joey.gen.model.rdb.RdbVisitor#visit(org.asyrinx.joey.gen.model.rdb.Unique)
    141      */
    142     public void visit(Unique unique) {
    143         rdbVisitor.visit(unique);
    144     }
    145
    146 }