public interface JavaTypeMap
| Modifier and Type | Interface and Description |
|---|---|
static interface |
JavaTypeMap.Rule
A rule that helps defining how the metadata for a column
should apply to the java mapping.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(JavaTypeMap.Rule rule)
Adds the specified rule to the rule engine.
|
static JavaTypeMap |
create()
Creates a new
JavaTypeMap using the default
implementation. |
Class<?> |
findJdbcType(Map<String,Class<?>> sqlTypeMapping,
ColumnMetaData metadata)
Looks through all the rules that has been installed into this
rule engine to try and find one that returns something other
than an empty
Optional. |
Class<?> |
get(String key)
Returns the mapped type for the particular key.
|
void |
put(String key,
Class<?> clazz)
Adds a new mapping to this type map.
|
void addRule(JavaTypeMap.Rule rule)
rule - the rule to addClass<?> findJdbcType(Map<String,Class<?>> sqlTypeMapping, ColumnMetaData metadata)
Optional. If none is found, the default
mapping is returned.sqlTypeMapping - read-only map of existing mappingsmetadata - metadata about the particular columnvoid put(String key, Class<?> clazz)
A read-only view of the map with installed mappings will be available to the rules upon execution.
key - the key for the particular mappingclazz - the mapped typeClass<?> get(String key)
key - the key to look fornullstatic JavaTypeMap create()
JavaTypeMap using the default
implementation.JavaTypeMapCopyright © 2019 Speedment, Inc.. All rights reserved.