Class LegacyInMemoryRepositoryTransaction
java.lang.Object
tech.ydb.yoj.repository.test.inmemory.legacy.LegacyInMemoryRepositoryTransaction
- All Implemented Interfaces:
BaseDb,TransactionLocal.Holder,RepositoryTransaction
public class LegacyInMemoryRepositoryTransaction
extends Object
implements BaseDb, RepositoryTransaction, TransactionLocal.Holder
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyInMemoryRepositoryTransaction(TxOptions options, LegacyInMemoryRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()<T extends Entity<T>,R>
RdoInTransaction(String action, Class<T> type, Function<tech.ydb.yoj.repository.test.inmemory.legacy.LegacyReadOnlyTxDataShard<T>, R> func) <T extends Entity<T>>
voiddoInWriteTransaction(String log, Class<T> type, Consumer<tech.ydb.yoj.repository.test.inmemory.legacy.LegacyWriteTxDataShard<T>> consumer) <T extends Entity<T>>
InMemoryTable.DbMemory<T>voidrollback()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.ydb.yoj.repository.db.RepositoryTransaction
getOptions, getTransactionLocalMethods inherited from interface tech.ydb.yoj.repository.db.cache.TransactionLocal.Holder
getTransactionLocal
-
Constructor Details
-
LegacyInMemoryRepositoryTransaction
-
-
Method Details
-
table
- Specified by:
tablein interfaceBaseDb- Specified by:
tablein interfaceRepositoryTransaction
-
getMemory
-
commit
public void commit()- Specified by:
commitin interfaceRepositoryTransaction
-
rollback
public void rollback()- Specified by:
rollbackin interfaceRepositoryTransaction
-
doInWriteTransaction
-
doInTransaction
-