Package java.sql

Examples of java.sql.ResultSet.unwrap()


            Assert.assertNotNull(rs.unwrap(oracle.jdbc.OracleResultSet.class));
            Assert.assertTrue(rs.isWrapperFor(oracle.jdbc.OracleResultSet.class));
           
            Assert.assertTrue(rs.isWrapperFor(DruidPooledResultSet.class));
            Assert.assertNotNull(rs.unwrap(DruidPooledResultSet.class));
           
            Assert.assertTrue(rs.isWrapperFor(java.sql.ResultSet.class));
            Assert.assertNotNull(rs.unwrap(java.sql.ResultSet.class));

            rs.next();
View Full Code Here


           
            Assert.assertTrue(rs.isWrapperFor(DruidPooledResultSet.class));
            Assert.assertNotNull(rs.unwrap(DruidPooledResultSet.class));
           
            Assert.assertTrue(rs.isWrapperFor(java.sql.ResultSet.class));
            Assert.assertNotNull(rs.unwrap(java.sql.ResultSet.class));

            rs.next();

            rs.close();
            stmt.close();
View Full Code Here

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

        Assert.assertTrue(rs.isWrapperFor(ResultSet.class));
        Assert.assertNotNull(rs.unwrap(ResultSet.class));

        Assert.assertTrue(rs.isWrapperFor(ResultSetProxy.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxy.class));
       
        Assert.assertTrue(rs.isWrapperFor(ResultSetProxyImpl.class));
View Full Code Here

        Assert.assertTrue(rs.isWrapperFor(ResultSet.class));
        Assert.assertNotNull(rs.unwrap(ResultSet.class));

        Assert.assertTrue(rs.isWrapperFor(ResultSetProxy.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxy.class));
       
        Assert.assertTrue(rs.isWrapperFor(ResultSetProxyImpl.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxyImpl.class));
       
        Assert.assertTrue(rs.isWrapperFor(MockResultSet.class));
View Full Code Here

        Assert.assertTrue(rs.isWrapperFor(ResultSetProxy.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxy.class));
       
        Assert.assertTrue(rs.isWrapperFor(ResultSetProxyImpl.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxyImpl.class));
       
        Assert.assertTrue(rs.isWrapperFor(MockResultSet.class));
        Assert.assertNotNull(rs.unwrap(MockResultSet.class));
       
        rs.close();
View Full Code Here

       
        Assert.assertTrue(rs.isWrapperFor(ResultSetProxyImpl.class));
        Assert.assertNotNull(rs.unwrap(ResultSetProxyImpl.class));
       
        Assert.assertTrue(rs.isWrapperFor(MockResultSet.class));
        Assert.assertNotNull(rs.unwrap(MockResultSet.class));
       
        rs.close();

        stmt.close();
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.