D:\Sam\InterviewsMaterial\SiteWorx\SiteWorxTest\src\java\dataobjects\UserOutputDAO.java
  1 /*
  2  * To change this template, choose Tools | Templates
  3  * and open the template in the editor.
  4  */
  5 package dataobjects;
  6 
  7 /**
  8  *
  9  * @author sameldin
 10  */
 11 import utils.*;
 12 import constants.*;
 13 
 14 public class UserOutputDAO 
 15 {
 16     private String      userFirstName                 = Constants.NO_VALUE_IN_STRING;
 17     private String      userLastName                  = Constants.NO_VALUE_IN_STRING;
 18     private String      userEmailAddress              = Constants.NO_VALUE_IN_STRING;
 19     private long        userID                        = Constants.NO_VALUE;
 20     private long        userStartingTimeStamp         = Constants.NO_VALUE;
 21     private int         totalCount                    = Constants.NO_VALUE;
 22     private long        sumValue                      = Constants.NO_VALUE;
 23     private double      averageValue                  = Constants.NO_VALUE;
 24     private double      medianValue                   = Constants.NO_VALUE;
 25     private int         highestValue                  = Constants.NO_VALUE;
 26     private int         lowestValue                   = Constants.NO_VALUE;
 27     
 28     /**
 29      * @return the userFirstName
 30      */
 31     public String getUserFirstName() {
 32         return userFirstName;
 33     }
 34 
 35     /**
 36      * @param userFirstName the userFirstName to set
 37      */
 38     public void setUserFirstName(String userFirstName) {
 39         this.userFirstName = userFirstName;
 40     }
 41 
 42     /**
 43      * @return the userLastName
 44      */
 45     public String getUserLastName() {
 46         return userLastName;
 47     }
 48 
 49     /**
 50      * @param userLastName the userLastName to set
 51      */
 52     public void setUserLastName(String userLastName) {
 53         this.userLastName = userLastName;
 54     }
 55 
 56     /**
 57      * @return the userEmailAddress
 58      */
 59     public String getUserEmailAddress() {
 60         return userEmailAddress;
 61     }
 62 
 63     /**
 64      * @param userEmailAddress the userEmailAddress to set
 65      */
 66     public void setUserEmailAddress(String userEmailAddress) {
 67         this.userEmailAddress = userEmailAddress;
 68     }
 69 
 70     /**
 71      * @return the userID
 72      */
 73     public long getUserID() {
 74         return userID;
 75     }
 76 
 77     /**
 78      * @param userID the userID to set
 79      */
 80     public void setUserID(long userID) {
 81         this.userID = userID;
 82     }
 83 
 84     /**
 85      * @return the cliectStartingTimeStamp
 86      */
 87     public long getUserStartingTimeStamp() {
 88         return userStartingTimeStamp;
 89     }
 90 
 91     /**
 92      * @param cliectStartingTimeStamp the cliectStartingTimeStamp to set
 93      */
 94     public void setuserStartingTimeStamp(long userStartingTimeStamp) {
 95         this.userStartingTimeStamp = userStartingTimeStamp;
 96     }
 97 
 98     /**
 99      * @return the totalCount
100      */
101     public int getTotalCount() {
102         return totalCount;
103     }
104 
105     /**
106      * @param totalCount the totalCount to set
107      */
108     public void setTotalCount(int totalCount) {
109         this.totalCount = totalCount;
110     }
111 
112     /**
113      * @return the sumValue
114      */
115     public long getSumValue() {
116         return sumValue;
117     }
118 
119     /**
120      * @param sumValue the sumValue to set
121      */
122     public void setSumValue(long sumValue) {
123         this.sumValue = sumValue;
124     }
125 
126     /**
127      * @return the averageValue
128      */
129     public double getAverageValue() {
130         return averageValue;
131     }
132 
133     /**
134      * @param averageValue the averageValue to set
135      */
136     public void setAverageValue(double averageValue) {
137         this.averageValue = averageValue;
138     }
139 
140     /**
141      * @return the medianValue
142      */
143     public double getMedianValue() {
144         return medianValue;
145     }
146 
147     /**
148      * @param medianValue the medianValue to set
149      */
150     public void setMedianValue(double medianValue) {
151         this.medianValue = medianValue;
152     }
153 
154     /**
155      * @return the highestValue
156      */
157     public int getHighestValue() {
158         return highestValue;
159     }
160 
161     /**
162      * @param highestValue the highestValue to set
163      */
164     public void setHighestValue(int highestValue) {
165         this.highestValue = highestValue;
166     }
167 
168     /**
169      * @return the lowestValue
170      */
171     public int getLowestValue() {
172         return lowestValue;
173     }
174 
175     /**
176      * @param lowestValue the lowestValue to set
177      */
178     public void setLowestValue(int lowestValue) {
179         this.lowestValue = lowestValue;
180     }
181     /**
182      * @param toString for RanchersSignUpDataObject
183      */
184     public String toString() {
185                 return ("userFirstName                      "    + getUserFirstName()
186                                 + "userLastName             "    + getUserLastName()
187                                 + "userEmailAddress         "    + getUserEmailAddress()
188                                 + "user_ID                  "    + getUserID()
189                                 + "userStartingTimeStamp    "    + getUserStartingTimeStamp()
190                                 + "totalCount                 "    + getTotalCount()
191                                 + "sumValue                   "    + getSumValue()
192                                 + "averageValue               "    + getAverageValue()
193                                 + "medianValue                "    + getMedianValue()
194                                 + "highestValue               "    + getHighestValue() 
195                                 + "lowestValue                "    + getLowestValue());
196         }
197 }
198