public class CaseInsensitiveColumnNameMatcher extends Object implements ColumnNameMatcher
Example: column names firstname or FIRSTNAME would match java name firstName.
| Constructor and Description |
|---|
CaseInsensitiveColumnNameMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
columnNameMatches(String columnName,
String javaName)
Returns whether the column name fits the given Java identifier name.
|
boolean |
columnNameStartsWith(String columnName,
String prefix)
Return whether the column name starts with the given prefix, according to the matching strategy of this
ColumnNameMatcher. |
String |
toString() |
public boolean columnNameMatches(String columnName, String javaName)
ColumnNameMatchercolumnNameMatches in interface ColumnNameMatchercolumnName - the SQL column namejavaName - the Java property, field, or parameter namepublic boolean columnNameStartsWith(String columnName, String prefix)
ColumnNameMatcherColumnNameMatcher. This method is used by reflective mappers to short-circuit nested mapping when no
column names begin with the nested prefix.
By default, this method returns columnName.startWith(prefix). Third party implementations should override
this method to match prefixes by the same criteria as ColumnNameMatcher.columnNameMatches(String, String).columnNameStartsWith in interface ColumnNameMatchercolumnName - the column name to testprefix - the prefix to test forCopyright © 2019. All rights reserved.