Modifier and Type | Class and Description |
---|---|
static interface |
ResultBuilder.Factory |
Constructor and Description |
---|
ResultBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract ResultBuilder |
addUpdatedRows(long updateCount,
Map<String,?> updateData)
Adds an update result to this result builder that represents the result of a
single UPDATE operation of a batch.
|
static ResultBuilder |
batchUpdate()
Creates a
ResultBuilder for a batch UPDATE result. |
static ResultBuilder |
deletedRows(int[] deleteCounts)
Creates a
ResultBuilder for a batch DELETE result. |
static ResultBuilder |
deletedRows(long deleteCount)
Creates a
ResultBuilder for a DELETE result. |
static ResultBuilder |
deletedRows(long[] deleteCounts)
Creates a
ResultBuilder for a batch DELETE result. |
abstract ResultBuilder |
entity(CdsEntity entity)
Specifies the source
CdsEntity of this result. |
abstract ResultBuilder |
inlineCount(long inlineCount)
Specifies the inline count of a query result.
|
static ResultBuilder |
insertedRows(List<? extends Map<String,?>> rows)
Creates a
ResultBuilder for an INSERT or UPSERT result. |
abstract Result |
result()
Create a
Result from this ResultBuilder |
protected abstract ResultBuilder |
rowCount(long[] rowCounts) |
protected ResultBuilder |
rows(List<? extends Map<String,?>> rows) |
protected abstract ResultBuilder |
rows(Stream<? extends Map<String,?>> rows) |
abstract ResultBuilder |
rowType(CdsStructuredType rowType)
Specifies the
CdsStructuredType that represents the row type of this
result. |
static ResultBuilder |
selectedRows(List<? extends Map<String,?>> rows)
Creates a
ResultBuilder to represent a query result. |
static ResultBuilder |
updatedRows(int[] updateCount,
List<? extends Map<String,?>> updateData)
Deprecated.
instead use
updatedRows(long, Map) for a searched
updated or batchUpdate() together with
addUpdatedRows(long, Map) for a bulk update. |
static ResultBuilder |
updatedRows(int[] updateCount,
Map<String,?> updateData)
Deprecated.
instead use
updatedRows(long, Map) for a searched
updated or batchUpdate() together with
addUpdatedRows(long, Map) for a bulk update. |
static ResultBuilder |
updatedRows(long[] updateCount,
List<? extends Map<String,?>> updateData)
Deprecated.
instead use
updatedRows(long, Map) for a searched
updated or batchUpdate() together with
addUpdatedRows(long, Map) for a bulk update. |
static ResultBuilder |
updatedRows(long[] updateCount,
Map<String,?> updateData)
Deprecated.
instead use
updatedRows(long, Map) for a searched
updated or batchUpdate() together with
addUpdatedRows(long, Map) for a bulk update. |
static ResultBuilder |
updatedRows(long updateCount,
Map<String,?> updateData)
Creates a
ResultBuilder for a searched
UPDATE, updating multiple rows
with the same data. |
public static ResultBuilder selectedRows(List<? extends Map<String,?>> rows)
ResultBuilder
to represent a query result.rows
- the result rowspublic static ResultBuilder insertedRows(List<? extends Map<String,?>> rows)
ResultBuilder
for an INSERT or UPSERT result.rows
- the rows in- or upsertedpublic static ResultBuilder updatedRows(long updateCount, Map<String,?> updateData)
ResultBuilder
for a searched
UPDATE, updating multiple rows
with the same data.updateCount
- the number of rows that were updatedupdateData
- the update data@Deprecated public static ResultBuilder updatedRows(int[] updateCount, Map<String,?> updateData)
updatedRows(long, Map)
for a searched
updated or batchUpdate()
together with
addUpdatedRows(long, Map)
for a bulk update.@Deprecated public static ResultBuilder updatedRows(long[] updateCount, Map<String,?> updateData)
updatedRows(long, Map)
for a searched
updated or batchUpdate()
together with
addUpdatedRows(long, Map)
for a bulk update.@Deprecated public static ResultBuilder updatedRows(int[] updateCount, List<? extends Map<String,?>> updateData)
updatedRows(long, Map)
for a searched
updated or batchUpdate()
together with
addUpdatedRows(long, Map)
for a bulk update.@Deprecated public static ResultBuilder updatedRows(long[] updateCount, List<? extends Map<String,?>> updateData)
updatedRows(long, Map)
for a searched
updated or batchUpdate()
together with
addUpdatedRows(long, Map)
for a bulk update.public static ResultBuilder batchUpdate()
ResultBuilder
for a batch UPDATE result. The results of the
individual UPDATE statements have to be added using
addUpdatedRows(long, Map)
.public static ResultBuilder deletedRows(long deleteCount)
ResultBuilder
for a DELETE result.deleteCount
- the number of rows that were deletedpublic static ResultBuilder deletedRows(int[] deleteCounts)
ResultBuilder
for a batch DELETE result.deleteCounts
- the number of rows deleted by the individual DELETE
operations of the batchpublic static ResultBuilder deletedRows(long[] deleteCounts)
ResultBuilder
for a batch DELETE result.deleteCounts
- the number of rows deleted by the individual DELETE
operations of the batchpublic abstract ResultBuilder entity(CdsEntity entity)
CdsEntity
of this result.entity
- the source entityResultBuilder
public abstract ResultBuilder rowType(CdsStructuredType rowType)
CdsStructuredType
that represents the row type of this
result.rowType
- the row typeResultBuilder
public abstract ResultBuilder inlineCount(long inlineCount)
inlineCount
- the inline countResultBuilder
public abstract ResultBuilder addUpdatedRows(long updateCount, Map<String,?> updateData)
updateCount
- the number of rows that were updatedupdateData
- the update dataResultBuilder
public abstract Result result()
Result
from this ResultBuilder
protected abstract ResultBuilder rows(Stream<? extends Map<String,?>> rows)
protected ResultBuilder rows(List<? extends Map<String,?>> rows)
protected abstract ResultBuilder rowCount(long[] rowCounts)
Copyright © 2023 SAP. All rights reserved.