Class ConnectionFactoryImpl.EmulatedXAResource

java.lang.Object
org.datanucleus.store.connection.AbstractEmulatedXAResource
org.datanucleus.store.rdbms.ConnectionFactoryImpl.EmulatedXAResource
All Implemented Interfaces:
XAResource
Enclosing class:
ConnectionFactoryImpl

static class ConnectionFactoryImpl.EmulatedXAResource extends org.datanucleus.store.connection.AbstractEmulatedXAResource
Emulate the two phase protocol for non XA
  • Field Details

  • Constructor Details

    • EmulatedXAResource

      EmulatedXAResource(org.datanucleus.store.connection.ManagedConnection mconn)
  • Method Details

    • commit

      public void commit(Xid xid, boolean onePhase) throws XAException
      Specified by:
      commit in interface XAResource
      Overrides:
      commit in class org.datanucleus.store.connection.AbstractEmulatedXAResource
      Throws:
      XAException
    • rollback

      public void rollback(Xid xid) throws XAException
      Specified by:
      rollback in interface XAResource
      Overrides:
      rollback in class org.datanucleus.store.connection.AbstractEmulatedXAResource
      Throws:
      XAException
    • end

      public void end(Xid xid, int flags) throws XAException
      Specified by:
      end in interface XAResource
      Overrides:
      end in class org.datanucleus.store.connection.AbstractEmulatedXAResource
      Throws:
      XAException