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 andgetSqlQuery()
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)¶ The implementation of this method should prepare the
Query
object for the SQL query execution (eg. by inserting the necessary params).Parameters: - query – query object, that will be used during query execution
Returns: defining the return type is left to whoever implements this interface