Interface ForeignKeyResolver

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 ForeignKeyResolver
Resolves the column name for a foreign key component.
  • Field Details

    • DEFAULT

      static final ForeignKeyResolver DEFAULT
      The default foreign key resolver used by the ORM template.
  • Method Details

    • camelCaseToSnakeCase

      static ForeignKeyResolver camelCaseToSnakeCase()
      Resolves the column name for a record component using camel case to snake case conversion.
      Returns:
      the column name resolver.
    • toUpperCase

      static ForeignKeyResolver toUpperCase(@Nonnull ForeignKeyResolver resolver)
      Resolves the column name for a record component by converting the column name to upper case.
      Parameters:
      resolver - the column name resolver to wrap.
      Returns:
      the column name resolver.
    • resolveColumnName

      String resolveColumnName(@Nonnull RecordField field, @Nonnull RecordType type)
      Resolves the column name for a foreign key record type.
      Parameters:
      field - the record component
      type - the record type to resolve the column name for.
      Returns:
      the column name.