public interface Queryable
Provides methods for locating entities via a query. The syntax of the query depends on the implementation.
Modifier and Type | Method and Description |
---|---|
Object |
lookupByQuery(String query,
Map<String,?> parameters)
Looks up one or more entities via a query string.
|
Object |
lookupByQuery(String query,
Object... parameters)
Looks up one or more entities via a query string.
|
Object lookupByQuery(String query, Object... parameters)
If one entity is located then the object should directly be returned.
If multiple are located then a 'Collection
', containing the entities,
should be returned. If no entities are located then null
should
be returned.
query
- the queryparameters
- the array of parametersOperationNotSupportedException
- if the operation is not supportedObject lookupByQuery(String query, Map<String,?> parameters)
If one entity is located then the object should directly be returned.
If multiple are located then a 'Collection
', containing the entities,
should be returned. If no entities are located then null
should
be returned.
query
- the queryparameters
- the map of parametersOperationNotSupportedException
- if the operation is not supportedCopyright © 2020. All rights reserved.