Interface TransactionalResource

All Superinterfaces:
Resource

public interface TransactionalResource extends 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 Details

    • newTransaction

      ResourceTransaction newTransaction() throws DataStoreException
      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.