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.Queryobject. The return value type is left to the implementation.
- <T> – the type that will be returned from this query
execute(Query query, InstanceSecurityRestriction restriction)¶
The implementation of this method is supposed to run the JDO query on the provided
- query – the query object that is supposed to be executed
- restriction – the entity instances restrictions put on this query
defining the return type is left to whoever implements this interface