001 /** 002 * Copyright (c) 2000-present 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.portlet.announcements.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 022 import com.liferay.portal.model.ShardedModel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoBridge; 026 027 import java.io.Serializable; 028 029 /** 030 * The base model interface for the AnnouncementsDelivery service. Represents a row in the "AnnouncementsDelivery" database table, with each column mapped to a property of this class. 031 * 032 * <p> 033 * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl}. 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see AnnouncementsDelivery 038 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryImpl 039 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsDeliveryModelImpl 040 * @generated 041 */ 042 @ProviderType 043 public interface AnnouncementsDeliveryModel extends BaseModel<AnnouncementsDelivery>, 044 ShardedModel { 045 /* 046 * NOTE FOR DEVELOPERS: 047 * 048 * Never modify or reference this interface directly. All methods that expect a announcements delivery model instance should use the {@link AnnouncementsDelivery} interface instead. 049 */ 050 051 /** 052 * Returns the primary key of this announcements delivery. 053 * 054 * @return the primary key of this announcements delivery 055 */ 056 public long getPrimaryKey(); 057 058 /** 059 * Sets the primary key of this announcements delivery. 060 * 061 * @param primaryKey the primary key of this announcements delivery 062 */ 063 public void setPrimaryKey(long primaryKey); 064 065 /** 066 * Returns the delivery ID of this announcements delivery. 067 * 068 * @return the delivery ID of this announcements delivery 069 */ 070 public long getDeliveryId(); 071 072 /** 073 * Sets the delivery ID of this announcements delivery. 074 * 075 * @param deliveryId the delivery ID of this announcements delivery 076 */ 077 public void setDeliveryId(long deliveryId); 078 079 /** 080 * Returns the company ID of this announcements delivery. 081 * 082 * @return the company ID of this announcements delivery 083 */ 084 @Override 085 public long getCompanyId(); 086 087 /** 088 * Sets the company ID of this announcements delivery. 089 * 090 * @param companyId the company ID of this announcements delivery 091 */ 092 @Override 093 public void setCompanyId(long companyId); 094 095 /** 096 * Returns the user ID of this announcements delivery. 097 * 098 * @return the user ID of this announcements delivery 099 */ 100 public long getUserId(); 101 102 /** 103 * Sets the user ID of this announcements delivery. 104 * 105 * @param userId the user ID of this announcements delivery 106 */ 107 public void setUserId(long userId); 108 109 /** 110 * Returns the user uuid of this announcements delivery. 111 * 112 * @return the user uuid of this announcements delivery 113 */ 114 public String getUserUuid(); 115 116 /** 117 * Sets the user uuid of this announcements delivery. 118 * 119 * @param userUuid the user uuid of this announcements delivery 120 */ 121 public void setUserUuid(String userUuid); 122 123 /** 124 * Returns the type of this announcements delivery. 125 * 126 * @return the type of this announcements delivery 127 */ 128 @AutoEscape 129 public String getType(); 130 131 /** 132 * Sets the type of this announcements delivery. 133 * 134 * @param type the type of this announcements delivery 135 */ 136 public void setType(String type); 137 138 /** 139 * Returns the email of this announcements delivery. 140 * 141 * @return the email of this announcements delivery 142 */ 143 public boolean getEmail(); 144 145 /** 146 * Returns <code>true</code> if this announcements delivery is email. 147 * 148 * @return <code>true</code> if this announcements delivery is email; <code>false</code> otherwise 149 */ 150 public boolean isEmail(); 151 152 /** 153 * Sets whether this announcements delivery is email. 154 * 155 * @param email the email of this announcements delivery 156 */ 157 public void setEmail(boolean email); 158 159 /** 160 * Returns the sms of this announcements delivery. 161 * 162 * @return the sms of this announcements delivery 163 */ 164 public boolean getSms(); 165 166 /** 167 * Returns <code>true</code> if this announcements delivery is sms. 168 * 169 * @return <code>true</code> if this announcements delivery is sms; <code>false</code> otherwise 170 */ 171 public boolean isSms(); 172 173 /** 174 * Sets whether this announcements delivery is sms. 175 * 176 * @param sms the sms of this announcements delivery 177 */ 178 public void setSms(boolean sms); 179 180 /** 181 * Returns the website of this announcements delivery. 182 * 183 * @return the website of this announcements delivery 184 */ 185 public boolean getWebsite(); 186 187 /** 188 * Returns <code>true</code> if this announcements delivery is website. 189 * 190 * @return <code>true</code> if this announcements delivery is website; <code>false</code> otherwise 191 */ 192 public boolean isWebsite(); 193 194 /** 195 * Sets whether this announcements delivery is website. 196 * 197 * @param website the website of this announcements delivery 198 */ 199 public void setWebsite(boolean website); 200 201 @Override 202 public boolean isNew(); 203 204 @Override 205 public void setNew(boolean n); 206 207 @Override 208 public boolean isCachedModel(); 209 210 @Override 211 public void setCachedModel(boolean cachedModel); 212 213 @Override 214 public boolean isEscapedModel(); 215 216 @Override 217 public Serializable getPrimaryKeyObj(); 218 219 @Override 220 public void setPrimaryKeyObj(Serializable primaryKeyObj); 221 222 @Override 223 public ExpandoBridge getExpandoBridge(); 224 225 @Override 226 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 227 228 @Override 229 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 230 231 @Override 232 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 233 234 @Override 235 public Object clone(); 236 237 @Override 238 public int compareTo( 239 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery); 240 241 @Override 242 public int hashCode(); 243 244 @Override 245 public CacheModel<com.liferay.portlet.announcements.model.AnnouncementsDelivery> toCacheModel(); 246 247 @Override 248 public com.liferay.portlet.announcements.model.AnnouncementsDelivery toEscapedModel(); 249 250 @Override 251 public com.liferay.portlet.announcements.model.AnnouncementsDelivery toUnescapedModel(); 252 253 @Override 254 public String toString(); 255 256 @Override 257 public String toXmlString(); 258 }