Package org.adbcj

Examples of org.adbcj.Row


     
      Assert.assertEquals(6, resultSet.size());
     
      Iterator<Row> i = resultSet.iterator();
     
      Row nullRow = null;
      Row row = i.next();
      if (row.get(0).isNull()) {
        nullRow = row;
        row = i.next();
      }
      Assert.assertEquals(row.get(0).getInt(), 0);
      Assert.assertEquals(row.get(1).getValue(), "Zero");
      row = i.next();
      Assert.assertEquals(row.get(0).getInt(), 1);
      Assert.assertEquals(row.get(1).getValue(), "One");
      row = i.next();
      Assert.assertEquals(row.get(0).getInt(), 2);
      Assert.assertEquals(row.get(1).getValue(), "Two");
      row = i.next();
      Assert.assertEquals(row.get(0).getInt(), 3);
      Assert.assertEquals(row.get(1).getValue(), "Three");
      row = i.next();
      Assert.assertEquals(row.get(0).getInt(), 4);
      Assert.assertEquals(row.get(1).getValue(), "Four");
 
      if (i.hasNext() && nullRow == null) {
        nullRow = i.next();
      }
     
View Full Code Here

TOP

Related Classes of org.adbcj.Row

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.