T - the root type of the jdbcMapperpublic class DiscriminatorJdbcBuilder<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
| Constructor and Description |
|---|
DiscriminatorJdbcBuilder(String column,
JdbcMapperFactory jdbcMapperFactory) |
| Modifier and Type | Method and Description |
|---|---|
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 class.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(String value,
Type type)
Add a discriminator value with its associated type.
|
DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder |
when(String value,
org.simpleflatmapper.util.TypeReference<? extends T> type)
Add a discriminator value with its associated type specified by the type reference.
|
public DiscriminatorJdbcBuilder(String column, JdbcMapperFactory jdbcMapperFactory)
public DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, Type type)
value - the valuetype - the typepublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(org.simpleflatmapper.util.Predicate<String> predicate, Type type)
predicate - the predicatetype - the typepublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, Class<? extends T> type)
value - the valuetype - the classpublic DiscriminatorJdbcBuilder.DiscriminatorJdbcSubBuilder when(String value, org.simpleflatmapper.util.TypeReference<? extends T> type)
value - the valuetype - the type referencepublic JdbcMapper<T> mapper()
Copyright © 2020. All rights reserved.