1 31 package org.blojsom.blog.database; 32 33 import org.blojsom.blog.User; 34 35 import java.util.Date ; 36 import java.util.Map ; 37 import java.util.HashMap ; 38 import java.io.Serializable ; 39 40 47 public class DatabaseUser implements User, Serializable { 48 49 protected Integer _id; 50 protected Integer _blogId; 51 protected String _userLogin; 52 protected String _userPassword; 53 protected String _userName; 54 protected String _userEmail; 55 protected String _userStatus; 56 protected Date _userRegistered; 57 protected Map _metaData; 58 59 62 public DatabaseUser() { 63 } 64 65 70 public Integer getId() { 71 return _id; 72 } 73 74 79 public void setId(Integer id) { 80 _id = id; 81 } 82 83 88 public Integer getBlogId() { 89 return _blogId; 90 } 91 92 97 public void setBlogId(Integer blogId) { 98 _blogId = blogId; 99 } 100 101 106 public String getUserLogin() { 107 return _userLogin; 108 } 109 110 115 public void setUserLogin(String userLogin) { 116 _userLogin = userLogin; 117 } 118 119 124 public String getUserPassword() { 125 return _userPassword; 126 } 127 128 133 public void setUserPassword(String userPassword) { 134 _userPassword = userPassword; 135 } 136 137 142 public String getUserName() { 143 return _userName; 144 } 145 146 151 public void setUserName(String userName) { 152 _userName = userName; 153 } 154 155 160 public String getUserEmail() { 161 return _userEmail; 162 } 163 164 169 public void setUserEmail(String userEmail) { 170 _userEmail = userEmail; 171 } 172 173 178 public Date getUserRegistered() { 179 return _userRegistered; 180 } 181 182 187 public void setUserRegistered(Date userRegistered) { 188 _userRegistered = userRegistered; 189 } 190 191 196 public String getUserStatus() { 197 return _userStatus; 198 } 199 200 205 public void setUserStatus(String userStatus) { 206 _userStatus = userStatus; 207 } 208 209 214 public Map getMetaData() { 215 if (_metaData == null) { 216 return new HashMap (); 217 } 218 219 return _metaData; 220 } 221 222 223 228 public void setMetaData(Map metaData) { 229 _metaData = metaData; 230 } 231 } 232 | Popular Tags |