| Modifier and Type | Field | Description |
|---|---|---|
protected MapperConfig<K,FieldMapperColumnDefinition<K>> |
mapperConfig |
|
protected MappingContextFactoryBuilder<? super S,K> |
mappingContextFactoryBuilder |
| Constructor | Description |
|---|---|
AbstractMapperBuilder(org.simpleflatmapper.reflect.meta.ClassMeta<T> classMeta,
MappingContextFactoryBuilder<? super S,K> parentBuilder,
MapperConfig<K,FieldMapperColumnDefinition<K>> mapperConfig,
MapperSource<? super S,K> mapperSource,
KeyFactory<K> keyFactory,
int startIndex) |
| Modifier and Type | Method | Description |
|---|---|---|
B |
addKey(String column) |
add a new mapping to the specified property with a key property definition and an undefined type.
|
B |
addMapper(FieldMapper<S,T> mapper) |
append a FieldMapper to the mapping list.
|
B |
addMapping(String column) |
add a new mapping to the specified property with an undefined type.
|
B |
addMapping(String column,
int index) |
add a new mapping to the specified property with the specified index and an undefined type.
|
B |
addMapping(String column,
int index,
Object... properties) |
add a new mapping to the specified property with the specified index, specified property definition and an undefined type.
|
B |
addMapping(String column,
int index,
FieldMapperColumnDefinition<K> columnDefinition) |
add a new mapping to the specified property with the specified index, specified property definition and an undefined type.
|
B |
addMapping(String column,
Object... properties) |
add a new mapping to the specified property with the specified columnDefinition and an undefined type.
|
B |
addMapping(String column,
FieldMapperColumnDefinition<K> columnDefinition) |
add a new mapping to the specified property with the specified columnDefinition and an undefined type.
|
B |
addMapping(K key,
Object... properties) |
|
B |
addMapping(K key,
FieldMapperColumnDefinition<K> columnDefinition) |
|
M |
mapper() |
|
protected abstract M |
newJoinMapper(Mapper<S,T> mapper) |
|
protected abstract M |
newStaticMapper(Mapper<S,T> mapper) |
protected final MapperConfig<K extends FieldKey<K>,FieldMapperColumnDefinition<K extends FieldKey<K>>> mapperConfig
protected final MappingContextFactoryBuilder<? super S,K extends FieldKey<K>> mappingContextFactoryBuilder
public AbstractMapperBuilder(org.simpleflatmapper.reflect.meta.ClassMeta<T> classMeta, MappingContextFactoryBuilder<? super S,K> parentBuilder, MapperConfig<K,FieldMapperColumnDefinition<K>> mapperConfig, MapperSource<? super S,K> mapperSource, KeyFactory<K> keyFactory, int startIndex)
classMeta - the meta for the target class.parentBuilder - the parent builder, null if none.mapperConfig - the mapperConfig.mapperSource - the Mapper source.keyFactory - startIndex - the first property indexpublic final M mapper()
public final B addKey(String column)
column - the property namepublic final B addMapping(String column)
column - the property namepublic final B addMapping(String column, FieldMapperColumnDefinition<K> columnDefinition)
column - the property namecolumnDefinition - the definitionpublic final B addMapping(String column, Object... properties)
column - the property nameproperties - the definitionpublic final B addMapping(String column, int index)
column - the property nameindex - the property indexpublic final B addMapping(String column, int index, FieldMapperColumnDefinition<K> columnDefinition)
column - the property nameindex - the property indexcolumnDefinition - the property definitionpublic final B addMapping(String column, int index, Object... properties)
column - the property nameindex - the property indexproperties - the property propertiespublic final B addMapper(FieldMapper<S,T> mapper)
mapper - the field jdbcMapperpublic final B addMapping(K key, FieldMapperColumnDefinition<K> columnDefinition)
Copyright © 2018. All rights reserved.