Interface ColumnToMethodMatchingStrategy
- All Known Implementing Classes:
DefaultColumnToMethodMatchingStrategy
public interface ColumnToMethodMatchingStrategy
Strategy to match column names to method names.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the method is a getter.booleanChecks if the method is a setter.normalizeColumnName(String columnName) Normalizes column name to match method name.normalizeMethodName(String methodName) Normalizes method name to match column name.
-
Method Details
-
normalizeMethodName
Normalizes method name to match column name.- Parameters:
methodName- original method name- Returns:
- normalized method name
-
isSetter
Checks if the method is a setter.- Parameters:
methodName- original (not normalized) method name- Returns:
- true if the method is a setter
-
isGetter
Checks if the method is a getter.- Parameters:
methodName- original (not normalized) method name- Returns:
- true if the method is a getter
-
normalizeColumnName
Normalizes column name to match method name.- Parameters:
columnName- original column name- Returns:
- normalized column name
-