Class AbstractJavaQuery<T>

    • Field Detail

      • candidateCollection

        protected transient java.util.Collection<T> candidateCollection
        Collection of candidates for this query.
      • singleString

        protected java.lang.String singleString
        Cached form of the single string form of the query.
    • Constructor Detail

      • AbstractJavaQuery

        public AbstractJavaQuery​(StoreManager storeMgr,
                                 ExecutionContext ec)
        Constructor for a Java-based query.
        Parameters:
        storeMgr - StoreManager for this query
        ec - ExecutionContext
    • Method Detail

      • setCandidates

        public void setCandidates​(Extent<T> pcs)
        Set the candidate Extent to query. Passing in null clears off the current candidate Extent.
        Specified by:
        setCandidates in class Query<T>
        Parameters:
        pcs - the Candidate Extent.
      • setCandidates

        public void setCandidates​(java.util.Collection<T> pcs)
        Set the candidate collection to query. Passing in null clears off the current candidate collection.
        Specified by:
        setCandidates in class Query<T>
        Parameters:
        pcs - the Candidate collection.
      • compileGeneric

        public abstract void compileGeneric​(java.util.Map<java.lang.Object,​java.lang.Object> parameterValues)
        Method to generate the generic compilation of this query.
        Parameters:
        parameterValues - Values for any parameters
      • performDeletePersistentAll

        protected long performDeletePersistentAll​(java.util.Map parameters)
        Execute the query to delete persistent objects.
        Overrides:
        performDeletePersistentAll in class Query<T>
        Parameters:
        parameters - the Map containing all of the parameters.
        Returns:
        the number of deleted objects.
      • getSingleStringQuery

        public abstract java.lang.String getSingleStringQuery()
        Accessor for a single string form of the query.
        Returns:
        Single string form of the query.
      • toString

        public java.lang.String toString()
        Stringifier method
        Overrides:
        toString in class java.lang.Object
        Returns:
        Single-string form of this query.
      • evaluateInMemory

        protected boolean evaluateInMemory()
        Convenience method to return whether the query should be evaluated in-memory.
        Returns:
        Use in-memory evaluation?
      • dereferenceFilter

        protected java.lang.String dereferenceFilter​(java.lang.String input)
        Method to expand the subqueries defined in a filter.
        Parameters:
        input - the input string
        Returns:
        The filter expanded