Exemplo n.º 1
0
 /**
  * Retrieves the class name of the value object associated to given table name.
  *
  * @param tableName the table name.
  * @param englishGrammarUtils the {@link EnglishGrammarUtils} instance.
  * @param stringUtils the {@link StringUtils} instance.
  * @return the class name.
  */
 protected String getVoClassName(
     @NotNull final String tableName,
     @NotNull final EnglishGrammarUtils englishGrammarUtils,
     @NotNull final StringUtils stringUtils) {
   return stringUtils.capitalize(
       englishGrammarUtils.getSingular(tableName.toLowerCase(Locale.US)), '_');
 }
 /**
  * Retrieves given template's file name.
  *
  * @param tableName the table name.
  * @return such name.
  */
 @NotNull
 public String retrieveTemplateFileName(@NotNull final String tableName) {
   return retrieveTemplateFileName(
       tableName,
       StringUtils.getInstance(),
       EnglishGrammarUtils.getInstance(),
       ValueObjectUtils.getInstance());
 }
Exemplo n.º 3
0
 /**
  * Retrieves the class name of the value object associated to given table name.
  *
  * @param tableName the table name.
  * @return the class name.
  */
 public String getVoClassName(@NotNull final String tableName) {
   return getVoClassName(tableName, EnglishGrammarUtils.getInstance(), StringUtils.getInstance());
 }