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.model.BaseModel; 020 import com.liferay.portal.model.CacheModel; 021 import com.liferay.portal.model.ShardedModel; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.expando.model.ExpandoBridge; 025 026 import java.io.Serializable; 027 028 import java.util.Date; 029 030 /** 031 * The base model interface for the AnnouncementsFlag service. Represents a row in the "AnnouncementsFlag" database table, with each column mapped to a property of this class. 032 * 033 * <p> 034 * This interface and its corresponding implementation {@link com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl} 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.AnnouncementsFlagImpl}. 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see AnnouncementsFlag 039 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagImpl 040 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl 041 * @generated 042 */ 043 @ProviderType 044 public interface AnnouncementsFlagModel extends BaseModel<AnnouncementsFlag>, 045 ShardedModel { 046 /* 047 * NOTE FOR DEVELOPERS: 048 * 049 * Never modify or reference this interface directly. All methods that expect a announcements flag model instance should use the {@link AnnouncementsFlag} interface instead. 050 */ 051 052 /** 053 * Returns the primary key of this announcements flag. 054 * 055 * @return the primary key of this announcements flag 056 */ 057 public long getPrimaryKey(); 058 059 /** 060 * Sets the primary key of this announcements flag. 061 * 062 * @param primaryKey the primary key of this announcements flag 063 */ 064 public void setPrimaryKey(long primaryKey); 065 066 /** 067 * Returns the flag ID of this announcements flag. 068 * 069 * @return the flag ID of this announcements flag 070 */ 071 public long getFlagId(); 072 073 /** 074 * Sets the flag ID of this announcements flag. 075 * 076 * @param flagId the flag ID of this announcements flag 077 */ 078 public void setFlagId(long flagId); 079 080 /** 081 * Returns the company ID of this announcements flag. 082 * 083 * @return the company ID of this announcements flag 084 */ 085 @Override 086 public long getCompanyId(); 087 088 /** 089 * Sets the company ID of this announcements flag. 090 * 091 * @param companyId the company ID of this announcements flag 092 */ 093 @Override 094 public void setCompanyId(long companyId); 095 096 /** 097 * Returns the user ID of this announcements flag. 098 * 099 * @return the user ID of this announcements flag 100 */ 101 public long getUserId(); 102 103 /** 104 * Sets the user ID of this announcements flag. 105 * 106 * @param userId the user ID of this announcements flag 107 */ 108 public void setUserId(long userId); 109 110 /** 111 * Returns the user uuid of this announcements flag. 112 * 113 * @return the user uuid of this announcements flag 114 */ 115 public String getUserUuid(); 116 117 /** 118 * Sets the user uuid of this announcements flag. 119 * 120 * @param userUuid the user uuid of this announcements flag 121 */ 122 public void setUserUuid(String userUuid); 123 124 /** 125 * Returns the create date of this announcements flag. 126 * 127 * @return the create date of this announcements flag 128 */ 129 public Date getCreateDate(); 130 131 /** 132 * Sets the create date of this announcements flag. 133 * 134 * @param createDate the create date of this announcements flag 135 */ 136 public void setCreateDate(Date createDate); 137 138 /** 139 * Returns the entry ID of this announcements flag. 140 * 141 * @return the entry ID of this announcements flag 142 */ 143 public long getEntryId(); 144 145 /** 146 * Sets the entry ID of this announcements flag. 147 * 148 * @param entryId the entry ID of this announcements flag 149 */ 150 public void setEntryId(long entryId); 151 152 /** 153 * Returns the value of this announcements flag. 154 * 155 * @return the value of this announcements flag 156 */ 157 public int getValue(); 158 159 /** 160 * Sets the value of this announcements flag. 161 * 162 * @param value the value of this announcements flag 163 */ 164 public void setValue(int value); 165 166 @Override 167 public boolean isNew(); 168 169 @Override 170 public void setNew(boolean n); 171 172 @Override 173 public boolean isCachedModel(); 174 175 @Override 176 public void setCachedModel(boolean cachedModel); 177 178 @Override 179 public boolean isEscapedModel(); 180 181 @Override 182 public Serializable getPrimaryKeyObj(); 183 184 @Override 185 public void setPrimaryKeyObj(Serializable primaryKeyObj); 186 187 @Override 188 public ExpandoBridge getExpandoBridge(); 189 190 @Override 191 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 192 193 @Override 194 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 195 196 @Override 197 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 198 199 @Override 200 public Object clone(); 201 202 @Override 203 public int compareTo( 204 com.liferay.portlet.announcements.model.AnnouncementsFlag announcementsFlag); 205 206 @Override 207 public int hashCode(); 208 209 @Override 210 public CacheModel<com.liferay.portlet.announcements.model.AnnouncementsFlag> toCacheModel(); 211 212 @Override 213 public com.liferay.portlet.announcements.model.AnnouncementsFlag toEscapedModel(); 214 215 @Override 216 public com.liferay.portlet.announcements.model.AnnouncementsFlag toUnescapedModel(); 217 218 @Override 219 public String toString(); 220 221 @Override 222 public String toXmlString(); 223 }