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

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


     *
     * @throws SQLException
     */
    @Test
    public void meta_result_set_time_01() throws SQLException {
        MetaResultSet results = new MetaResultSet(new ColumnInfo[] { new TimeColumn("Test", ResultSetMetaData.columnNullable) },
                new Object[][] { { new Time(0) } });

        Assert.assertTrue(results.next());
        Time value = results.getTime(1);
        Assert.assertEquals(new Time(0), value);
View Full Code Here


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

        Assert.assertTrue(results.next());
        Time value = results.getTime(1);
        Assert.assertEquals(null, value);
View Full Code Here

        } 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
            return new BooleanColumn(var, nullable);
        } else if (dtUri.equals(XSD.xdouble.toString())) {
            // Double column
View Full Code Here

        } 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
            return new BooleanColumn(var, nullable);
        } else if (dtUri.equals(XSD.xdouble.toString())) {
            // Double column
View Full Code Here

TOP

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

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.