LocalXAResource is a fake XAResource for non-XA connections. When a transaction is started the connection
auto-commit is turned off. When the connection is committed or rolled back, the commit or rollback method is
called on the connection and then the original auto-commit value is restored.
The LocalXAResource also respects the connection read-only setting. If the connection is read-only the commit
method will not be called, and the prepare method returns the XA_RDONLY.
It is assumed that the wrapper around a managed connection disables the setAutoCommit(), commit(), rollback() and
setReadOnly() methods while a transaction is in progress.
Fields inherited from interface javax.transaction.xa.XAResource
This method does nothing since the LocalXAConnection does not support two-phase-commit. This method will
return XAResource.XA_RDONLY if the connection isReadOnly(). This assumes that the physical connection is
wrapped with a proxy that prevents an application from changing the read-only flag while enrolled in a
Signals that a the connection has been enrolled in a transaction. This method saves off the current auto
commit flag, and then disables auto commit. The original auto commit setting is restored when the transaction