Package java.sql

Examples of java.sql.PreparedStatement.unwrap()


            Assert.assertTrue(stmt.isWrapperFor(DruidPooledPreparedStatement.class));
            Assert.assertNotNull(stmt.unwrap(DruidPooledPreparedStatement.class));
           
            Assert.assertTrue(stmt.isWrapperFor(java.sql.PreparedStatement.class));
            Assert.assertNotNull(stmt.unwrap(java.sql.PreparedStatement.class));

            ResultSet rs = stmt.executeQuery();

            Assert.assertNotNull(rs.unwrap(oracle.jdbc.OracleResultSet.class));
            Assert.assertTrue(rs.isWrapperFor(oracle.jdbc.OracleResultSet.class));
View Full Code Here


        Assert.assertNotNull(conn.unwrap(MockConnection.class));
       
        PreparedStatement stmt = conn.prepareStatement("select ?");

        Assert.assertTrue(stmt.isWrapperFor(Statement.class));
        Assert.assertNotNull(stmt.unwrap(Statement.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatement.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatement.class));

        Assert.assertTrue(stmt.isWrapperFor(StatementProxy.class));
View Full Code Here

        Assert.assertTrue(stmt.isWrapperFor(Statement.class));
        Assert.assertNotNull(stmt.unwrap(Statement.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatement.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatement.class));

        Assert.assertTrue(stmt.isWrapperFor(StatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(StatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxy.class));
View Full Code Here

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatement.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatement.class));

        Assert.assertTrue(stmt.isWrapperFor(StatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(StatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxyImpl.class));
View Full Code Here

        Assert.assertTrue(stmt.isWrapperFor(StatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(StatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxyImpl.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxyImpl.class));
       
        Assert.assertTrue(stmt.isWrapperFor(MockPreparedStatement.class));
View Full Code Here

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxy.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxy.class));

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxyImpl.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxyImpl.class));
       
        Assert.assertTrue(stmt.isWrapperFor(MockPreparedStatement.class));
        Assert.assertNotNull(stmt.unwrap(MockPreparedStatement.class));

        stmt.setObject(1, "aaa");
View Full Code Here

        Assert.assertTrue(stmt.isWrapperFor(PreparedStatementProxyImpl.class));
        Assert.assertNotNull(stmt.unwrap(PreparedStatementProxyImpl.class));
       
        Assert.assertTrue(stmt.isWrapperFor(MockPreparedStatement.class));
        Assert.assertNotNull(stmt.unwrap(MockPreparedStatement.class));

        stmt.setObject(1, "aaa");
        ResultSet rs = stmt.executeQuery();

        Assert.assertTrue(rs.isWrapperFor(ResultSet.class));
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.