public class ReflectionMappers extends Object implements JdbiConfig<ReflectionMappers>
| Constructor and Description |
|---|
ReflectionMappers()
Create a default configuration that attempts case insensitive and
snake_case matching for names.
|
| Modifier and Type | Method and Description |
|---|---|
ReflectionMappers |
createCopy()
Returns a copy of this configuration object.
|
List<ColumnNameMatcher> |
getColumnNameMatchers() |
boolean |
isStrictMatching() |
ReflectionMappers |
setColumnNameMatchers(List<ColumnNameMatcher> columnNameMatchers)
Replace all column name matchers with the given list.
|
ReflectionMappers |
setStrictMatching(boolean strictMatching)
Throw an IllegalArgumentException if a the set of fields doesn't
match to columns exactly.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegistrypublic ReflectionMappers()
public ReflectionMappers createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<ReflectionMappers>public List<ColumnNameMatcher> getColumnNameMatchers()
public boolean isStrictMatching()
public ReflectionMappers setColumnNameMatchers(List<ColumnNameMatcher> columnNameMatchers)
columnNameMatchers - the column name matchers to usepublic ReflectionMappers setStrictMatching(boolean strictMatching)
strictMatching - whether to enable strict matchingCopyright © 2019. All rights reserved.