manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1601386 - /manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
Date Mon, 09 Jun 2014 13:56:22 GMT
Author: kwright
Date: Mon Jun  9 13:56:22 2014
New Revision: 1601386

URL: http://svn.apache.org/r1601386
Log:
Finish job table upgrade

Modified:
    manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java

Modified: manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java?rev=1601386&r1=1601385&r2=1601386&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
(original)
+++ manifoldcf/branches/CONNECTORS-946/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
Mon Jun  9 13:56:22 2014
@@ -442,6 +442,23 @@ public class Jobs extends org.apache.man
           Map insertMap = new HashMap();
           insertMap.put(assessmentStateField,new ColumnDescription("CHAR(1)",false,true,null,null,false));
           performAlter(insertMap,null,null,null);
+          String query;
+          ArrayList list = new ArrayList();
+          HashMap map = new HashMap();
+          query = buildConjunctionClause(list,new ClauseDescription[]{
+            new MultiClause(statusField,new Object[]{
+              statusToString(STATUS_ACTIVE_NOOUTPUT),
+              statusToString(STATUS_ACTIVE_NEITHER)})});
+          map.put(statusField,statusToString(STATUS_ACTIVE_UNINSTALLED));
+          performUpdate(map,"WHERE "+query,list,null);
+          list.clear();
+          map.clear();
+          query = buildConjunctionClause(list,new ClauseDescription[]{
+            new MultiClause(statusField,new Object[]{
+              statusToString(STATUS_ACTIVESEEDING_NOOUTPUT),
+              statusToString(STATUS_ACTIVESEEDING_NEITHER)})});
+          map.put(statusField,statusToString(STATUS_ACTIVESEEDING_UNINSTALLED));
+          performUpdate(map,"WHERE "+query,list,null);
         }
       }
 



Mime
View raw message