Class TransactionImpl

  • All Implemented Interfaces:
    org.fcrepo.kernel.api.Transaction

    public class TransactionImpl
    extends Object
    implements org.fcrepo.kernel.api.Transaction
    The Fedora Transaction implementation
    Author:
    mohideen
    • Method Detail

      • commit

        public void commit()
        Specified by:
        commit in interface org.fcrepo.kernel.api.Transaction
      • isCommitted

        public boolean isCommitted()
        Specified by:
        isCommitted in interface org.fcrepo.kernel.api.Transaction
      • rollback

        public void rollback()
        Specified by:
        rollback in interface org.fcrepo.kernel.api.Transaction
      • isRolledBack

        public boolean isRolledBack()
        Specified by:
        isRolledBack in interface org.fcrepo.kernel.api.Transaction
      • getId

        public String getId()
        Specified by:
        getId in interface org.fcrepo.kernel.api.Transaction
      • setShortLived

        public void setShortLived​(boolean shortLived)
        Specified by:
        setShortLived in interface org.fcrepo.kernel.api.Transaction
      • isShortLived

        public boolean isShortLived()
        Specified by:
        isShortLived in interface org.fcrepo.kernel.api.Transaction
      • expire

        public void expire()
        Specified by:
        expire in interface org.fcrepo.kernel.api.Transaction
      • hasExpired

        public boolean hasExpired()
        Specified by:
        hasExpired in interface org.fcrepo.kernel.api.Transaction
      • updateExpiry

        public Instant updateExpiry​(Duration amountToAdd)
        Specified by:
        updateExpiry in interface org.fcrepo.kernel.api.Transaction
      • getExpires

        public Instant getExpires()
        Specified by:
        getExpires in interface org.fcrepo.kernel.api.Transaction
      • commitIfShortLived

        public void commitIfShortLived()
        Specified by:
        commitIfShortLived in interface org.fcrepo.kernel.api.Transaction
      • refresh

        public void refresh()
        Specified by:
        refresh in interface org.fcrepo.kernel.api.Transaction
      • lockResource

        public void lockResource​(org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
        Specified by:
        lockResource in interface org.fcrepo.kernel.api.Transaction
      • releaseResourceLocksIfShortLived

        public void releaseResourceLocksIfShortLived()
        Specified by:
        releaseResourceLocksIfShortLived in interface org.fcrepo.kernel.api.Transaction
      • setBaseUri

        public void setBaseUri​(String baseUri)
        Specified by:
        setBaseUri in interface org.fcrepo.kernel.api.Transaction
      • setUserAgent

        public void setUserAgent​(String userAgent)
        Specified by:
        setUserAgent in interface org.fcrepo.kernel.api.Transaction