1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.mail.model;
16  
17  import java.io.Serializable;
18  
19  import java.sql.Types;
20  
21  /**
22   * <a href="CyrusUser.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Brian Wing Shun Chan
25   */
26  public class CyrusUser implements Serializable {
27  
28      public static Object[][] TABLE_COLUMNS = {
29          {"userId", new Integer(Types.VARCHAR)},
30          {"password_", new Integer(Types.VARCHAR)}
31      };
32  
33      public static String TABLE_NAME = "CyrusUser";
34  
35      public static final String TABLE_SQL_CREATE =
36          "create table CyrusUser (userId VARCHAR(75) not null primary key, " +
37              "password_ VARCHAR(75) not null)";
38  
39      public CyrusUser() {
40      }
41  
42      public CyrusUser(long userId, String password) {
43          this(String.valueOf(userId), password);
44      }
45  
46      public CyrusUser(String userId, String password) {
47          _userId = userId;
48          _password = password;
49      }
50  
51      public String getPassword() {
52          return _password;
53      }
54  
55      public String getUserId() {
56          return _userId;
57      }
58  
59      public void setPassword(String password) {
60          _password = password;
61      }
62  
63      public void setUserId(String userId) {
64          _userId = userId;
65      }
66  
67      private String _password;
68      private String _userId;
69  
70  }