Interface ColumnToMethodMatchingStrategy

All Known Implementing Classes:
DefaultColumnToMethodMatchingStrategy

public interface ColumnToMethodMatchingStrategy
Strategy to match column names to method names.
  • Method Details

    • normalizeMethodName

      String normalizeMethodName(String methodName)
      Normalizes method name to match column name.
      Parameters:
      methodName - original method name
      Returns:
      normalized method name
    • isSetter

      boolean isSetter(String methodName)
      Checks if the method is a setter.
      Parameters:
      methodName - original (not normalized) method name
      Returns:
      true if the method is a setter
    • isGetter

      boolean isGetter(String methodName)
      Checks if the method is a getter.
      Parameters:
      methodName - original (not normalized) method name
      Returns:
      true if the method is a getter
    • normalizeColumnName

      String normalizeColumnName(String columnName)
      Normalizes column name to match method name.
      Parameters:
      columnName - original column name
      Returns:
      normalized column name