Package org.apache.sis.internal.storage
Interface TransactionalResource
- All Superinterfaces:
Resource
Identifies resources capable to create transactions. A
TransactionalResource
is not directly writable,
but the transactions created by newTransaction()
are writable. Each transaction is a unit of work
independent of other transactions until a commit or rollback operation is performed.
Common cases of transactional resources are DataStore
backed by databases or by
transactional Web Feature Services (WFS-T).
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionStarts a new transaction on this resource.Methods inherited from interface org.apache.sis.storage.Resource
addListener, getIdentifier, getMetadata, removeListener
-
Method Details
-
newTransaction
Starts a new transaction on this resource. The returned resource should have the same capabilities than this resource with the addition of write capabilities.- Returns:
- a new writable resource that can be changed in a all-or-nothing way.
- Throws:
DataStoreException
- if an error occurred while creating the transaction.
-