Package com.codebarrel.data.api
Interface QueryCallback<T>
- Type Parameters:
T
- type of result this query generates
public interface QueryCallback<T>
Callback used to execute a datastore query.
-
Method Summary
Modifier and TypeMethodDescriptionrunQuery
(DbConnection connection) Executes a query using the provided connection and returns the result.
-
Method Details
-
runQuery
Executes a query using the provided connection and returns the result.- Parameters:
connection
- The datastore connection to run the query with.- Returns:
- The result of executing the query. May be null.
-