Package | Description |
---|---|
org.codejargon.fluentjdbc.api.mapper | |
org.codejargon.fluentjdbc.api.query | |
org.codejargon.fluentjdbc.api.query.inspection |
Modifier and Type | Method and Description |
---|---|
<T> Mapper<T> |
ObjectMappers.forClass(Class<T> clazz) |
static Mapper<BigDecimal> |
Mappers.singleBigDecimal()
Maps the first BigDecimal column
|
static Mapper<Boolean> |
Mappers.singleBoolean()
Maps the first Boolean column
|
static Mapper<Integer> |
Mappers.singleInteger()
Maps the first Integer column.
|
static Mapper<Long> |
Mappers.singleLong()
Maps the first Long column.
|
static Mapper<String> |
Mappers.singleString()
Maps the first string column
|
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
SelectQuery.firstResult(Mapper<T> mapper)
Runs the select query and returns first result - if any
|
<T> void |
SelectQuery.iterateResult(Mapper<T> mapper,
java.util.function.Consumer<T> consumer)
Runs the select query and provides results to the given consumer
|
<T> List<T> |
SelectQuery.listResult(Mapper<T> mapper)
Runs the select query and returns results as an immutable list
|
<T> UpdateResultGenKeys<T> |
UpdateQuery.runFetchGenKeys(Mapper<T> generatedKeyMapper)
Runs the update query and fetches the generated keys
|
<T> UpdateResultGenKeys<T> |
UpdateQuery.runFetchGenKeys(Mapper<T> generatedKeyMapper,
String[] columns)
Runs the update query and fetches the generated keys
|
<T> Set<T> |
SelectQuery.setResult(Mapper<T> mapper)
Runs the select query and returns results as an immutable set
|
<T> T |
SelectQuery.singleResult(Mapper<T> mapper)
Runs the select query and returns a single result.
|
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
MetaDataSelect.listResult(Mapper<T> mapper)
Provides results as a list
|
Copyright © 2016. All rights reserved.