Package org.fto.jthink.jdbc

Examples of org.fto.jthink.jdbc.JDBCTransaction.commit()


      }
      /* 执行SQ语句 */
      int[] rs = sqlExecutor.executeBatch(sqls);
      System.out.println(rs[0]+","+rs[1]);
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{
View Full Code Here


      }
      /* 执行SQ语句 */
      sqlExecutor.execute(sql);
     
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{
View Full Code Here

      Object rs = sqlExecutor.execute(sql);
     
      System.out.println("update rows="+rs);
     
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{
View Full Code Here

      Object rs = sqlExecutor.execute(sql);
     
      System.out.println("delete rows="+rs);
     
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{
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.