001 /** 002 * Copyright (c) 2000-2011 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.messageboards.model; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.model.BaseModel; 019 import com.liferay.portal.model.CacheModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 import java.util.Date; 027 028 /** 029 * The base model interface for the MBMessageFlag service. Represents a row in the "MBMessageFlag" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portlet.messageboards.model.impl.MBMessageFlagModelImpl} 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.messageboards.model.impl.MBMessageFlagImpl}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see MBMessageFlag 037 * @see com.liferay.portlet.messageboards.model.impl.MBMessageFlagImpl 038 * @see com.liferay.portlet.messageboards.model.impl.MBMessageFlagModelImpl 039 * @generated 040 */ 041 public interface MBMessageFlagModel extends BaseModel<MBMessageFlag> { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify or reference this interface directly. All methods that expect a message boards message flag model instance should use the {@link MBMessageFlag} interface instead. 046 */ 047 048 /** 049 * Gets the primary key of this message boards message flag. 050 * 051 * @return the primary key of this message boards message flag 052 */ 053 public long getPrimaryKey(); 054 055 /** 056 * Sets the primary key of this message boards message flag 057 * 058 * @param primaryKey the primary key of this message boards message flag 059 */ 060 public void setPrimaryKey(long primaryKey); 061 062 /** 063 * Gets the message flag ID of this message boards message flag. 064 * 065 * @return the message flag ID of this message boards message flag 066 */ 067 public long getMessageFlagId(); 068 069 /** 070 * Sets the message flag ID of this message boards message flag. 071 * 072 * @param messageFlagId the message flag ID of this message boards message flag 073 */ 074 public void setMessageFlagId(long messageFlagId); 075 076 /** 077 * Gets the user ID of this message boards message flag. 078 * 079 * @return the user ID of this message boards message flag 080 */ 081 public long getUserId(); 082 083 /** 084 * Sets the user ID of this message boards message flag. 085 * 086 * @param userId the user ID of this message boards message flag 087 */ 088 public void setUserId(long userId); 089 090 /** 091 * Gets the user uuid of this message boards message flag. 092 * 093 * @return the user uuid of this message boards message flag 094 * @throws SystemException if a system exception occurred 095 */ 096 public String getUserUuid() throws SystemException; 097 098 /** 099 * Sets the user uuid of this message boards message flag. 100 * 101 * @param userUuid the user uuid of this message boards message flag 102 */ 103 public void setUserUuid(String userUuid); 104 105 /** 106 * Gets the modified date of this message boards message flag. 107 * 108 * @return the modified date of this message boards message flag 109 */ 110 public Date getModifiedDate(); 111 112 /** 113 * Sets the modified date of this message boards message flag. 114 * 115 * @param modifiedDate the modified date of this message boards message flag 116 */ 117 public void setModifiedDate(Date modifiedDate); 118 119 /** 120 * Gets the thread ID of this message boards message flag. 121 * 122 * @return the thread ID of this message boards message flag 123 */ 124 public long getThreadId(); 125 126 /** 127 * Sets the thread ID of this message boards message flag. 128 * 129 * @param threadId the thread ID of this message boards message flag 130 */ 131 public void setThreadId(long threadId); 132 133 /** 134 * Gets the message ID of this message boards message flag. 135 * 136 * @return the message ID of this message boards message flag 137 */ 138 public long getMessageId(); 139 140 /** 141 * Sets the message ID of this message boards message flag. 142 * 143 * @param messageId the message ID of this message boards message flag 144 */ 145 public void setMessageId(long messageId); 146 147 /** 148 * Gets the flag of this message boards message flag. 149 * 150 * @return the flag of this message boards message flag 151 */ 152 public int getFlag(); 153 154 /** 155 * Sets the flag of this message boards message flag. 156 * 157 * @param flag the flag of this message boards message flag 158 */ 159 public void setFlag(int flag); 160 161 public boolean isNew(); 162 163 public void setNew(boolean n); 164 165 public boolean isCachedModel(); 166 167 public void setCachedModel(boolean cachedModel); 168 169 public boolean isEscapedModel(); 170 171 public void setEscapedModel(boolean escapedModel); 172 173 public Serializable getPrimaryKeyObj(); 174 175 public void setPrimaryKeyObj(Serializable primaryKeyObj); 176 177 public ExpandoBridge getExpandoBridge(); 178 179 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 180 181 public Object clone(); 182 183 public int compareTo(MBMessageFlag mbMessageFlag); 184 185 public int hashCode(); 186 187 public CacheModel<MBMessageFlag> toCacheModel(); 188 189 public MBMessageFlag toEscapedModel(); 190 191 public String toString(); 192 193 public String toXmlString(); 194 }