@SuppressWarnings("resource") @Test public void testNewReadWriteTransaction() { DOMStoreTransaction dst = new TransactionChainProxy(mockComponentFactory, historyId).newReadWriteTransaction(); Assert.assertTrue(dst instanceof DOMStoreReadWriteTransaction); }
@Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.READ_WRITE); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.READ_WRITE); } }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.READ_WRITE); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.READ_WRITE); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override void close(); }
TransactionChainProxy extends AbstractTransactionContextFactory<LocalTransactionChain> implements DOMStoreTransactionChain { @Override public DOMStoreReadWriteTransaction newReadWriteTransaction() { getActorUtils().acquireTxCreationPermit(); return allocateWriteTransaction(TransactionType.READ_WRITE); } TransactionChainProxy(final TransactionContextFactory parent, final LocalHistoryIdentifier historyId); @Override DOMStoreReadTransaction newReadOnlyTransaction(); @Override DOMStoreReadWriteTransaction newReadWriteTransaction(); @Override DOMStoreWriteTransaction newWriteOnlyTransaction(); @Override void close();  }