File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
src/main/java/com/googlecode/objectify Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 66import com .google .cloud .datastore .Query ;
77import com .google .cloud .datastore .QueryResults ;
88import com .google .cloud .datastore .ReadOption ;
9+ import com .google .cloud .datastore .Transaction ;
910import com .google .cloud .datastore .Transaction .Response ;
1011import com .google .protobuf .ByteString ;
1112import com .googlecode .objectify .Result ;
@@ -125,7 +126,12 @@ public void listenForCommit(final Runnable listener) {
125126 public ByteString getTransactionHandle () {
126127 return raw .getTransactionHandle ();
127128 }
128-
129+
130+ @ Override
131+ public Transaction getRawTransaction () {
132+ return raw .getRawTransaction ();
133+ }
134+
129135 @ Override
130136 public void runCommitListeners () {
131137 ((PrivateAsyncTransaction )raw ).runCommitListeners ();
Original file line number Diff line number Diff line change 11package com .googlecode .objectify .impl ;
22
3+ import com .google .cloud .datastore .Transaction ;
34import com .google .cloud .datastore .Transaction .Response ;
45import com .google .protobuf .ByteString ;
56
@@ -19,4 +20,6 @@ public interface AsyncTransaction extends AsyncDatastoreReaderWriter {
1920 void listenForCommit (final Runnable listener );
2021
2122 ByteString getTransactionHandle ();
22- }
23+
24+ Transaction getRawTransaction ();
25+ }
Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ public void listenForCommit(final Runnable listener) {
6666 public ByteString getTransactionHandle () {
6767 return transaction .getTransactionId ();
6868 }
69-
69+
70+ @ Override
71+ public Transaction getRawTransaction () {
72+ return transaction ;
73+ }
74+
7075 @ Override
7176 public void runCommitListeners () {
7277 for (final Runnable listener : listeners ) {
@@ -104,4 +109,4 @@ public boolean isActive() {
104109 public void rollback () {
105110 transaction .rollback ();
106111 }
107- }
112+ }
You can’t perform that action at this time.
0 commit comments