public static interface DatabaseClient.TypedSelectSpec<T> extends DatabaseClient.SelectSpec<DatabaseClient.TypedSelectSpec<T>>
SELECT
options leading to the exchange.Modifier and Type | Method and Description |
---|---|
<R> RowsFetchSpec<R> |
as(Class<R> resultType)
Define the target type the result should be mapped to.
|
FetchSpec<T> |
fetch()
Perform the SQL call and retrieve the result.
|
<R> RowsFetchSpec<R> |
map(BiFunction<Row,RowMetadata,R> mappingFunction)
Configure a result mapping
function . |
<R> RowsFetchSpec<R> |
map(Function<Row,R> mappingFunction)
Configure a result mapping
function . |
<R> RowsFetchSpec<R> as(Class<R> resultType)
R
- result type.resultType
- must not be null.<R> RowsFetchSpec<R> map(Function<Row,R> mappingFunction)
function
.R
- result type.mappingFunction
- must not be null.FetchSpec
for configuration what to fetch. Guaranteed to be not null.<R> RowsFetchSpec<R> map(BiFunction<Row,RowMetadata,R> mappingFunction)
function
.R
- result type.mappingFunction
- must not be null.FetchSpec
for configuration what to fetch. Guaranteed to be not null.Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.