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.portlet.announcements.model; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.service.ServiceContext; 020 021 import com.liferay.portlet.expando.model.ExpandoBridge; 022 023 import java.io.Serializable; 024 025 import java.util.Date; 026 027 /** 028 * 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. 029 * 030 * <p> 031 * 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}. 032 * </p> 033 * 034 * <p> 035 * Never modify or reference this interface directly. All methods that expect a announcements flag model instance should use the {@link AnnouncementsFlag} interface instead. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see AnnouncementsFlag 040 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagImpl 041 * @see com.liferay.portlet.announcements.model.impl.AnnouncementsFlagModelImpl 042 * @generated 043 */ 044 public interface AnnouncementsFlagModel extends BaseModel<AnnouncementsFlag> { 045 /** 046 * Gets the primary key of this announcements flag. 047 * 048 * @return the primary key of this announcements flag 049 */ 050 public long getPrimaryKey(); 051 052 /** 053 * Sets the primary key of this announcements flag 054 * 055 * @param pk the primary key of this announcements flag 056 */ 057 public void setPrimaryKey(long pk); 058 059 /** 060 * Gets the flag id of this announcements flag. 061 * 062 * @return the flag id of this announcements flag 063 */ 064 public long getFlagId(); 065 066 /** 067 * Sets the flag id of this announcements flag. 068 * 069 * @param flagId the flag id of this announcements flag 070 */ 071 public void setFlagId(long flagId); 072 073 /** 074 * Gets the user id of this announcements flag. 075 * 076 * @return the user id of this announcements flag 077 */ 078 public long getUserId(); 079 080 /** 081 * Sets the user id of this announcements flag. 082 * 083 * @param userId the user id of this announcements flag 084 */ 085 public void setUserId(long userId); 086 087 /** 088 * Gets the user uuid of this announcements flag. 089 * 090 * @return the user uuid of this announcements flag 091 * @throws SystemException if a system exception occurred 092 */ 093 public String getUserUuid() throws SystemException; 094 095 /** 096 * Sets the user uuid of this announcements flag. 097 * 098 * @param userUuid the user uuid of this announcements flag 099 */ 100 public void setUserUuid(String userUuid); 101 102 /** 103 * Gets the create date of this announcements flag. 104 * 105 * @return the create date of this announcements flag 106 */ 107 public Date getCreateDate(); 108 109 /** 110 * Sets the create date of this announcements flag. 111 * 112 * @param createDate the create date of this announcements flag 113 */ 114 public void setCreateDate(Date createDate); 115 116 /** 117 * Gets the entry id of this announcements flag. 118 * 119 * @return the entry id of this announcements flag 120 */ 121 public long getEntryId(); 122 123 /** 124 * Sets the entry id of this announcements flag. 125 * 126 * @param entryId the entry id of this announcements flag 127 */ 128 public void setEntryId(long entryId); 129 130 /** 131 * Gets the value of this announcements flag. 132 * 133 * @return the value of this announcements flag 134 */ 135 public int getValue(); 136 137 /** 138 * Sets the value of this announcements flag. 139 * 140 * @param value the value of this announcements flag 141 */ 142 public void setValue(int value); 143 144 public boolean isNew(); 145 146 public void setNew(boolean n); 147 148 public boolean isCachedModel(); 149 150 public void setCachedModel(boolean cachedModel); 151 152 public boolean isEscapedModel(); 153 154 public void setEscapedModel(boolean escapedModel); 155 156 public Serializable getPrimaryKeyObj(); 157 158 public ExpandoBridge getExpandoBridge(); 159 160 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 161 162 public Object clone(); 163 164 public int compareTo(AnnouncementsFlag announcementsFlag); 165 166 public int hashCode(); 167 168 public AnnouncementsFlag toEscapedModel(); 169 170 public String toString(); 171 172 public String toXmlString(); 173 }