SqlQueryExecution

public interface SqlQueryExecution<T>

Allows users to execute custom SQL queries through Motech Data Services. Implementations need to implement the execute method, which can operate directly on the javax.jdo.Query object and 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.

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

Methods

execute

T execute(Query query)

getSqlQuery

String getSqlQuery()