Ejemplo n.º 1
0
 public int checkProcess()
 {
     int processType = 0;
     Clustering_Users_DAO dao = null;
     try
     {
         dao = new Clustering_Users_DAO();
         dao.beginTransaction();
         ClusterSchedule cs = dao.getLastClusterSchedule();
         if (null != cs)
         {
             if (null == cs.StopTime)
             {
                 processType = 1;
             }
         }
         dao.commitTransaction();
         return processType;
     }
     catch (Exception ex)
     {
         dao.rollbackTransaction();
         throw ex;
     }
 }