Package ch.inftec.ju.db

Examples of ch.inftec.ju.db.JuConnUtil.doWork()


       
        // Create a new connUtil to make sure we'll see the changes there...
        JuConnUtil connUtil2 = JuConnUtils.build()
          .profile(JuUtils.getJuPropertyChain().get("ju-dbutil-test.profile", true))
          .create();
        connUtil2.doWork(new DbWork() {
          @Override
          public void execute(Connection conn) {
            Long id2 = JuConnUtils.asJdbcTemplate(conn).queryForLong("select id from juConnUtilTestTable where id=1");
            Assert.assertEquals(new Long(1), id2);
           
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.