Examples of wasNull()


Examples of org.apache.poi.hpsf.DocumentSummaryInformation.wasNull()

        assertEquals(null, si.getTitle());
        assertEquals(0, si.getWordCount());
        assertTrue(si.wasNull());
   
        assertEquals(0, dsi.getByteCount());
        assertTrue(dsi.wasNull());
        assertEquals(null, dsi.getCategory());
        assertEquals(null, dsi.getCustomProperties());
        // FIXME (byte array properties not yet implemented): assertEquals(null, dsi.getDocparts());
        // FIXME (byte array properties not yet implemented): assertEquals(null, dsi.getHeadingPair());
        assertEquals(0, dsi.getHiddenCount());
View Full Code Here

Examples of org.apache.poi.hpsf.SummaryInformation.wasNull()

        dsi = new DocumentSummaryInformation(ps);
   
        assertEquals(null, si.getApplicationName());
        assertEquals(null, si.getAuthor());
        assertEquals(0, si.getCharCount());
        assertTrue(si.wasNull());
        assertEquals(null, si.getComments());
        assertEquals(null, si.getCreateDateTime());
        assertEquals(0, si.getEditTime());
        assertTrue(si.wasNull());
        assertEquals(null, si.getKeywords());
View Full Code Here

Examples of org.h2.tools.SimpleResultSet.wasNull()

                addColumn(null, 0, 0, 0);
        rs.next();
        assertEquals(1, rs.getInt(1));
        assertEquals("1", rs.getString(1));
        assertEquals("1", rs.getString("C1"));
        assertFalse(rs.wasNull());
        assertEquals("C1", rs.getMetaData().getColumnLabel(1));
        assertEquals("C1", rs.getColumnName(1));
        assertEquals(ResultSetMetaData.columnNullableUnknown, rs.getMetaData().isNullable(1));
        assertFalse(rs.getMetaData().isAutoIncrement(1));
        assertTrue(rs.getMetaData().isCaseSensitive(1));
View Full Code Here

Examples of org.teiid.jdbc.CallableStatementImpl.wasNull()

    ResultSetImpl rs = Mockito.mock(ResultSetImpl.class);
    mmcs.resultSet = rs;
    Mockito.stub(rs.getOutputParamValue(1)).toReturn(null);
    Mockito.stub(rs.getOutputParamValue(2)).toReturn(Boolean.TRUE);
    mmcs.getBoolean(1);
    assertTrue(mmcs.wasNull());
    assertTrue(mmcs.getBoolean(2));
    assertFalse(mmcs.wasNull());
  }
 
  public void testGetOutputParameter() throws Exception {
View Full Code Here

Examples of org.voltdb.VoltTable.wasNull()

                key.add(c_d_id);
                return m_district.contains(key);
            } else if (m_table.equalsIgnoreCase("history")) {
                short h_w_id = (short) row.getLong("H_W_ID");
                byte h_d_id = (byte) row.getLong("H_D_ID");
                if (row.wasNull()) {
                    System.err.println("row was null 1");
                    return false;
                }
                List<Number> districtKey = new ArrayList<Number>(2);
                districtKey.add(h_w_id);
View Full Code Here

Examples of org.voltdb.VoltTableRow.wasNull()

                    assertEquals(0, results[0].asScalarLong());
                } else {
                    final VoltTableRow row = results[0].fetchRow(0);
                    row.get(0, results[0].getColumnType(0));
                    if (!isHSQL()) {
                        assertTrue(row.wasNull());
                    }
                }
            }
            // Do avg separately since the column is a float and makes
            // asScalarLong() unhappy
View Full Code Here

Examples of uk.org.ogsadai.tuple.Tuple.wasNull()

                if (type.equalsIgnoreCase("integer") ||
                        type.equalsIgnoreCase("float") ||
                        type.equalsIgnoreCase("double"))
                {
                    double value = tuple.getDouble(i);
                    if (tuple.wasNull())
                    {
                        missingData[i]++;
                    }                                       
                    else
                    {
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.