Concrete CallbackContext implementation that is specific to intercepted get() operations.
Methods annotated with PreGet that receive instances of this class may modify the result
of the get() operation by calling #setResultForCurrentElement(Entity). Keys that receive
results via this method will not be fetched from the datastore. This is an effective way to
inject cached results.
Set the Entity that will be associated with the Key returned by #getCurrentElement() in the result of the get() operation. This will prevent the get()
operation from fetching the Entity from the datastore. This is an effective way to inject
cached results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003ePreGetContext\u003c/code\u003e is a \u003ccode\u003eCallbackContext\u003c/code\u003e implementation specific to intercepted \u003ccode\u003eget()\u003c/code\u003e operations.\u003c/p\u003e\n"],["\u003cp\u003eMethods with the \u003ccode\u003ePreGet\u003c/code\u003e annotation can use \u003ccode\u003ePreGetContext\u003c/code\u003e to modify the outcome of a \u003ccode\u003eget()\u003c/code\u003e operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetResultForCurrentElement(Entity entity)\u003c/code\u003e method allows for setting an \u003ccode\u003eEntity\u003c/code\u003e as the result for a \u003ccode\u003eKey\u003c/code\u003e, bypassing datastore retrieval.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing \u003ccode\u003esetResultForCurrentElement\u003c/code\u003e provides a mechanism for injecting cached results effectively, by preventing fetching from the datastore.\u003c/p\u003e\n"]]],[],null,[]]