Class StatefulQuery

java.lang.Object
org.gcube.common.clients.fw.queries.StatefulQuery
All Implemented Interfaces:
org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>

public class StatefulQuery extends Object implements org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
A Query for stateful gCore services.
Author:
Fabio Simeoni, Luca Frosini (ISTI-CNR)
  • Constructor Details

    • StatefulQuery

      public StatefulQuery(Plugin<?,?> plugin)
      Creates an instance with a given proxy Plugin.
      Parameters:
      plugin - the plugin
  • Method Details

    • addVariable

      public StatefulQuery addVariable(String name, String range)
      Adds a variable to the query.
      Parameters:
      name - the name of the variable
      range - the range of the variable
      Returns:
      the query
      See Also:
      • SimpleQuery.addVariable(String, String)
    • addCondition

      public StatefulQuery addCondition(String condition)
      Adds a free-form condition on query results.
      Parameters:
      condition - the condition
      Returns:
      the query
      See Also:
      • SimpleQuery.addCondition(String)
    • addNamespace

      public StatefulQuery addNamespace(String prefix, URI uri)
      Adds a namespace to the query.
      Parameters:
      prefix - the namespace prefix
      uri - the namespace URI
      Returns:
      the query
      See Also:
      • SimpleQuery.addNamespace(String, URI)
    • fire

      public List<jakarta.xml.ws.EndpointReference> fire() throws org.gcube.common.clients.exceptions.DiscoveryException
      Specified by:
      fire in interface org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
      Throws:
      org.gcube.common.clients.exceptions.DiscoveryException
    • toString

      public String toString()
      Specified by:
      toString in interface org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.gcube.common.clients.queries.Query<jakarta.xml.ws.EndpointReference>
      Overrides:
      equals in class Object