MotechDataService¶
- public interface MotechDataService<T>¶
This is a basic service interface with CRUD operations. Mainly it is used as super interface to create service interface related with the given entity schema in org.motechproject.mds.builder.EntityInfrastructureBuilder but it can be also used by other service interfaces inside this package.
Parameters: - <T> – the type of entity schema.
Methods¶
doInTransaction¶
- <R> R doInTransaction(TransactionCallback<R> transactionCallback)¶
executeQuery¶
- <R> R executeQuery(QueryExecution<R> queryExecution)¶
filter¶
- List<T> filter(Filter filter, QueryParams queryParams)¶
retrieveAll¶
- List<T> retrieveAll(QueryParams queryParams)¶