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.portlet.announcements.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 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 /* 046 * NOTE FOR DEVELOPERS: 047 * 048 * Never modify or reference this interface directly. All methods that expect a announcements flag model instance should use the {@link AnnouncementsFlag} interface instead. 049 */ 050 051 /** 052 * Returns the primary key of this announcements flag. 053 * 054 * @return the primary key of this announcements flag 055 */ 056 public long getPrimaryKey(); 057 058 /** 059 * Sets the primary key of this announcements flag. 060 * 061 * @param primaryKey the primary key of this announcements flag 062 */ 063 public void setPrimaryKey(long primaryKey); 064 065 /** 066 * Returns the flag ID of this announcements flag. 067 * 068 * @return the flag ID of this announcements flag 069 */ 070 public long getFlagId(); 071 072 /** 073 * Sets the flag ID of this announcements flag. 074 * 075 * @param flagId the flag ID of this announcements flag 076 */ 077 public void setFlagId(long flagId); 078 079 /** 080 * Returns the user ID of this announcements flag. 081 * 082 * @return the user ID of this announcements flag 083 */ 084 public long getUserId(); 085 086 /** 087 * Sets the user ID of this announcements flag. 088 * 089 * @param userId the user ID of this announcements flag 090 */ 091 public void setUserId(long userId); 092 093 /** 094 * Returns the user uuid of this announcements flag. 095 * 096 * @return the user uuid of this announcements flag 097 * @throws SystemException if a system exception occurred 098 */ 099 public String getUserUuid() throws SystemException; 100 101 /** 102 * Sets the user uuid of this announcements flag. 103 * 104 * @param userUuid the user uuid of this announcements flag 105 */ 106 public void setUserUuid(String userUuid); 107 108 /** 109 * Returns the create date of this announcements flag. 110 * 111 * @return the create date of this announcements flag 112 */ 113 public Date getCreateDate(); 114 115 /** 116 * Sets the create date of this announcements flag. 117 * 118 * @param createDate the create date of this announcements flag 119 */ 120 public void setCreateDate(Date createDate); 121 122 /** 123 * Returns the entry ID of this announcements flag. 124 * 125 * @return the entry ID of this announcements flag 126 */ 127 public long getEntryId(); 128 129 /** 130 * Sets the entry ID of this announcements flag. 131 * 132 * @param entryId the entry ID of this announcements flag 133 */ 134 public void setEntryId(long entryId); 135 136 /** 137 * Returns the value of this announcements flag. 138 * 139 * @return the value of this announcements flag 140 */ 141 public int getValue(); 142 143 /** 144 * Sets the value of this announcements flag. 145 * 146 * @param value the value of this announcements flag 147 */ 148 public void setValue(int value); 149 150 @Override 151 public boolean isNew(); 152 153 @Override 154 public void setNew(boolean n); 155 156 @Override 157 public boolean isCachedModel(); 158 159 @Override 160 public void setCachedModel(boolean cachedModel); 161 162 @Override 163 public boolean isEscapedModel(); 164 165 @Override 166 public Serializable getPrimaryKeyObj(); 167 168 @Override 169 public void setPrimaryKeyObj(Serializable primaryKeyObj); 170 171 @Override 172 public ExpandoBridge getExpandoBridge(); 173 174 @Override 175 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 176 177 @Override 178 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 179 180 @Override 181 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 182 183 @Override 184 public Object clone(); 185 186 @Override 187 public int compareTo(AnnouncementsFlag announcementsFlag); 188 189 @Override 190 public int hashCode(); 191 192 @Override 193 public CacheModel<AnnouncementsFlag> toCacheModel(); 194 195 @Override 196 public AnnouncementsFlag toEscapedModel(); 197 198 @Override 199 public AnnouncementsFlag toUnescapedModel(); 200 201 @Override 202 public String toString(); 203 204 @Override 205 public String toXmlString(); 206 }