TransactionalMotechDataService

public abstract class TransactionalMotechDataService<T> extends DefaultMotechDataService<T>

The main goal of the TransactionalMotechDataService class is to resolve problems with transaction annotations not working for generated lookups. We use the traditional transaction callback instead.

Parameters:
  • <T> – the type of entity schema.

Methods

count

protected long count(List<Property> properties)

retrieveAll

protected List<T> retrieveAll(List<Property> properties)

retrieveAll

protected List<T> retrieveAll(List<Property> properties, QueryParams queryParams)

retrieveUnique

protected T retrieveUnique(List<Property> properties, QueryParams queryParams)

retrieveUnique

protected T retrieveUnique(List<Property> properties)