001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.mail.model;
016    
017    import java.io.Serializable;
018    
019    import java.sql.Types;
020    
021    /**
022     * @author Brian Wing Shun Chan
023     */
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    }