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 MBThread table in the
031     * database.
032     * </p>
033     *
034     * @author    Brian Wing Shun Chan
035     * @see       MBThread
036     * @see       com.liferay.portlet.messageboards.model.impl.MBThreadImpl
037     * @see       com.liferay.portlet.messageboards.model.impl.MBThreadModelImpl
038     * @generated
039     */
040    public interface MBThreadModel extends BaseModel<MBThread> {
041            public long getPrimaryKey();
042    
043            public void setPrimaryKey(long pk);
044    
045            public long getThreadId();
046    
047            public void setThreadId(long threadId);
048    
049            public long getGroupId();
050    
051            public void setGroupId(long groupId);
052    
053            public long getCategoryId();
054    
055            public void setCategoryId(long categoryId);
056    
057            public long getRootMessageId();
058    
059            public void setRootMessageId(long rootMessageId);
060    
061            public int getMessageCount();
062    
063            public void setMessageCount(int messageCount);
064    
065            public int getViewCount();
066    
067            public void setViewCount(int viewCount);
068    
069            public long getLastPostByUserId();
070    
071            public void setLastPostByUserId(long lastPostByUserId);
072    
073            public String getLastPostByUserUuid() throws SystemException;
074    
075            public void setLastPostByUserUuid(String lastPostByUserUuid);
076    
077            public Date getLastPostDate();
078    
079            public void setLastPostDate(Date lastPostDate);
080    
081            public double getPriority();
082    
083            public void setPriority(double priority);
084    
085            public int getStatus();
086    
087            public void setStatus(int status);
088    
089            public long getStatusByUserId();
090    
091            public void setStatusByUserId(long statusByUserId);
092    
093            public String getStatusByUserUuid() throws SystemException;
094    
095            public void setStatusByUserUuid(String statusByUserUuid);
096    
097            @AutoEscape
098            public String getStatusByUserName();
099    
100            public void setStatusByUserName(String statusByUserName);
101    
102            public Date getStatusDate();
103    
104            public void setStatusDate(Date statusDate);
105    
106            public boolean isApproved();
107    
108            public boolean isDraft();
109    
110            public boolean isExpired();
111    
112            public boolean isPending();
113    
114            public MBThread toEscapedModel();
115    
116            public boolean isNew();
117    
118            public void setNew(boolean n);
119    
120            public boolean isCachedModel();
121    
122            public void setCachedModel(boolean cachedModel);
123    
124            public boolean isEscapedModel();
125    
126            public void setEscapedModel(boolean escapedModel);
127    
128            public Serializable getPrimaryKeyObj();
129    
130            public ExpandoBridge getExpandoBridge();
131    
132            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
133    
134            public Object clone();
135    
136            public int compareTo(MBThread mbThread);
137    
138            public int hashCode();
139    
140            public String toString();
141    
142            public String toXmlString();
143    }