Class QueryDefinition


  • public class QueryDefinition
    extends Object
    Definition of a query, constituting out of a queryName and resultType.
    • Constructor Detail

      • QueryDefinition

        public QueryDefinition​(String queryName,
                               Type resultType)
        Construct a QueryDefinition out of the given queryName and resultType.
        Parameters:
        queryName - the name of the query
        resultType - the Type of result
      • QueryDefinition

        public QueryDefinition​(String queryName,
                               String resultType)
        Construct a QueryDefinition out of the given queryName and resultType.
        Parameters:
        queryName - the name of the query
        resultType - the type of the result
    • Method Detail

      • getQueryName

        public String getQueryName()
        Return the query name of this definition.
        Returns:
        the query name of this definition
      • getResultType

        public String getResultType()
        Return the result type of this definition.
        Returns:
        the result type of this definition
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object