Class NonTx

java.lang.Object
tech.ydb.yoj.repository.db.NonTx

public final class NonTx extends Object
  • Method Details

    • nonTx

      public static <T> T nonTx(Class<T> type, T t)
      Wraps the specified object so that it cannot be invoked inside a transaction.
      Type Parameters:
      T - instance type
      Parameters:
      type - object type to wrap; must be an interface
      t - instance to wrap
      Returns:
      wrapped instance that does not permit calls inside a transaction