DataSetService

public interface DataSetService

Manages CRUD operations for the DataSet entities.

Methods

createFromDetails

DataSet createFromDetails(DataSetDto dto)

Creates an instance of the DataSet class based on the information given in the dto.

Parameters:
  • dto – the information about a data set
Returns:

the created instance

deleteAll

void deleteAll()

Deletes all instances of the DataSet from the MOTECH database.

findAll

List<DataSet> findAll()

Retrieves all the data sets stored in the MOTECH database.

Returns:the list of all data sets stored in the MOTECH database.

findByUuid

DataSet findByUuid(String uuid)

Retrieves data set with the given uuid.

Parameters:
  • uuid – the uuid of the data set
Returns:

the data set with the given uuid