Class VirtTransactionHandler

  • All Implemented Interfaces:
    javax.transaction.xa.XAResource, org.apache.jena.graph.TransactionHandler

    public class VirtTransactionHandler
    extends org.apache.jena.graph.impl.TransactionHandlerBase
    implements javax.transaction.xa.XAResource
    • Field Summary

      • Fields inherited from interface javax.transaction.xa.XAResource

        TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
    • Constructor Detail

      • VirtTransactionHandler

        public VirtTransactionHandler​(VirtGraph _graph)
    • Method Detail

      • getReadWrite

        protected org.apache.jena.query.ReadWrite getReadWrite()
      • getTxnType

        protected org.apache.jena.query.TxnType getTxnType()
      • transactionsSupported

        public boolean transactionsSupported()
        Specified by:
        transactionsSupported in interface org.apache.jena.graph.TransactionHandler
      • transactionsXASupported

        public boolean transactionsXASupported()
      • start

        public void start​(javax.transaction.xa.Xid xid,
                          int i)
                   throws javax.transaction.xa.XAException
        Specified by:
        start in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • commit

        public void commit​(javax.transaction.xa.Xid xid,
                           boolean flag)
                    throws javax.transaction.xa.XAException
        Specified by:
        commit in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • end

        public void end​(javax.transaction.xa.Xid xid,
                        int i)
                 throws javax.transaction.xa.XAException
        Specified by:
        end in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • forget

        public void forget​(javax.transaction.xa.Xid xid)
                    throws javax.transaction.xa.XAException
        Specified by:
        forget in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • prepare

        public int prepare​(javax.transaction.xa.Xid xid)
                    throws javax.transaction.xa.XAException
        Specified by:
        prepare in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • recover

        public javax.transaction.xa.Xid[] recover​(int i)
                                           throws javax.transaction.xa.XAException
        Specified by:
        recover in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • rollback

        public void rollback​(javax.transaction.xa.Xid xid)
                      throws javax.transaction.xa.XAException
        Specified by:
        rollback in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • setTransactionTimeout

        public boolean setTransactionTimeout​(int i)
                                      throws javax.transaction.xa.XAException
        Specified by:
        setTransactionTimeout in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • getTransactionTimeout

        public int getTransactionTimeout()
                                  throws javax.transaction.xa.XAException
        Specified by:
        getTransactionTimeout in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • isSameRM

        public boolean isSameRM​(javax.transaction.xa.XAResource tr)
                         throws javax.transaction.xa.XAException
        Specified by:
        isSameRM in interface javax.transaction.xa.XAResource
        Throws:
        javax.transaction.xa.XAException
      • begin

        public void begin()
        Specified by:
        begin in interface org.apache.jena.graph.TransactionHandler
      • begin

        public void begin​(org.apache.jena.query.ReadWrite _readWrite)
      • begin

        public void begin​(org.apache.jena.query.TxnType _txnType)
      • abort

        public void abort()
        Specified by:
        abort in interface org.apache.jena.graph.TransactionHandler
      • commit

        public void commit()
        Specified by:
        commit in interface org.apache.jena.graph.TransactionHandler