Exemplo n.º 1
0
 public static void updateTransac_CheckPoint()
 {
     Clustering_Users_DAO dao = null;
     System_Setting transac_check_point = getTransac_CheckPoint();
     try
     {
         dao = new Clustering_Users_DAO();
         dao.beginTransaction();
         if (ConstantValues.SST_TRANSAC_CP.Equals(transac_check_point.Key))
         {
             if (transac_check_point.Values.Count > 0)
             {
                 dao.updateTransac_CheckPoint(ConstantValues.SST_TRANSAC_CP);
             }
             else
             {
                 dao.addTransac_CheckPoint(ConstantValues.SST_TRANSAC_CP);
             }
         }
         dao.commitTransaction();
     }
     catch (Exception ex)
     {
         dao.rollbackTransaction();
         throw ex;
     }
 }