public class Query extends JointQueryTask
Constructor and Description |
---|
Query(DicooglePlatformInterface controller,
ForEachAdapter adapter)
Initializes this helper class.
|
Modifier and Type | Method and Description |
---|---|
void |
await()
Awaits for the query to finish.
|
void |
onCompletion() |
void |
onReceive(Task<java.lang.Iterable<SearchResult>> e) |
void |
query(java.util.List<java.lang.String> querySources,
java.lang.String query,
java.lang.Object... parameters)
This method provides the same interface as the Dicoogle Platform Interface.
|
void |
query(java.lang.String querySource,
java.lang.String query,
java.lang.Object... parameters)
This method provides the same interface as the Dicoogle Platform Interface.
|
void |
queryAll(java.lang.String query,
java.lang.Object... parameters)
This method provides the same interface as the Dicoogle Platform Interface.
|
void |
setAdapter(ForEachAdapter adapter)
Sets the for each adapter.
|
void |
setController(DicooglePlatformInterface controller)
Sets the Dicoogle Platform Controller.
|
addTask, cancel, get, getProgress, isCancelled, isDone
public Query(DicooglePlatformInterface controller, ForEachAdapter adapter)
controller
- The dicoogle platform proxy.adapter
- The adapter holding the business logic of the query.public void onCompletion()
onCompletion
in class JointQueryTask
public void onReceive(Task<java.lang.Iterable<SearchResult>> e)
onReceive
in class JointQueryTask
public void await()
public void queryAll(java.lang.String query, java.lang.Object... parameters)
query
- Query Stringparameters
- ParametersDicooglePlatformInterface
public void query(java.lang.String querySource, java.lang.String query, java.lang.Object... parameters)
querySource
- The query plugin's namequery
- Query Stringparameters
- ParametersDicooglePlatformInterface
public void query(java.util.List<java.lang.String> querySources, java.lang.String query, java.lang.Object... parameters)
querySources
- A List holding the queries plugin's names that should handle the query.query
- Query Stringparameters
- ParametersDicooglePlatformInterface
public void setController(DicooglePlatformInterface controller)
controller
- The new controller.public void setAdapter(ForEachAdapter adapter)
adapter
- The adapter.