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.polls.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    import java.util.Locale;
028    import java.util.Map;
029    
030    /**
031     * <p>
032     * This interface is a model that represents the PollsQuestion table in the
033     * database.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       PollsQuestion
038     * @see       com.liferay.portlet.polls.model.impl.PollsQuestionImpl
039     * @see       com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl
040     * @generated
041     */
042    public interface PollsQuestionModel extends BaseModel<PollsQuestion> {
043            public long getPrimaryKey();
044    
045            public void setPrimaryKey(long pk);
046    
047            @AutoEscape
048            public String getUuid();
049    
050            public void setUuid(String uuid);
051    
052            public long getQuestionId();
053    
054            public void setQuestionId(long questionId);
055    
056            public long getGroupId();
057    
058            public void setGroupId(long groupId);
059    
060            public long getCompanyId();
061    
062            public void setCompanyId(long companyId);
063    
064            public long getUserId();
065    
066            public void setUserId(long userId);
067    
068            public String getUserUuid() throws SystemException;
069    
070            public void setUserUuid(String userUuid);
071    
072            @AutoEscape
073            public String getUserName();
074    
075            public void setUserName(String userName);
076    
077            public Date getCreateDate();
078    
079            public void setCreateDate(Date createDate);
080    
081            public Date getModifiedDate();
082    
083            public void setModifiedDate(Date modifiedDate);
084    
085            public String getTitle();
086    
087            public String getTitle(Locale locale);
088    
089            public String getTitle(Locale locale, boolean useDefault);
090    
091            public String getTitle(String languageId);
092    
093            public String getTitle(String languageId, boolean useDefault);
094    
095            public Map<Locale, String> getTitleMap();
096    
097            public void setTitle(String title);
098    
099            public void setTitle(Locale locale, String title);
100    
101            public void setTitleMap(Map<Locale, String> titleMap);
102    
103            public String getDescription();
104    
105            public String getDescription(Locale locale);
106    
107            public String getDescription(Locale locale, boolean useDefault);
108    
109            public String getDescription(String languageId);
110    
111            public String getDescription(String languageId, boolean useDefault);
112    
113            public Map<Locale, String> getDescriptionMap();
114    
115            public void setDescription(String description);
116    
117            public void setDescription(Locale locale, String description);
118    
119            public void setDescriptionMap(Map<Locale, String> descriptionMap);
120    
121            public Date getExpirationDate();
122    
123            public void setExpirationDate(Date expirationDate);
124    
125            public Date getLastVoteDate();
126    
127            public void setLastVoteDate(Date lastVoteDate);
128    
129            public PollsQuestion toEscapedModel();
130    
131            public boolean isNew();
132    
133            public void setNew(boolean n);
134    
135            public boolean isCachedModel();
136    
137            public void setCachedModel(boolean cachedModel);
138    
139            public boolean isEscapedModel();
140    
141            public void setEscapedModel(boolean escapedModel);
142    
143            public Serializable getPrimaryKeyObj();
144    
145            public ExpandoBridge getExpandoBridge();
146    
147            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
148    
149            public Object clone();
150    
151            public int compareTo(PollsQuestion pollsQuestion);
152    
153            public int hashCode();
154    
155            public String toString();
156    
157            public String toXmlString();
158    }