Ejemplo n.º 1
0
  public static void main(String[] args) {

    SqlMapClient sqlMapClient = SqlConfig.getAtSqlMapInstance();
    try {
      sqlMapClient.startTransaction();
      ProviderAccountDao dao = new ProviderAccountDao(sqlMapClient);
      //			update for delete
      ProviderAccount oldAccount = new ProviderAccount();
      oldAccount.setTxnId("54321");
      oldAccount.setDeleted(1L);
      oldAccount.setUpdatedBy("test");
      oldAccount.setUpdatedDate(new Date());
      dao.updateDeleted(oldAccount);
      //			insert new record
      sqlMapClient.commitTransaction();
    } catch (Exception e) {
      try {
        sqlMapClient.endTransaction();
      } catch (SQLException e1) {

      }
    }
  }
Ejemplo n.º 2
0
 public ReservedTelcoDao() {
   sqlMapClient = SqlConfig.getAtSqlMapInstance();
 }
Ejemplo n.º 3
0
 public SimTransactionDao() {
   sqlMapClient = SqlConfig.getAtSqlMapInstance();
 }
Ejemplo n.º 4
0
 public ProviderAccountDao() {
   sqlMapClient = SqlConfig.getAtSqlMapInstance();
 }