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.ratings.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     * The base model interface for the RatingsEntry service. Represents a row in the "RatingsEntry" 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.ratings.model.impl.RatingsEntryModelImpl} 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.ratings.model.impl.RatingsEntryImpl}.
033     * </p>
034     *
035     * <p>
036     * Never modify or reference this interface directly. All methods that expect a ratings entry model instance should use the {@link RatingsEntry} interface instead.
037     * </p>
038     *
039     * @author Brian Wing Shun Chan
040     * @see RatingsEntry
041     * @see com.liferay.portlet.ratings.model.impl.RatingsEntryImpl
042     * @see com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl
043     * @generated
044     */
045    public interface RatingsEntryModel extends BaseModel<RatingsEntry> {
046            /**
047             * Gets the primary key of this ratings entry.
048             *
049             * @return the primary key of this ratings entry
050             */
051            public long getPrimaryKey();
052    
053            /**
054             * Sets the primary key of this ratings entry
055             *
056             * @param pk the primary key of this ratings entry
057             */
058            public void setPrimaryKey(long pk);
059    
060            /**
061             * Gets the entry id of this ratings entry.
062             *
063             * @return the entry id of this ratings entry
064             */
065            public long getEntryId();
066    
067            /**
068             * Sets the entry id of this ratings entry.
069             *
070             * @param entryId the entry id of this ratings entry
071             */
072            public void setEntryId(long entryId);
073    
074            /**
075             * Gets the company id of this ratings entry.
076             *
077             * @return the company id of this ratings entry
078             */
079            public long getCompanyId();
080    
081            /**
082             * Sets the company id of this ratings entry.
083             *
084             * @param companyId the company id of this ratings entry
085             */
086            public void setCompanyId(long companyId);
087    
088            /**
089             * Gets the user id of this ratings entry.
090             *
091             * @return the user id of this ratings entry
092             */
093            public long getUserId();
094    
095            /**
096             * Sets the user id of this ratings entry.
097             *
098             * @param userId the user id of this ratings entry
099             */
100            public void setUserId(long userId);
101    
102            /**
103             * Gets the user uuid of this ratings entry.
104             *
105             * @return the user uuid of this ratings entry
106             * @throws SystemException if a system exception occurred
107             */
108            public String getUserUuid() throws SystemException;
109    
110            /**
111             * Sets the user uuid of this ratings entry.
112             *
113             * @param userUuid the user uuid of this ratings entry
114             */
115            public void setUserUuid(String userUuid);
116    
117            /**
118             * Gets the user name of this ratings entry.
119             *
120             * @return the user name of this ratings entry
121             */
122            @AutoEscape
123            public String getUserName();
124    
125            /**
126             * Sets the user name of this ratings entry.
127             *
128             * @param userName the user name of this ratings entry
129             */
130            public void setUserName(String userName);
131    
132            /**
133             * Gets the create date of this ratings entry.
134             *
135             * @return the create date of this ratings entry
136             */
137            public Date getCreateDate();
138    
139            /**
140             * Sets the create date of this ratings entry.
141             *
142             * @param createDate the create date of this ratings entry
143             */
144            public void setCreateDate(Date createDate);
145    
146            /**
147             * Gets the modified date of this ratings entry.
148             *
149             * @return the modified date of this ratings entry
150             */
151            public Date getModifiedDate();
152    
153            /**
154             * Sets the modified date of this ratings entry.
155             *
156             * @param modifiedDate the modified date of this ratings entry
157             */
158            public void setModifiedDate(Date modifiedDate);
159    
160            /**
161             * Gets the class name of the model instance this ratings entry is polymorphically associated with.
162             *
163             * @return the class name of the model instance this ratings entry is polymorphically associated with
164             */
165            public String getClassName();
166    
167            /**
168             * Gets the class name id of this ratings entry.
169             *
170             * @return the class name id of this ratings entry
171             */
172            public long getClassNameId();
173    
174            /**
175             * Sets the class name id of this ratings entry.
176             *
177             * @param classNameId the class name id of this ratings entry
178             */
179            public void setClassNameId(long classNameId);
180    
181            /**
182             * Gets the class p k of this ratings entry.
183             *
184             * @return the class p k of this ratings entry
185             */
186            public long getClassPK();
187    
188            /**
189             * Sets the class p k of this ratings entry.
190             *
191             * @param classPK the class p k of this ratings entry
192             */
193            public void setClassPK(long classPK);
194    
195            /**
196             * Gets the score of this ratings entry.
197             *
198             * @return the score of this ratings entry
199             */
200            public double getScore();
201    
202            /**
203             * Sets the score of this ratings entry.
204             *
205             * @param score the score of this ratings entry
206             */
207            public void setScore(double score);
208    
209            /**
210             * Gets a copy of this ratings entry as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
211             *
212             * @return the escaped model instance
213             * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
214             */
215            public RatingsEntry toEscapedModel();
216    
217            public boolean isNew();
218    
219            public void setNew(boolean n);
220    
221            public boolean isCachedModel();
222    
223            public void setCachedModel(boolean cachedModel);
224    
225            public boolean isEscapedModel();
226    
227            public void setEscapedModel(boolean escapedModel);
228    
229            public Serializable getPrimaryKeyObj();
230    
231            public ExpandoBridge getExpandoBridge();
232    
233            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
234    
235            public Object clone();
236    
237            public int compareTo(RatingsEntry ratingsEntry);
238    
239            public int hashCode();
240    
241            public String toString();
242    
243            public String toXmlString();
244    }