001    /**
002     * Copyright (c) 2000-2010 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.annotation.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.model.BaseModel;
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     * <p>
030     * This interface is a model that represents the MBMessage table in the
031     * database.
032     * </p>
033     *
034     * @author    Brian Wing Shun Chan
035     * @see       MBMessage
036     * @see       com.liferay.portlet.messageboards.model.impl.MBMessageImpl
037     * @see       com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
038     * @generated
039     */
040    public interface MBMessageModel extends BaseModel<MBMessage> {
041            public long getPrimaryKey();
042    
043            public void setPrimaryKey(long pk);
044    
045            @AutoEscape
046            public String getUuid();
047    
048            public void setUuid(String uuid);
049    
050            public long getMessageId();
051    
052            public void setMessageId(long messageId);
053    
054            public long getGroupId();
055    
056            public void setGroupId(long groupId);
057    
058            public long getCompanyId();
059    
060            public void setCompanyId(long companyId);
061    
062            public long getUserId();
063    
064            public void setUserId(long userId);
065    
066            public String getUserUuid() throws SystemException;
067    
068            public void setUserUuid(String userUuid);
069    
070            @AutoEscape
071            public String getUserName();
072    
073            public void setUserName(String userName);
074    
075            public Date getCreateDate();
076    
077            public void setCreateDate(Date createDate);
078    
079            public Date getModifiedDate();
080    
081            public void setModifiedDate(Date modifiedDate);
082    
083            public String getClassName();
084    
085            public long getClassNameId();
086    
087            public void setClassNameId(long classNameId);
088    
089            public long getClassPK();
090    
091            public void setClassPK(long classPK);
092    
093            public long getCategoryId();
094    
095            public void setCategoryId(long categoryId);
096    
097            public long getThreadId();
098    
099            public void setThreadId(long threadId);
100    
101            public long getRootMessageId();
102    
103            public void setRootMessageId(long rootMessageId);
104    
105            public long getParentMessageId();
106    
107            public void setParentMessageId(long parentMessageId);
108    
109            @AutoEscape
110            public String getSubject();
111    
112            public void setSubject(String subject);
113    
114            @AutoEscape
115            public String getBody();
116    
117            public void setBody(String body);
118    
119            public boolean getAttachments();
120    
121            public boolean isAttachments();
122    
123            public void setAttachments(boolean attachments);
124    
125            public boolean getAnonymous();
126    
127            public boolean isAnonymous();
128    
129            public void setAnonymous(boolean anonymous);
130    
131            public double getPriority();
132    
133            public void setPriority(double priority);
134    
135            public boolean getAllowPingbacks();
136    
137            public boolean isAllowPingbacks();
138    
139            public void setAllowPingbacks(boolean allowPingbacks);
140    
141            public int getStatus();
142    
143            public void setStatus(int status);
144    
145            public long getStatusByUserId();
146    
147            public void setStatusByUserId(long statusByUserId);
148    
149            public String getStatusByUserUuid() throws SystemException;
150    
151            public void setStatusByUserUuid(String statusByUserUuid);
152    
153            @AutoEscape
154            public String getStatusByUserName();
155    
156            public void setStatusByUserName(String statusByUserName);
157    
158            public Date getStatusDate();
159    
160            public void setStatusDate(Date statusDate);
161    
162            public boolean isApproved();
163    
164            public boolean isDraft();
165    
166            public boolean isExpired();
167    
168            public boolean isPending();
169    
170            public MBMessage toEscapedModel();
171    
172            public boolean isNew();
173    
174            public void setNew(boolean n);
175    
176            public boolean isCachedModel();
177    
178            public void setCachedModel(boolean cachedModel);
179    
180            public boolean isEscapedModel();
181    
182            public void setEscapedModel(boolean escapedModel);
183    
184            public Serializable getPrimaryKeyObj();
185    
186            public ExpandoBridge getExpandoBridge();
187    
188            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
189    
190            public Object clone();
191    
192            public int compareTo(MBMessage mbMessage);
193    
194            public int hashCode();
195    
196            public String toString();
197    
198            public String toXmlString();
199    }