QueryExecution

public interface QueryExecution<T>

Allows users to execute custom queries through Motech Data Services. Implementations need only to implement the execute method, which can operate directly on the javax.jdo.Query object. The return value type is left to the implementation.

Parameters:
  • <T> – the type that will be returned from this query

Methods

execute

T execute(Query query, InstanceSecurityRestriction restriction)

The implementation of this method is supposed to run the JDO query on the provided Query object.

Parameters:
  • query – the query object that is supposed to be executed
  • restriction – the entity instances restrictions put on this query
Returns:

defining the return type is left to whoever implements this interface