- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Resolves the alias for a table.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TableAliasResolverThe default table alias resolver. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableAliasResolverResolves the alias for a table using camel case abbreviation.resolveTableAlias(Class<? extends Record> type, int counter) Resolves the alias for a table.
-
Field Details
-
DEFAULT
The default table alias resolver.
-
-
Method Details
-
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
-