create DateBean, UserBean, TotalBean
[proteocache.git] / datadb / compbio / cassandra / DataBase.java
index c6777fc..57063ec 100644 (file)
@@ -6,21 +6,22 @@ import java.util.Collections;
 
 public class DataBase {
        private String date;
-       private int total;                              // total number of jobs
-       private int totalOK;                        // number of jobs with execution status OK
-       private int totalStopped;                        // number of jobs with execution status STOPPED
-       private int totalError;                         // number of jobs with execution status Jpred ERROR
+       private int total;                                      // total number of jobs
+       private int totalOK;                            // number of jobs with execution status OK
+       private int totalStopped;                        // number of jobs with execution status STOPPED
+       private int totalError;                         // number of jobs with execution status Jpred ERROR
        private int totalTimeOut;                       // number of jobs with execution status TIMEOUT
        private int totalJobs;
        private int totalId;                            // total jobs for current protein sequence
        private String id;
+       private String ip;
        private String prot;                            // protein sequence
        private String jpred;
-       private List<String> subProt;           // protein sequence divided by several parts for highlighting the particular part
        private List<Integer> timeRez;
        private List<Integer> timeTotalExec;
-       private StructureJobLog logInfo;
-       private AnnotatedProteinSequenceBean predictions;
+       private JobBean logInfo;
+       private ProteinBean predictions;
+
        public DataBase() {
        }
 
@@ -34,6 +35,8 @@ public class DataBase {
        }
 
        public String getDate() {
+               if (null == date)
+                       return "1/1/1970";
                return date;
        }
 
@@ -116,13 +119,13 @@ public class DataBase {
        public String getId() {
                return id;
        }
-
-       public void setSubProt(List<String> subProt) {
-               this.subProt = subProt;
+       
+       public void setIp(String ip) {
+               this.ip = ip;
        }
 
-       public List<String> getSubProt() {
-               return subProt;
+       public String getIp() {
+               return ip;
        }
 
        public void setTimeRez(List<Integer> timeRez) {
@@ -141,19 +144,19 @@ public class DataBase {
                return timeTotalExec;
        }
        
-       public void setLogInfo(StructureJobLog logInfo){
+       public void setLogInfo(JobBean logInfo){
                this.logInfo = logInfo;
        }
        
-       public StructureJobLog getLogInfo() {
+       public JobBean getLogInfo() {
                return logInfo;
        }
        
-       public void setPredictions(AnnotatedProteinSequenceBean predictions){
+       public void setPredictions(ProteinBean predictions){
                this.predictions = predictions;
        }
        
-       public AnnotatedProteinSequenceBean getPredictions() {
+       public ProteinBean getPredictions() {
                return predictions;
        }