
public interface DOMStoreTransactionChain extends DOMStoreTransactionFactory, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes Transaction Chain.
|
DOMStoreReadTransaction |
newReadOnlyTransaction()
Create a new read only transaction which will continue the chain.
|
DOMStoreReadWriteTransaction |
newReadWriteTransaction()
Create a new read write transaction which will continue the chain.
|
DOMStoreWriteTransaction |
newWriteOnlyTransaction()
Create a new write-only transaction which will continue the chain.
|
DOMStoreReadTransaction newReadOnlyTransaction()
DOMStoreTransactionFactory.newReadOnlyTransaction()
and contains merged result of previous one and current state of data store.
Otherwise read-only transaction presents isolated view as if previous read-write
transaction was successful. State which was introduced by other transactions
outside this transaction chain after creation of previous transaction is not visible.newReadOnlyTransaction in interface DOMStoreTransactionFactoryIllegalStateException - if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.DOMStoreReadWriteTransaction newReadWriteTransaction()
DOMStoreTransactionFactory.newReadWriteTransaction()
and contains merged result of previous one and current state of data store.
Otherwise read-write transaction presents isolated view as if previous read-write
transaction was successful. State which was introduced by other transactions
outside this transaction chain after creation of previous transaction is not visible.newReadWriteTransaction in interface DOMStoreTransactionFactoryIllegalStateException - if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.DOMStoreWriteTransaction newWriteOnlyTransaction()
newWriteOnlyTransaction in interface DOMStoreTransactionFactoryIllegalStateException - if the previous transaction was not READY or CANCELLED, or
if the chain has been closed.void close()
close in interface AutoCloseableIllegalStateException - If any of the outstanding created transactions was not canceled or ready.Copyright © 2014. All Rights Reserved.