Add "before transaction" and "after transaction" event
@@ -22,6 +22,8 @@ import com.backendless.persistence.BackendlessDataQuery;
import com.backendless.property.ObjectProperty;
import com.backendless.servercode.ExecutionResult;
import com.backendless.servercode.RunnerContext;
+import com.backendless.transaction.UnitOfWork;
+import com.backendless.transaction.UnitOfWorkResult;
import java.util.HashMap;
import java.util.List;
@@ -178,5 +180,15 @@ public abstract class PersistenceExtender<T>
{
}
+
+ public void beforeTransaction( RunnerContext context, UnitOfWork unitOfWork )
+ {
+
+ }
+
+ public void afterTransaction( RunnerContext context, UnitOfWork unitOfWork, ExecutionResult<UnitOfWorkResult> result )
+ {
+
+ }
}
