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.messageboards.model;
016    
017    import com.liferay.portal.kernel.bean.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.model.AttachedModel;
020    import com.liferay.portal.model.BaseModel;
021    import com.liferay.portal.model.CacheModel;
022    import com.liferay.portal.model.StagedGroupedModel;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.expando.model.ExpandoBridge;
026    
027    import java.io.Serializable;
028    
029    import java.util.Date;
030    
031    /**
032     * The base model interface for the MBDiscussion service. Represents a row in the "MBDiscussion" database table, with each column mapped to a property of this class.
033     *
034     * <p>
035     * This interface and its corresponding implementation {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl} 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.MBDiscussionImpl}.
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see MBDiscussion
040     * @see com.liferay.portlet.messageboards.model.impl.MBDiscussionImpl
041     * @see com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl
042     * @generated
043     */
044    public interface MBDiscussionModel extends AttachedModel, BaseModel<MBDiscussion>,
045            StagedGroupedModel {
046            /*
047             * NOTE FOR DEVELOPERS:
048             *
049             * Never modify or reference this interface directly. All methods that expect a message boards discussion model instance should use the {@link MBDiscussion} interface instead.
050             */
051    
052            /**
053             * Returns the primary key of this message boards discussion.
054             *
055             * @return the primary key of this message boards discussion
056             */
057            public long getPrimaryKey();
058    
059            /**
060             * Sets the primary key of this message boards discussion.
061             *
062             * @param primaryKey the primary key of this message boards discussion
063             */
064            public void setPrimaryKey(long primaryKey);
065    
066            /**
067             * Returns the uuid of this message boards discussion.
068             *
069             * @return the uuid of this message boards discussion
070             */
071            @AutoEscape
072            public String getUuid();
073    
074            /**
075             * Sets the uuid of this message boards discussion.
076             *
077             * @param uuid the uuid of this message boards discussion
078             */
079            public void setUuid(String uuid);
080    
081            /**
082             * Returns the discussion ID of this message boards discussion.
083             *
084             * @return the discussion ID of this message boards discussion
085             */
086            public long getDiscussionId();
087    
088            /**
089             * Sets the discussion ID of this message boards discussion.
090             *
091             * @param discussionId the discussion ID of this message boards discussion
092             */
093            public void setDiscussionId(long discussionId);
094    
095            /**
096             * Returns the group ID of this message boards discussion.
097             *
098             * @return the group ID of this message boards discussion
099             */
100            public long getGroupId();
101    
102            /**
103             * Sets the group ID of this message boards discussion.
104             *
105             * @param groupId the group ID of this message boards discussion
106             */
107            public void setGroupId(long groupId);
108    
109            /**
110             * Returns the company ID of this message boards discussion.
111             *
112             * @return the company ID of this message boards discussion
113             */
114            public long getCompanyId();
115    
116            /**
117             * Sets the company ID of this message boards discussion.
118             *
119             * @param companyId the company ID of this message boards discussion
120             */
121            public void setCompanyId(long companyId);
122    
123            /**
124             * Returns the user ID of this message boards discussion.
125             *
126             * @return the user ID of this message boards discussion
127             */
128            public long getUserId();
129    
130            /**
131             * Sets the user ID of this message boards discussion.
132             *
133             * @param userId the user ID of this message boards discussion
134             */
135            public void setUserId(long userId);
136    
137            /**
138             * Returns the user uuid of this message boards discussion.
139             *
140             * @return the user uuid of this message boards discussion
141             * @throws SystemException if a system exception occurred
142             */
143            public String getUserUuid() throws SystemException;
144    
145            /**
146             * Sets the user uuid of this message boards discussion.
147             *
148             * @param userUuid the user uuid of this message boards discussion
149             */
150            public void setUserUuid(String userUuid);
151    
152            /**
153             * Returns the user name of this message boards discussion.
154             *
155             * @return the user name of this message boards discussion
156             */
157            @AutoEscape
158            public String getUserName();
159    
160            /**
161             * Sets the user name of this message boards discussion.
162             *
163             * @param userName the user name of this message boards discussion
164             */
165            public void setUserName(String userName);
166    
167            /**
168             * Returns the create date of this message boards discussion.
169             *
170             * @return the create date of this message boards discussion
171             */
172            public Date getCreateDate();
173    
174            /**
175             * Sets the create date of this message boards discussion.
176             *
177             * @param createDate the create date of this message boards discussion
178             */
179            public void setCreateDate(Date createDate);
180    
181            /**
182             * Returns the modified date of this message boards discussion.
183             *
184             * @return the modified date of this message boards discussion
185             */
186            public Date getModifiedDate();
187    
188            /**
189             * Sets the modified date of this message boards discussion.
190             *
191             * @param modifiedDate the modified date of this message boards discussion
192             */
193            public void setModifiedDate(Date modifiedDate);
194    
195            /**
196             * Returns the fully qualified class name of this message boards discussion.
197             *
198             * @return the fully qualified class name of this message boards discussion
199             */
200            public String getClassName();
201    
202            public void setClassName(String className);
203    
204            /**
205             * Returns the class name ID of this message boards discussion.
206             *
207             * @return the class name ID of this message boards discussion
208             */
209            public long getClassNameId();
210    
211            /**
212             * Sets the class name ID of this message boards discussion.
213             *
214             * @param classNameId the class name ID of this message boards discussion
215             */
216            public void setClassNameId(long classNameId);
217    
218            /**
219             * Returns the class p k of this message boards discussion.
220             *
221             * @return the class p k of this message boards discussion
222             */
223            public long getClassPK();
224    
225            /**
226             * Sets the class p k of this message boards discussion.
227             *
228             * @param classPK the class p k of this message boards discussion
229             */
230            public void setClassPK(long classPK);
231    
232            /**
233             * Returns the thread ID of this message boards discussion.
234             *
235             * @return the thread ID of this message boards discussion
236             */
237            public long getThreadId();
238    
239            /**
240             * Sets the thread ID of this message boards discussion.
241             *
242             * @param threadId the thread ID of this message boards discussion
243             */
244            public void setThreadId(long threadId);
245    
246            public boolean isNew();
247    
248            public void setNew(boolean n);
249    
250            public boolean isCachedModel();
251    
252            public void setCachedModel(boolean cachedModel);
253    
254            public boolean isEscapedModel();
255    
256            public Serializable getPrimaryKeyObj();
257    
258            public void setPrimaryKeyObj(Serializable primaryKeyObj);
259    
260            public ExpandoBridge getExpandoBridge();
261    
262            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
263    
264            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
265    
266            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
267    
268            public Object clone();
269    
270            public int compareTo(MBDiscussion mbDiscussion);
271    
272            public int hashCode();
273    
274            public CacheModel<MBDiscussion> toCacheModel();
275    
276            public MBDiscussion toEscapedModel();
277    
278            public MBDiscussion toUnescapedModel();
279    
280            public String toString();
281    
282            public String toXmlString();
283    }