Examples of NRows


Examples of com.bleujin.framework.db.NRows

    }
  }
 
  public void testException() throws Exception {
    Rows rows = dc.createUserCommand("select * from dual").execQuery() ;
    NRows nr = new NRows(rows, new RuntimeException("Exception occured. Confirm cause[ex.getCause()]")) ;
   
    nr.next() ;
    try {
      nr.getString("abc") ;
      fail() ;
    } catch(RuntimeException e){
      assertTrue(e.getCause() instanceof SQLException) ;
    }
  }
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.