Module storm

Interface TableAliasResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TableAliasResolver
Resolves the alias for a table.
  • Field Details

  • Method Details

    • camelCaseAbbreviation

      static TableAliasResolver camelCaseAbbreviation()
      Resolves the alias for a table using camel case abbreviation.
      Returns:
      the alias resolver.
    • resolveTableAlias

      String resolveTableAlias(@Nonnull Class<? extends Record> type, int counter) throws SqlTemplateException
      Resolves the alias for a table.
      Parameters:
      type - the record type.
      counter - counter used track the number of attempts.
      Returns:
      the alias.
      Throws:
      SqlTemplateException