|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryService
This interface defines the Java API for searching Entities.
| Method Summary | |
|---|---|
QueryResultList<? extends Representation> |
find(Query query)
Searches for entities based on the parsed FieldQuery and returns
representations as defined by the selected fields of the query. |
QueryResultList<String> |
findReferences(Query query)
Searches for entities based on the parsed FieldQuery and returns
the references (ids). |
QueryResultList<? extends Entity> |
findSigns(Query query)
Searches for Signs based on the parsed FieldQuery and returns
the selected Signs including the whole representation. |
Collection<String> |
getSupportedQueryTypes()
Getter for the types of queries supported by this implementation. |
| Method Detail |
|---|
QueryResultList<String> findReferences(Query query)
throws IOException,
UnsupportedQueryTypeException
FieldQuery and returns
the references (ids). Note that selected fields of the query are ignored.
query - the query
IOException - If the referenced Site is not accessible
UnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().
QueryResultList<? extends Representation> find(Query query)
throws IOException,
UnsupportedQueryTypeException
FieldQuery and returns
representations as defined by the selected fields of the query. Note that
if the query defines also Constraints for selected fields, that
the returned representation will only contain values selected by such
constraints.
query - the query
IOException - If the referenced Site is not accessible
UnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().
QueryResultList<? extends Entity> findSigns(Query query)
throws IOException,
UnsupportedQueryTypeException
FieldQuery and returns
the selected Signs including the whole representation. Note that selected
fields of the query are ignored.
query - the query
IOException - If the referenced Site is not accessible
UnsupportedQueryTypeException - if the type of the parsed query is
not supported by this query service. Or in other words if the value of
Query.getQueryType() is not part of the collections returned by
getSupportedQueryTypes().Collection<String> getSupportedQueryTypes()
Query.getQueryType() is used to check if a query is supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||