Salome HOME
Sort study and knowledge results functionalities are implemented
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / dto / StudyDTO.java
index 6221a38f547765e782f6e95123ee26b6bcb6a54f..cd0ad8c7ff57ee614ba123799284b01256580c62 100644 (file)
@@ -11,6 +11,7 @@
 package org.splat.service.dto;
 
 import java.io.Serializable;
+import java.util.Date;
 
 import org.splat.dal.bo.som.ProgressState;
 
@@ -44,13 +45,21 @@ public class StudyDTO implements Proxy, Serializable {
         * Type.
         */
        private transient String _type;
+       /**
+        * Creation date.
+        */
+       private transient Date _date;
+       /**
+        * Last modification date.
+        */
+       private Date _lastModificationDate;
        /**
         * Serialization version id.
         */
        private static final long serialVersionUID = -4386494192709562221L;
 
        /**
-        * Costructor from properties.
+        * Constructor from properties except for creation and modification dates.
         * 
         * @param id
         *            study persistent id
@@ -125,4 +134,36 @@ public class StudyDTO implements Proxy, Serializable {
        public String getType() {
                return _type;
        }
+
+       /**
+        * Get the date.
+        * @return the date
+        */
+       public Date getDate() {
+               return _date;
+       }
+
+       /**
+        * Set the date.
+        * @param date the date to set
+        */
+       public void setDate(final Date date) {
+               _date = date;
+       }
+
+       /**
+        * Get the lastModificationDate.
+        * @return the lastModificationDate
+        */
+       public Date getLastModificationDate() {
+               return _lastModificationDate;
+       }
+
+       /**
+        * Set the lastModificationDate.
+        * @param lastModificationDate the lastModificationDate to set
+        */
+       public void setLastModificationDate(final Date lastModificationDate) {
+               _lastModificationDate = lastModificationDate;
+       }
 }