com.univocity.api.data
Interface ModifiableDataset

All Superinterfaces:
Dataset

public interface ModifiableDataset
extends Dataset

A special Dataset that allows data modifications.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
Dataset, DatasetFactory

Method Summary
 void delete(Object[] matchingValues)
          Removes a record from this dataset.
 void deleteAll()
          Removes all records from this dataset.
 void insert(Object[] newData)
          Inserts a new record into this dataset.
 void update(Object[] updatedValues, Object[] matchingValues)
          Updates an existing record in this dataset.
 
Methods inherited from interface com.univocity.api.data.Dataset
getFieldNames, getIdentifiers, getRows, size
 

Method Detail

insert

void insert(Object[] newData)
Inserts a new record into this dataset.

Parameters:
newData - the new record. The length of the array must match the number of fields in the dataset

update

void update(Object[] updatedValues,
            Object[] matchingValues)
Updates an existing record in this dataset.

Parameters:
updatedValues - a row with updated values. The length of the array must match the number of fields in the dataset
matchingValues - identifies which row of this dataset must be updated. The length of the array must match the number of identifiers in the dataset.

delete

void delete(Object[] matchingValues)
Removes a record from this dataset.

Parameters:
matchingValues - identifies which row of this dataset must be removed. The length of the array must match the number of identifiers in the dataset

deleteAll

void deleteAll()
Removes all records from this dataset.



Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.