1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.model;
16  
17  import com.liferay.portal.kernel.annotation.AutoEscape;
18  import com.liferay.portal.kernel.exception.SystemException;
19  import com.liferay.portal.model.BaseModel;
20  import com.liferay.portal.service.ServiceContext;
21  
22  import com.liferay.portlet.expando.model.ExpandoBridge;
23  
24  import java.io.Serializable;
25  
26  import java.util.Date;
27  import java.util.Locale;
28  import java.util.Map;
29  
30  /**
31   * <a href="PollsQuestionModel.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface is a model that represents the PollsQuestion table in the
40   * database.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       PollsQuestion
45   * @see       com.liferay.portlet.polls.model.impl.PollsQuestionImpl
46   * @see       com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl
47   * @generated
48   */
49  public interface PollsQuestionModel extends BaseModel<PollsQuestion> {
50      public long getPrimaryKey();
51  
52      public void setPrimaryKey(long pk);
53  
54      @AutoEscape
55      public String getUuid();
56  
57      public void setUuid(String uuid);
58  
59      public long getQuestionId();
60  
61      public void setQuestionId(long questionId);
62  
63      public long getGroupId();
64  
65      public void setGroupId(long groupId);
66  
67      public long getCompanyId();
68  
69      public void setCompanyId(long companyId);
70  
71      public long getUserId();
72  
73      public void setUserId(long userId);
74  
75      public String getUserUuid() throws SystemException;
76  
77      public void setUserUuid(String userUuid);
78  
79      @AutoEscape
80      public String getUserName();
81  
82      public void setUserName(String userName);
83  
84      public Date getCreateDate();
85  
86      public void setCreateDate(Date createDate);
87  
88      public Date getModifiedDate();
89  
90      public void setModifiedDate(Date modifiedDate);
91  
92      public String getTitle();
93  
94      public String getTitle(Locale locale);
95  
96      public String getTitle(Locale locale, boolean useDefault);
97  
98      public String getTitle(String languageId);
99  
100     public String getTitle(String languageId, boolean useDefault);
101 
102     public Map<Locale, String> getTitleMap();
103 
104     public void setTitle(String title);
105 
106     public void setTitle(Locale locale, String title);
107 
108     public void setTitleMap(Map<Locale, String> titleMap);
109 
110     public String getDescription();
111 
112     public String getDescription(Locale locale);
113 
114     public String getDescription(Locale locale, boolean useDefault);
115 
116     public String getDescription(String languageId);
117 
118     public String getDescription(String languageId, boolean useDefault);
119 
120     public Map<Locale, String> getDescriptionMap();
121 
122     public void setDescription(String description);
123 
124     public void setDescription(Locale locale, String description);
125 
126     public void setDescriptionMap(Map<Locale, String> descriptionMap);
127 
128     public Date getExpirationDate();
129 
130     public void setExpirationDate(Date expirationDate);
131 
132     public Date getLastVoteDate();
133 
134     public void setLastVoteDate(Date lastVoteDate);
135 
136     public PollsQuestion toEscapedModel();
137 
138     public boolean isNew();
139 
140     public boolean setNew(boolean n);
141 
142     public boolean isCachedModel();
143 
144     public void setCachedModel(boolean cachedModel);
145 
146     public boolean isEscapedModel();
147 
148     public void setEscapedModel(boolean escapedModel);
149 
150     public Serializable getPrimaryKeyObj();
151 
152     public ExpandoBridge getExpandoBridge();
153 
154     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
155 
156     public Object clone();
157 
158     public int compareTo(PollsQuestion pollsQuestion);
159 
160     public int hashCode();
161 
162     public String toString();
163 
164     public String toXmlString();
165 }