Package org.apache.jena.jdbc.results.metadata.columns

Examples of org.apache.jena.jdbc.results.metadata.columns.ByteColumn


     *
     * @throws SQLException
     */
    @Test
    public void meta_result_set_byte_01() throws SQLException {
        MetaResultSet results = new MetaResultSet(new ColumnInfo[] { new ByteColumn("Test", ResultSetMetaData.columnNullable,
                true) }, new Object[][] { { (byte) 0x10 } });

        Assert.assertTrue(results.next());
        byte value = results.getByte(1);
        Assert.assertEquals(0x10, value);
View Full Code Here


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

        Assert.assertTrue(results.next());
        byte value = results.getByte(1);
        Assert.assertEquals(0x0, value);
View Full Code Here

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

        Assert.assertTrue(results.next());
        double value = results.getDouble(1);
        Assert.assertEquals(0d, value, 0d);
View Full Code Here

        } else if (dtUri.equals(XSD.unsignedShort.toString())) {
            // Unsigned Short Integer column
            return new IntegerColumn(var, nullable, false);
        } else if (dtUri.equals(XSD.xbyte.toString())) {
            // Signed Byte
            return new ByteColumn(var, nullable, true);
        } else if (dtUri.equals(XSD.unsignedByte.toString())) {
            // Unsigned Byte
            return new ByteColumn(var, nullable, false);
        } else if (dtUri.equals(XSD.time.toString())) {
            // Time column
            return new TimeColumn(var, nullable);
        } else if (dtUri.equals(XSD.xboolean.toString())) {
            // Boolean column
View Full Code Here

        } else if (dtUri.equals(XSD.unsignedShort.toString())) {
            // Unsigned Short Integer column
            return new IntegerColumn(var, nullable, false);
        } else if (dtUri.equals(XSD.xbyte.toString())) {
            // Signed Byte
            return new ByteColumn(var, nullable, true);
        } else if (dtUri.equals(XSD.unsignedByte.toString())) {
            // Unsigned Byte
            return new ByteColumn(var, nullable, false);
        } else if (dtUri.equals(XSD.time.toString())) {
            // Time column
            return new TimeColumn(var, nullable);
        } else if (dtUri.equals(XSD.xboolean.toString())) {
            // Boolean column
View Full Code Here

TOP

Related Classes of org.apache.jena.jdbc.results.metadata.columns.ByteColumn

Copyright © 2018 www.massapicom. 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.