001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 Object[][] TABLE_COLUMNS = {
027                    {"emailAddress", new Integer(Types.VARCHAR)},
028                    {"userId", new Integer(Types.VARCHAR)}
029            };
030    
031            public static 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    }