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/12/12 4:09:52
    6    */
    7   package org.asyrinx.joey.gen.command.rdb2java.standard;
    8
    9   import org.asyrinx.joey.gen.model.java.AppDomain;
    10  import org.asyrinx.joey.gen.model.rdb.Databases;
    11
    12  /***
    13   * @author takeshi
    14   */
    15  public class CacheRdb2JavaBuilder implements Rdb2JavaBuilder {
    16
    17      /***
    18       *
    19       */
    20      public CacheRdb2JavaBuilder(Rdb2JavaBuilder impl) {
    21          super();
    22          this.impl = impl;
    23      }
    24
    25      private final Rdb2JavaBuilder impl;
    26
    27      private AppDomain result = null;
    28
    29      /*
    30       * (non-Javadoc)
    31       *
    32       * @see org.asyrinx.joey.gen.command.rdb2java.standard.Rdb2JavaBuilder#execute(org.asyrinx.joey.gen.model.rdb.Databases)
    33       */
    34      public AppDomain execute(Databases databases) {
    35          if (result != null)
    36              return result;
    37          result = impl.execute(databases);
    38          return result;
    39      }
    40
    41  }