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/14 20:58:18
    6    */
    7   package org.asyrinx.joey.gen.command.rdb2java;
    8
    9   import org.asyrinx.joey.gen.model.rdb.Column;
    10  import org.asyrinx.joey.gen.model.rdb.Databases;
    11  import org.asyrinx.joey.gen.model.rdb.RdbEnumeration;
    12  import org.asyrinx.joey.gen.model.rdb.Table;
    13
    14  /***
    15   * @author akima
    16   */
    17  public interface NamingStrategy {
    18      /***
    19       *
    20       * @param databases
    21       * @return
    22       */
    23      String toAppDomainName(Databases databases);
    24
    25      /***
    26       *
    27       * @param enumeration
    28       * @return
    29       */
    30      String toEnumerationName(RdbEnumeration enumeration);
    31
    32      /***
    33       *
    34       * @param table
    35       * @return
    36       */
    37      String toClassName(Table table);
    38
    39      /***
    40       * @param column
    41       * @return
    42       */
    43      String toPropertyName(Column column);
    44
    45      /***
    46       * @param name
    47       * @return
    48       */
    49      String toEnumPropertyName(String name);
    50
    51  }