Class AtomicWriteTransaction

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.geotools.api.data.Transaction

    public class AtomicWriteTransaction
    extends Object
    implements org.geotools.api.data.Transaction
    Transaction object that enforces atomic writes - this ensures that a feature is not modified between when it's read and when it's updated. Does not support normal transaction operations, such as commit or rollback, and instead operates like auto-commit.
    • Method Detail

      • putState

        public void putState​(Object key,
                             org.geotools.api.data.Transaction.State state)
        Specified by:
        putState in interface org.geotools.api.data.Transaction
      • getState

        public org.geotools.api.data.Transaction.State getState​(Object key)
        Specified by:
        getState in interface org.geotools.api.data.Transaction
      • removeState

        public void removeState​(Object key)
        Specified by:
        removeState in interface org.geotools.api.data.Transaction
      • putProperty

        public void putProperty​(Object key,
                                Object value)
        Specified by:
        putProperty in interface org.geotools.api.data.Transaction
      • getProperty

        public Object getProperty​(Object key)
        Specified by:
        getProperty in interface org.geotools.api.data.Transaction
      • addAuthorization

        public void addAuthorization​(String authID)
        Specified by:
        addAuthorization in interface org.geotools.api.data.Transaction
      • getAuthorizations

        public Set<String> getAuthorizations()
        Specified by:
        getAuthorizations in interface org.geotools.api.data.Transaction
      • commit

        public void commit()
                    throws IOException
        Specified by:
        commit in interface org.geotools.api.data.Transaction
        Throws:
        IOException
      • rollback

        public void rollback()
        Specified by:
        rollback in interface org.geotools.api.data.Transaction