Ejemplo n.º 1
0
 @Override
 public XaTransaction create(
     long lastCommittedTxWhenTransactionStarted, TransactionState state) {
   NeoStoreTransactionContext context = neoStoreTransactionContextSupplier.acquire();
   context.bind(state);
   return new NeoStoreTransaction(
       lastCommittedTxWhenTransactionStarted,
       getLogicalLog(),
       neoStore,
       cacheAccess,
       indexingService,
       labelScanStore,
       integrityValidator,
       (KernelTransactionImplementation) kernel.newTransaction(),
       locks,
       context);
 }
Ejemplo n.º 2
0
 @Override
 public XaTransaction create(
     long lastCommittedTxWhenTransactionStarted, TransactionState state) {
   TransactionInterceptor first = providers.resolveChain(NeoStoreXaDataSource.this);
   NeoStoreTransactionContext context = neoStoreTransactionContextSupplier.acquire();
   context.bind(state);
   return new InterceptingWriteTransaction(
       lastCommittedTxWhenTransactionStarted,
       getLogicalLog(),
       neoStore,
       cacheAccess,
       indexingService,
       labelScanStore,
       first,
       integrityValidator,
       (KernelTransactionImplementation) kernel.newTransaction(),
       locks,
       context);
 }