Examples of MetaResultSet


Examples of org.apache.jena.jdbc.metadata.results.MetaResultSet

     *
     * @throws SQLException
     */
    @Test
    public void meta_result_set_decimal_02() throws SQLException {
        MetaResultSet results = new MetaResultSet(
                new ColumnInfo[] { new DecimalColumn("Test", ResultSetMetaData.columnNullable) }, new Object[][] { { null } });

        Assert.assertTrue(results.next());
        BigDecimal value = results.getBigDecimal(1);
        Assert.assertEquals(null, value);
        Assert.assertTrue(results.wasNull());

        Assert.assertFalse(results.next());
        results.close();
        Assert.assertTrue(results.isClosed());
    }
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.