PreQueryContext (Google App Engine API for Java)

Class PreQueryContext

  • java.lang.Object
  • All Implemented Interfaces:

    public final class PreQueryContext
    extends java.lang.Object
    Concrete CallbackContext implementation that is specific to intercepted queries. Methods annotated with PreQuery that receive instances of this class may modify the Query returned by calling getCurrentElement(). This is an effective way to modify queries prior to execution.
    • Method Detail

      • getElements

        public java.util.List<T> getElements()
        Specified by:
        getElements in interface CallbackContext<T>
        An unmodifiable view of the elements involved in the operation that triggered the callback..
      • getCurrentElement

        public T getCurrentElement()
        Specified by:
        getCurrentElement in interface CallbackContext<T>
        The element for which the callback has been invoked. Shortcut for getElements().getCurrentIndex().
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object