public class DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder extends Object
Constructor and Description |
---|
DiscriminatorJdbcSubBuilder(org.simpleflatmapper.util.Predicate<String> predicate,
Type type) |
Modifier and Type | Method and Description |
---|---|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
addMapping(String column)
Static property definition.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
addMapping(String column,
org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition)
Static property definition.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
addMapping(String column,
int index,
org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition)
Static property definition.
|
JdbcMapper<T> |
mapper() |
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(org.simpleflatmapper.util.Predicate<String> predicate,
Type type)
Add a discriminator matching predicate with its associated type.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(String value,
Class<? extends T> type)
Add a discriminator value with its associated type.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(String value,
Type type)
Add a discriminator matching predicate with its associated type.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(String value,
org.simpleflatmapper.util.TypeReference<? extends T> type)
Add a discriminator value with its associated type.
|
public DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder addMapping(String column)
column
- the propertyJdbcMapperBuilder
public DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder addMapping(String column, org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition)
column
- the propertycolumnDefinition
- the property definitionJdbcMapperBuilder
public DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder addMapping(String column, int index, org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition)
column
- the propertyindex
- the property indexcolumnDefinition
- the property definitionJdbcMapperBuilder
public JdbcMapper<T> mapper()
DiscriminatorJdbcBuilder
public DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, Type type)
value
- the valuetype
- the typepublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, Class<? extends T> type)
value
- the valuetype
- the typepublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, org.simpleflatmapper.util.TypeReference<? extends T> type)
value
- the valuetype
- the typepublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(org.simpleflatmapper.util.Predicate<String> predicate, Type type)
predicate
- the predicatetype
- the typeCopyright © 2017. All rights reserved.