Examples of FloatColumn


Examples of com.google.code.or.common.glossary.column.FloatColumn

      Integer i = ec.getValue();
      return i;
    }
    else if (s instanceof FloatColumn)
    {
      FloatColumn fc = (FloatColumn) s;
      Float f = fc.getValue();
      return f;
    }
    else if (s instanceof Int24Column)
    {
      Int24Column ic = (Int24Column) s;
View Full Code Here

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

     *
     * @throws SQLException
     */
    @Test
    public void meta_result_set_float_01() throws SQLException {
        MetaResultSet results = new MetaResultSet(new ColumnInfo[] { new FloatColumn("Test", ResultSetMetaData.columnNullable) },
                new Object[][] { { 0.123f } });

        Assert.assertTrue(results.next());
        float value = results.getFloat(1);
        Assert.assertEquals(0.123f, value, 0f);
View Full Code Here

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

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

        Assert.assertTrue(results.next());
        float value = results.getFloat(1);
        Assert.assertEquals(0f, value, 0f);
View Full Code Here

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

        } else if (dtUri.equals(XSD.xdouble.toString())) {
            // Double column
            return new DoubleColumn(var, nullable);
        } else if (dtUri.equals(XSD.xfloat.toString())) {
            // Float column
            return new FloatColumn(var, nullable);
        } else if (dtUri.equals(XSD.xstring.toString())) {
            // String column
            return new StringColumn(var, nullable);
        } else {
            // Anything else we'll treat as a String
View Full Code Here

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

        } else if (dtUri.equals(XSD.xdouble.toString())) {
            // Double column
            return new DoubleColumn(var, nullable);
        } else if (dtUri.equals(XSD.xfloat.toString())) {
            // Float column
            return new FloatColumn(var, nullable);
        } else if (dtUri.equals(XSD.xstring.toString())) {
            // String column
            return new StringColumn(var, nullable);
        } else {
            // Anything else we'll treat as a String
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.