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.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 MBMessageFlag service. Represents a row in the "MBMessageFlag" 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.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}.
032     * </p>
033     *
034     * <p>
035     * 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.
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see MBMessageFlag
040     * @see com.liferay.portlet.messageboards.model.impl.MBMessageFlagImpl
041     * @see com.liferay.portlet.messageboards.model.impl.MBMessageFlagModelImpl
042     * @generated
043     */
044    public interface MBMessageFlagModel extends BaseModel<MBMessageFlag> {
045            /**
046             * Gets the primary key of this message boards message flag.
047             *
048             * @return the primary key of this message boards message flag
049             */
050            public long getPrimaryKey();
051    
052            /**
053             * Sets the primary key of this message boards message flag
054             *
055             * @param pk the primary key of this message boards message flag
056             */
057            public void setPrimaryKey(long pk);
058    
059            /**
060             * Gets the message flag id of this message boards message flag.
061             *
062             * @return the message flag id of this message boards message flag
063             */
064            public long getMessageFlagId();
065    
066            /**
067             * Sets the message flag id of this message boards message flag.
068             *
069             * @param messageFlagId the message flag id of this message boards message flag
070             */
071            public void setMessageFlagId(long messageFlagId);
072    
073            /**
074             * Gets the user id of this message boards message flag.
075             *
076             * @return the user id of this message boards message flag
077             */
078            public long getUserId();
079    
080            /**
081             * Sets the user id of this message boards message flag.
082             *
083             * @param userId the user id of this message boards message flag
084             */
085            public void setUserId(long userId);
086    
087            /**
088             * Gets the user uuid of this message boards message flag.
089             *
090             * @return the user uuid of this message boards message 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 message boards message flag.
097             *
098             * @param userUuid the user uuid of this message boards message flag
099             */
100            public void setUserUuid(String userUuid);
101    
102            /**
103             * Gets the modified date of this message boards message flag.
104             *
105             * @return the modified date of this message boards message flag
106             */
107            public Date getModifiedDate();
108    
109            /**
110             * Sets the modified date of this message boards message flag.
111             *
112             * @param modifiedDate the modified date of this message boards message flag
113             */
114            public void setModifiedDate(Date modifiedDate);
115    
116            /**
117             * Gets the thread id of this message boards message flag.
118             *
119             * @return the thread id of this message boards message flag
120             */
121            public long getThreadId();
122    
123            /**
124             * Sets the thread id of this message boards message flag.
125             *
126             * @param threadId the thread id of this message boards message flag
127             */
128            public void setThreadId(long threadId);
129    
130            /**
131             * Gets the message id of this message boards message flag.
132             *
133             * @return the message id of this message boards message flag
134             */
135            public long getMessageId();
136    
137            /**
138             * Sets the message id of this message boards message flag.
139             *
140             * @param messageId the message id of this message boards message flag
141             */
142            public void setMessageId(long messageId);
143    
144            /**
145             * Gets the flag of this message boards message flag.
146             *
147             * @return the flag of this message boards message flag
148             */
149            public int getFlag();
150    
151            /**
152             * Sets the flag of this message boards message flag.
153             *
154             * @param flag the flag of this message boards message flag
155             */
156            public void setFlag(int flag);
157    
158            /**
159             * Gets a copy of this message boards message flag as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
160             *
161             * @return the escaped model instance
162             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
163             */
164            public MBMessageFlag toEscapedModel();
165    
166            public boolean isNew();
167    
168            public void setNew(boolean n);
169    
170            public boolean isCachedModel();
171    
172            public void setCachedModel(boolean cachedModel);
173    
174            public boolean isEscapedModel();
175    
176            public void setEscapedModel(boolean escapedModel);
177    
178            public Serializable getPrimaryKeyObj();
179    
180            public ExpandoBridge getExpandoBridge();
181    
182            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
183    
184            public Object clone();
185    
186            public int compareTo(MBMessageFlag mbMessageFlag);
187    
188            public int hashCode();
189    
190            public String toString();
191    
192            public String toXmlString();
193    }