[[["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-09-04 UTC."],[[["\u003cp\u003eTransactionHelper enables the task queue API to serialize a datastore transaction without needing to know the implementation details.\u003c/p\u003e\n"],["\u003cp\u003eTransactionHelper inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, including methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe static method \u003ccode\u003esetTransaction\u003c/code\u003e within TransactionHelper sets either the \u003ccode\u003etransaction\u003c/code\u003e or \u003ccode\u003edatastore_transaction\u003c/code\u003e field in a \u003ccode\u003eTaskQueueAddRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetTransaction\u003c/code\u003e accepts a \u003ccode\u003eTransaction\u003c/code\u003e and a \u003ccode\u003eTaskQueueAddRequest.Builder\u003c/code\u003e as parameters to facilitate transaction serialization within the task queue API.\u003c/p\u003e\n"]]],[],null,["# Class TransactionHelper (2.0.0)\n\n public final class TransactionHelper\n\n[TransactionHelper](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.datastore.TransactionHelper) enables the task queue API to serialize a datastore transaction without\nknowing the details of how it is implemented. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e TransactionHelper \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### setTransaction(Transaction txn, TaskQueuePb.TaskQueueAddRequest.Builder request)\n\n public static void setTransaction(Transaction txn, TaskQueuePb.TaskQueueAddRequest.Builder request)\n\nSets either the transaction or datastore_transaction field in a TaskQueueAddRequest depending\non what kind of transaction is provided."]]