Package java.sql

Examples of java.sql.ResultSet.unwrap()


            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));
           
            Assert.assertTrue(rs.isWrapperFor(DruidPooledResultSet.class));
            Assert.assertNotNull(rs.unwrap(DruidPooledResultSet.class));
           
View Full Code Here


            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

            Assert.assertFalse(stmt.isWrapperFor(java.sql.PreparedStatement.class));
            Assert.assertNull(stmt.unwrap(java.sql.PreparedStatement.class));

            ResultSet rs = stmt.executeQuery();

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

            Assert.assertNull(rs.unwrap(oracle.jdbc.OracleResultSet.class));
            Assert.assertFalse(rs.isWrapperFor(oracle.jdbc.OracleResultSet.class));
           
            Assert.assertTrue(rs.isWrapperFor(DruidPooledResultSet.class));
            Assert.assertNotNull(rs.unwrap(DruidPooledResultSet.class));
           
            Assert.assertFalse(rs.isWrapperFor(java.sql.ResultSet.class));
            Assert.assertNull(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.assertFalse(rs.isWrapperFor(java.sql.ResultSet.class));
            Assert.assertNull(rs.unwrap(java.sql.ResultSet.class));

            rs.next();

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

            stmt.execute();
            rawStmt = stmt.unwrap(MockCallableStatement.class);

            ResultSet rs = (ResultSet) stmt.getObject(0);
           
            rawRs = rs.unwrap(MockResultSet.class);
           
            rs.next();
           
            rs.close();
            stmt.close();
View Full Code Here

            stmt.close();
           
            Assert.assertFalse(rawStmt.isClosed());
            Assert.assertTrue(rawRs.isClosed());
           
            rawRs = rs.unwrap(MockResultSet.class);
            Assert.assertNotNull(rawRs);

            conn.close();
        }
View Full Code Here

            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));
           
            Assert.assertTrue(rs.isWrapperFor(DruidPooledResultSet.class));
            Assert.assertNotNull(rs.unwrap(DruidPooledResultSet.class));
           
View Full Code Here

            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

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.