public Connection getConnection() throws SQLException { if (!m_bInTransaction) { ensureConnection(); } return m_c; }
public void begin() throws SQLException { if (m_bInTransaction) { throw new SQLException("Already in transaction"); } else { ensureConnection(); m_c.setAutoCommit(false); m_bInTransaction = true; } }