Stay organized with collections
Save and categorize content based on your preferences.
public final class PreGetContext extends BaseCallbackContext<Key>
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.
public void setResultForCurrentElement(Entity entity)
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 2024-11-26 UTC."],[],[]]