Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

PostLoadContext (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.

Class PostLoadContext

  • java.lang.Object
  • All Implemented Interfaces:

    public final class PostLoadContext
    extends java.lang.Object
    Concrete CallbackContext implementation that is specific to intercepted operations that load Entities, currently get and "query". It is important to note that when a PostLoadContext is provided to a callback following a get operation, getElements() returns all retrieved Entities. However, when a PostLoadContext is provided to a callback following a query, a separate PostLoadContext will be constructed for each Entity in the result set so getElements() will only return a List containing a single Entity. This is due to the streaming nature of query responses.
    • 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