Class JsonQuery
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.queries.json.JsonQuery
-
public class JsonQuery extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected JsonQueryERElemententryPointprotected org.gcube.com.fasterxml.jackson.databind.JsonNodejsonQueryprotected org.gcube.com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected com.orientechnologies.orient.core.db.document.ODatabaseDocumentoDatabaseDocument
-
Constructor Summary
Constructors Constructor Description JsonQuery()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuffercreateQuery()static JsonQueryERElementgetJsonQueryERElement(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery)Stringquery()voidsetJsonQuery(String jsonQuery)voidsetJsonQuery(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery)
-
-
-
Field Detail
-
objectMapper
protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
jsonQuery
protected org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery
-
entryPoint
protected JsonQueryERElement entryPoint
-
oDatabaseDocument
protected com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument
-
-
Method Detail
-
setJsonQuery
public void setJsonQuery(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery)
-
setJsonQuery
public void setJsonQuery(String jsonQuery) throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
-
getJsonQueryERElement
public static JsonQueryERElement getJsonQueryERElement(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery) throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
createQuery
public StringBuffer createQuery() throws org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException, org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
query
public String query() throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-