Class JsonQuery


  • public class JsonQuery
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • objectMapper

        protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • jsonQuery

        protected org.gcube.com.fasterxml.jackson.databind.JsonNode jsonQuery
      • oDatabaseDocument

        protected com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument
    • Constructor Detail

      • JsonQuery

        public JsonQuery()
    • 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.SchemaNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaException
        org.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.SchemaException
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.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.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException