@FunctionalInterface public static interface JavaTypeMap.Rule
Modifier and Type | Method and Description |
---|---|
Optional<Class<?>> |
findJdbcType(Map<String,Class<?>> sqlTypeMapping,
ColumnMetaData metadata)
Returns the java type that should be used to represent the
column with the specified metadata.
|
Optional<Class<?>> findJdbcType(Map<String,Class<?>> sqlTypeMapping, ColumnMetaData metadata)
If this rule does not apply to the specified column, an empty
Optional
is returned. The rule engine will continue
to look at rules until one that returns something other than
empty is found. If no valid rule can be found, the standard
mapping is used.
The supplied map is read-only.
sqlTypeMapping
- read-only map of existing mappingsmetadata
- metadata about the particular columnCopyright © 2018 Speedment, Inc.. All rights reserved.