Class BaseEvaluator.QueryValue

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryValue​(Query query)  
    • Method Summary

      Modifier and Type Method Description
      Query getQuery()
      Return the sub-query instance.
      java.lang.Object process​(Queryable.DataSource dataSource, Queryable.Consumer consumer)
      Evaluate the sub-query a return the collection result set as value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryValue

        public QueryValue​(Query query)
    • Method Detail

      • getQuery

        public Query getQuery()
        Return the sub-query instance.
        Returns:
        Sub-query instance.
      • process

        public java.lang.Object process​(Queryable.DataSource dataSource,
                                        Queryable.Consumer consumer)
        Evaluate the sub-query a return the collection result set as value. The first value of the parameters array (parameters[0]) is the instance of data source to evaluate the sub-query. The second value of the parameters array (parameters[1]) is the instance of the consumer to evaluate the sub-query. The rest of the parameters are the parameter to evaluate the sub-query..
        Specified by:
        process in interface BaseEvaluator.UnprocessedValue
        Parameters:
        dataSource - Data source of the in-evaluation object.
        consumer - Consumer for the object.
        Returns:
        If the return fields size is one then the result will be a a list of values, else if the return fields size is greater than one then the result will be a collection with object instance.