Package com.bleujin.framework.db

Examples of com.bleujin.framework.db.Row


    assertEquals(1, rows.getRowCount()) ;
  }
 
  public void testRow() throws Exception {
    Rows rows = dc.getRows("select * from dual") ;
    Row row = rows.firstRow() ;
   
    assertNotNull(row.getString(1)) ;
  }
View Full Code Here


  String query = "select * from copy_sample" ;

  public void testFirstRow() throws Exception {
    Rows rows  = dc.getRows(query) ;
   
    Row row = rows.firstRow() ;
   
   
    assertEquals("01", row.getString(2)) ;
    assertEquals("1", row.getString(1)) ;

    assertEquals("01", row.getString("no2")) ;
    assertEquals("1", row.getString("no1")) ;

    assertEquals("1", row.getString("no1")) // auto convert int -> string
  }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.db.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.