Allows users to execute custom SQL queries through Motech Data Services. Implementations need to implement the execute method, which can operate directly on the
getSqlQuery()should return the sql query that will be executed. The return value type is left to the implementation. It is not advised to rely on raw SQL, however some use cases may require it.
- <T> – the type that will be returned from this query
The implementation of this method should prepare the
Queryobject for the SQL query execution (eg. by inserting the necessary params).
- query – query object, that will be used during query execution
defining the return type is left to whoever implements this interface