Package com.alibaba.druid.pool

Examples of com.alibaba.druid.pool.DruidPooledConnection.rollback()


        conn.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT);
        Assert.assertEquals(ResultSet.CLOSE_CURSORS_AT_COMMIT, conn.getHoldability());

        conn.setSavepoint();
        conn.setSavepoint("savepoint");
        conn.rollback();
        {
            Exception error = null;
            try {
                conn.rollback(null);
            } catch (SQLException e) {
View Full Code Here


        conn.setSavepoint("savepoint");
        conn.rollback();
        {
            Exception error = null;
            try {
                conn.rollback(null);
            } catch (SQLException e) {
                error = e;
            }
            Assert.assertNotNull(error);
        }
View Full Code Here

        conn.getConnection().close();
        {
            SQLException error = null;
            try {
                conn.rollback();
            } catch (SQLException ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }
View Full Code Here

        conn.getConnection().close();
        {
            SQLException error = null;
            try {
                conn.rollback(null);
            } catch (SQLException ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }
View Full Code Here

        SQLException exception = new SQLException("xx", "xxx", 28);
        mockConn.setError(exception);

        Exception rollbackError = null;
        try {
            conn.rollback();
        } catch (Exception ex) {
            rollbackError = ex;
        }
        Assert.assertNotNull(rollbackError);
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.