Interface TransactionWork<T>

Type Parameters:
T - the return type of this work.

@Deprecated public interface TransactionWork<T>
Deprecated.
superseded by TransactionCallback.
Callback that executes operations against a given Transaction. To be used with Session.readTransaction(TransactionWork) and Session.writeTransaction(TransactionWork) methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Executes all given operations against the same transaction.
  • Method Details

    • execute

      T execute(Transaction tx)
      Deprecated.
      Executes all given operations against the same transaction.
      Parameters:
      tx - the transaction to use.
      Returns:
      some result object or null if none.