View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.beans;
5   
6   /**
7    * @author Martin
8    * 
9    */
10  public class TUser {
11  
12      private String name;
13      private String surname;
14      private String login;
15      private String password;
16      private String email;
17      private String comment;
18      private Integer userID;
19  
20      public TUser() {
21      }
22  
23      public TUser(String name, String surname, String login, String password,
24              String email, String comment, Integer userID) {
25          super();
26          this.name = name;
27          this.surname = surname;
28          this.login = login;
29          this.password = password;
30          this.email = email;
31          this.comment = comment;
32          this.userID = userID;
33      }
34  
35      /**
36       * @return the name
37       */
38      public String getName() {
39          return name;
40      }
41  
42      /**
43       * @param name
44       *                the name to set
45       */
46      public void setName(String name) {
47          this.name = name;
48      }
49  
50      /**
51       * @return the surname
52       */
53      public String getSurname() {
54          return surname;
55      }
56  
57      /**
58       * @param surname
59       *                the surname to set
60       */
61      public void setSurname(String surname) {
62          this.surname = surname;
63      }
64  
65      /**
66       * @return the login
67       */
68      public String getLogin() {
69          return login;
70      }
71  
72      /**
73       * @param login
74       *                the login to set
75       */
76      public void setLogin(String login) {
77          this.login = login;
78      }
79  
80      /**
81       * @return the password
82       */
83      public String getPassword() {
84          return password;
85      }
86  
87      /**
88       * @param password
89       *                the password to set
90       */
91      public void setPassword(String password) {
92          this.password = password;
93      }
94  
95      /**
96       * @return the email
97       */
98      public String getEmail() {
99          return email;
100     }
101 
102     /**
103      * @param email
104      *                the email to set
105      */
106     public void setEmail(String email) {
107         this.email = email;
108     }
109 
110     /**
111      * @return the comment
112      */
113     public String getComment() {
114         return comment;
115     }
116 
117     /**
118      * @param comment
119      *                the comment to set
120      */
121     public void setComment(String comment) {
122         this.comment = comment;
123     }
124 
125     /**
126      * @return the userID
127      */
128     public Integer getUserID() {
129         return userID;
130     }
131 
132     /**
133      * @param userID
134      *                the userID to set
135      */
136     public void setUserID(Integer userID) {
137         this.userID = userID;
138     }
139 
140     /* (non-Javadoc)
141      * @see java.lang.Object#toString()
142      */
143     @Override
144     public String toString() {
145         return this.surname;
146     }
147 
148 }