| Package | Description |
|---|---|
| me.saharnooby.lib.query.query | |
| me.saharnooby.lib.query.set |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
AbstractQuery.queryAndMap(@NonNull DataSource source,
@NonNull ResultSetMapper<T> mapper)
Obtains a connection from the source, performs a query, calls
ResultSetWrapper.map(ResultSetMapper) with the specified
mapper and returns the result. |
<T> List<T> |
AbstractQuery.queryAndMapAll(@NonNull DataSource source,
@NonNull ResultSetMapper<T> mapper)
Obtains a connection from the source, performs a query, calls
ResultSetWrapper.mapAll(ResultSetMapper) with the specified
mapper and returns the result. |
<T> Optional<T> |
AbstractQuery.updateWithKeysAndMap(@NonNull DataSource source,
@NonNull ResultSetMapper<T> mapper)
Obtains a connection from the source, executes an update, returns generated keys mapped using specified mapper.
|
<T> List<T> |
AbstractQuery.updateWithKeysAndMapAll(@NonNull DataSource source,
@NonNull ResultSetMapper<T> mapper)
Obtains a connection from the source, executes an update, returns generated keys mapped using specified mapper.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
ResultSetWrapper.map(@NonNull ResultSetMapper<T> mapper)
Maps the first row in the result set, if it exists, using specified mapper and returns an optional value.
|
<T> List<T> |
ResultSetWrapper.mapAll(@NonNull ResultSetMapper<T> mapper)
Maps all rows in the result set using specified mapper and collects the results to a list.
|
Copyright © 2021. All rights reserved.