달력

42024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

'IT/DataBase'에 해당되는 글 1건

  1. 2010.06.07 iBatis 트랜잭션

iBatis 트랜잭션

IT/DataBase 2010. 6. 7. 14:56

SqlMapClient sqlMap = getSqlMapClient();

   

try{

sqlMap.startTransaction();

sqlMap.startBatch();

   

//여기에 쿼리호출

sqlMap.executeBatch();

sqlMap.commitTransaction();

   

}catch (Exception e) {

// TODO: handle exception

}finally{

sqlMap.endTransaction();

}

Posted by 만들고보자
|