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 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 }