public interface DataTable
| Modifier and Type | Method and Description |
|---|---|
void |
deleteData(long... ids)
Deletes rows from the data table.
|
Map<Long,DataRow> |
filterData(String column,
Object value,
TabularDataBasedDS.FilterOperator operator)
Returns filtered data according to the given criteria.
|
Map<Long,DataRow> |
getData(long start,
long length)
Returns all the data in the table.
|
List<DataColumn> |
getDataColumns()
Returns all the data table columns available.
|
void |
insertData(DataRow... values)
Inserts a new row in to the data table.
|
void |
updateData(Map<Long,DataRow> values)
Updates the data table with the given values.
|
List<DataColumn> getDataColumns() throws DataServiceFault
DataServiceFault - Thrown if any error occursMap<Long,DataRow> getData(long start, long length) throws DataServiceFault
start - The 0-based starting index of the results to be returnedlength - The length of the result set size to be limited to, -1 if unlimitedDatListaServiceFault - Thrown if any error occursDataServiceFaultvoid updateData(Map<Long,DataRow> values) throws DataServiceFault
values - The rows to be updatedDataServiceFault - Thrown if any error occursvoid insertData(DataRow... values) throws DataServiceFault
values - The values of the new data rowDataServiceFault - Thrown if any error occursvoid deleteData(long... ids)
throws DataServiceFault
ids - The row ids of the rows to be deletedDataServiceFault - Thrown if any error occursMap<Long,DataRow> filterData(String column, Object value, TabularDataBasedDS.FilterOperator operator) throws DataServiceFault
column - The column the filtering to be based onvalue - The value used to evaluate the criteriaoperator - The operator used to do the evaluationDataServiceFault - Thrown if any error occursCopyright © 2018 WSO2. All rights reserved.