public static interface DatabaseClient.GenericSelectSpec extends DatabaseClient.SelectSpec<DatabaseClient.GenericSelectSpec>
SELECT
options leading to the exchange.Modifier and Type | Method and Description |
---|---|
<R> DatabaseClient.TypedSelectSpec<R> |
as(Class<R> resultType)
Define the target type the result should be mapped to.
|
FetchSpec<Map<String,Object>> |
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> DatabaseClient.TypedSelectSpec<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.