001
014
015 package com.liferay.mail.model;
016
017 import java.io.Serializable;
018
019 import java.sql.Types;
020
021
024 public class CyrusUser implements Serializable {
025
026 public static final Object[][] TABLE_COLUMNS = {
027 {"userId", new Integer(Types.VARCHAR)},
028 {"password_", new Integer(Types.VARCHAR)}
029 };
030
031 public static final String TABLE_NAME = "CyrusUser";
032
033 public static final String TABLE_SQL_CREATE =
034 "create table CyrusUser (userId VARCHAR(75) not null primary key, " +
035 "password_ VARCHAR(75) not null)";
036
037 public CyrusUser() {
038 }
039
040 public CyrusUser(long userId, String password) {
041 this(String.valueOf(userId), password);
042 }
043
044 public CyrusUser(String userId, String password) {
045 _userId = userId;
046 _password = password;
047 }
048
049 public String getPassword() {
050 return _password;
051 }
052
053 public String getUserId() {
054 return _userId;
055 }
056
057 public void setPassword(String password) {
058 _password = password;
059 }
060
061 public void setUserId(String userId) {
062 _userId = userId;
063 }
064
065 private String _password;
066 private String _userId;
067
068 }