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 CyrusVirtual implements Serializable {
025    
026            public static final Object[][] TABLE_COLUMNS = {
027                    {"emailAddress", new Integer(Types.VARCHAR)},
028                    {"userId", new Integer(Types.VARCHAR)}
029            };
030    
031            public static final String TABLE_NAME = "CyrusVirtual";
032    
033            public static final String TABLE_SQL_CREATE =
034                    "create table CyrusVirtual (emailAddress VARCHAR(75) not null " +
035                            "primary key, userId VARCHAR(75) not null)";
036    
037            public CyrusVirtual() {
038            }
039    
040            public CyrusVirtual(String emailAddress, long userId) {
041                    this(emailAddress, String.valueOf(userId));
042            }
043    
044            public CyrusVirtual(String emailAddress, String userId) {
045                    _emailAddress = emailAddress;
046                    _userId = userId;
047            }
048    
049            public String getEmailAddress() {
050                    return _emailAddress;
051            }
052    
053            public String getUserId() {
054                    return _userId;
055            }
056    
057            public void setEmailAddress(String emailAddress) {
058                    _emailAddress = emailAddress;
059            }
060    
061            public void setUserId(String userId) {
062                    _userId = userId;
063            }
064    
065            private String _emailAddress;
066            private String _userId;
067    
068    }