@Override protected void resetConnection(Connection connection) throws SQLException { if (!inDistributedTransaction()) { connection.setAutoCommit(true); } }
@Override public XAResource getXAResource() throws SQLException { return getManagedConnection().getXAResource(); }
public XAConnection getXAConnection(String user, String password) throws SQLException { if (internalDs == null) { initialize(); } FBConnection connection = (FBConnection) internalDs.getConnection(user, password); return new FBXAConnection(connection); }
protected boolean inDistributedTransaction() throws SQLException { return getManagedConnection().inDistributedTransaction(); }
public XAConnection getXAConnection(String user, String password) throws SQLException { if (internalDs == null) { initialize(); } FBConnection connection = (FBConnection) internalDs.getConnection(user, password); return new FBXAConnection(connection); }
@Override protected void resetConnection(Connection connection) throws SQLException { if (!inDistributedTransaction()) { connection.setAutoCommit(true); } }
@Override public XAResource getXAResource() throws SQLException { return getManagedConnection().getXAResource(); }
protected boolean isRollbackAllowed() throws SQLException { return !(xaOwner.inDistributedTransaction() || connection.getAutoCommit()); } }
protected boolean inDistributedTransaction() throws SQLException { return getManagedConnection().inDistributedTransaction(); }
protected boolean isRollbackAllowed() throws SQLException { return !(xaOwner.inDistributedTransaction() || connection.getAutoCommit()); } }