Package org.chenile.query.service.impl
Class QueryDefinitions
java.lang.Object
org.chenile.query.service.impl.BaseQueryStore
org.chenile.query.service.impl.QueryDefinitions
- All Implemented Interfaces:
QueryStore
Reads the query definitions from a JSON file that has been passed to it.
There can be multiple JSON files with the same name in the project. It reads them all
and gathers all the definitions in one place.
-
Field Summary
Fields inherited from class org.chenile.query.service.impl.BaseQueryStore
store
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
processFile
(Resource file) retrieveQueryIdFromStore
(String queryId) Methods inherited from class org.chenile.query.service.impl.BaseQueryStore
addMetadata, retrieve, setStore
-
Field Details
-
logger
private final org.slf4j.Logger logger -
objectMapper
-
-
Constructor Details
-
QueryDefinitions
- Throws:
IOException
-
-
Method Details
-
processFile
- Throws:
IOException
-
retrieveQueryIdFromStore
- Specified by:
retrieveQueryIdFromStore
in classBaseQueryStore
-