public class TypedValueDataSubset extends DataSubset<TypedValue,TypedValue>
TypedValue
-based paging
data. The class is JAXB-compatible and generates standard XML that
conforms to the XSD defined by the DataSubset
class. This means it
can be used as the runtime return or parameter type in both custom smart
services and expressions functions.BATCH_SIZE_FIELD_NAME, IDENTIFIERS_FIELD_NAME, LOCAL_PART, QNAME, RESULTS_FIELD_NAME, SORT_FIELD_NAME, START_INDEX_FIELD_NAME, TOTAL_COUNT_FIELD_NAME, XML_ROOT_ELEMENT
Constructor and Description |
---|
TypedValueDataSubset() |
TypedValueDataSubset(int startIndex,
int batchSize,
java.util.List<SortInfo> sort,
int totalCount,
java.util.List<TypedValue> data,
java.util.List<TypedValue> identifiers) |
TypedValueDataSubset(PagingInfo pagingInfo,
int totalCount,
java.util.List<TypedValue> data,
java.util.List<TypedValue> identifiers) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TypedValue> |
getData()
Returns the paged results.
|
java.util.List<TypedValue> |
getIdentifiers()
Returns the identifiers of the data in
getData() . |
protected void |
setData(java.util.List<TypedValue> data)
Sets the paged results
|
protected void |
setIdentifiers(java.util.List<TypedValue> identifiers)
Sets the the identifiers of the data in
getData() . |
getBatchSize, getSort, getStartIndex, getTotalCount, multilineToString, multilineToStringHelper, toString
public TypedValueDataSubset()
public TypedValueDataSubset(PagingInfo pagingInfo, int totalCount, java.util.List<TypedValue> data, java.util.List<TypedValue> identifiers)
public TypedValueDataSubset(int startIndex, int batchSize, java.util.List<SortInfo> sort, int totalCount, java.util.List<TypedValue> data, java.util.List<TypedValue> identifiers)
public java.util.List<TypedValue> getData()
getData
in class DataSubset<TypedValue,TypedValue>
public java.util.List<TypedValue> getIdentifiers()
getData()
. These are
only unique if the underlying data source guarantees uniqueness.getIdentifiers
in class DataSubset<TypedValue,TypedValue>
protected void setData(java.util.List<TypedValue> data)
setData
in class DataSubset<TypedValue,TypedValue>
data
- List of TypedValue
resultsprotected void setIdentifiers(java.util.List<TypedValue> identifiers)
getData()
.setIdentifiers
in class DataSubset<TypedValue,TypedValue>
identifiers
- List of TypedValue
identifiersCopyright © 2003-2024 Appian Corporation. All Rights Reserved.