Class SnakeCaseColumnNameMatcher
java.lang.Object
org.jdbi.v3.core.mapper.reflect.AbstractSeparatorCharColumnNameMatcher
org.jdbi.v3.core.mapper.reflect.SnakeCaseColumnNameMatcher
- All Implemented Interfaces:
ColumnNameMatcher
Matches snake case column names to java camel case names, ignoring case. This matcher is prefix aware and will
try multiple strategies to match a case name to a java name. Java names can be prefixed and separated with "."
foo_bar_baz can be mapped to fooBarBaz, foo.barBaz or foo.bar.baz
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSeparatorCharColumnNameMatcher
columnNameMatches, columnNameStartsWithModifier and TypeMethodDescriptionbooleancolumnNameMatches(String columnName, String propertyName) Returns whether the column name fits the given Java identifier name.booleancolumnNameStartsWith(String columnName, String prefix) Return whether the column name starts with the given prefix, according to the matching strategy of thisColumnNameMatcher.
-
Constructor Details
-
SnakeCaseColumnNameMatcher
public SnakeCaseColumnNameMatcher()
-
-
Method Details
-
toString
-