TransactionHelper (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- com.google.appengine.api.datastore.TransactionHelper
-
public final class TransactionHelper
extends java.lang.Object
TransactionHelper
enables the task queue API to serialize a datastore transaction without
knowing the details of how it is implemented.
-
-
Method Summary
All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static void |
setTransaction(Transaction txn,
TaskQueueAddRequest request)
Sets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending
on what kind of transaction is provided.
|
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["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-06-16 UTC."],[[["`TransactionHelper` allows the task queue API to serialize a datastore transaction without requiring knowledge of its implementation."],["The `TransactionHelper` class is a final class that extends `java.lang.Object`."],["The class contains a static method, `setTransaction`, which manages the setting of either the transaction or `datastore_transaction` field within a `TaskQueueAddRequest`."],["The `setTransaction` method's behavior adapts to the type of transaction provided."]]],[]]