| Constructor and Description |
|---|
QueryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteQuery(Query query)
Delete query from database.
|
List<Query> |
getLastThreeQueries(String owner,
EntityType entityType)
Return last three executed queries which belongs to the currently sign in user.
|
List<Query> |
getQueries(String owner)
Return a list of all queries which belongs to the currently sign in user.
|
Query |
getQueryById(long id)
Return query given id.
|
boolean |
isQueryDescriptionUnique(String description,
String owner,
EntityType entityType)
Return if query description is unique for owner and entity type.
|
Query |
saveQuery(String description,
EntityType entityType,
String owner,
List<QueryCondition> queryConditions)
Saves new query into database.
|
Query |
updateQuery(Query query)
Update query.
|
void |
updateQueryExecutionDate(Query query)
Update query execution data given query.
|
public List<Query> getQueries(String owner)
owner - query ownerpublic List<Query> getLastThreeQueries(String owner, EntityType entityType)
owner - query ownerentityType - of the current datapublic Query saveQuery(String description, EntityType entityType, String owner, List<QueryCondition> queryConditions)
description - query descriptionowner - query ownerentityType - entity typequeryConditions - query conditionspublic boolean isQueryDescriptionUnique(String description, String owner, EntityType entityType)
description - query descriptionowner - query owner (user)entityType - entity typeEntityTypepublic Query updateQuery(Query query)
query - new querypublic void deleteQuery(Query query)
query - query to be deletedpublic Query getQueryById(long id)
id - query idpublic void updateQueryExecutionDate(Query query)
query - query to be updatedCopyright © 2025 European Spallation Source. All rights reserved.