/portal-service/src/com/liferay/portlet/polls/model/PollsQuestionModel.java

https://github.com/spreddy/liferay-portal · Java · 433 lines · 82 code · 69 blank · 282 comment · 0 complexity · 206412724bc1f9f19a6dca7388c08012 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 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. package com.liferay.portlet.polls.model;
  15. import com.liferay.portal.kernel.bean.AutoEscape;
  16. import com.liferay.portal.kernel.exception.SystemException;
  17. import com.liferay.portal.model.BaseModel;
  18. import com.liferay.portal.model.CacheModel;
  19. import com.liferay.portal.model.GroupedModel;
  20. import com.liferay.portal.service.ServiceContext;
  21. import com.liferay.portlet.expando.model.ExpandoBridge;
  22. import java.io.Serializable;
  23. import java.util.Date;
  24. import java.util.Locale;
  25. import java.util.Map;
  26. /**
  27. * The base model interface for the PollsQuestion service. Represents a row in the "PollsQuestion" database table, with each column mapped to a property of this class.
  28. *
  29. * <p>
  30. * This interface and its corresponding implementation {@link com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl} 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.polls.model.impl.PollsQuestionImpl}.
  31. * </p>
  32. *
  33. * @author Brian Wing Shun Chan
  34. * @see PollsQuestion
  35. * @see com.liferay.portlet.polls.model.impl.PollsQuestionImpl
  36. * @see com.liferay.portlet.polls.model.impl.PollsQuestionModelImpl
  37. * @generated
  38. */
  39. public interface PollsQuestionModel extends BaseModel<PollsQuestion>,
  40. GroupedModel {
  41. /*
  42. * NOTE FOR DEVELOPERS:
  43. *
  44. * Never modify or reference this interface directly. All methods that expect a polls question model instance should use the {@link PollsQuestion} interface instead.
  45. */
  46. /**
  47. * Returns the primary key of this polls question.
  48. *
  49. * @return the primary key of this polls question
  50. */
  51. public long getPrimaryKey();
  52. /**
  53. * Sets the primary key of this polls question.
  54. *
  55. * @param primaryKey the primary key of this polls question
  56. */
  57. public void setPrimaryKey(long primaryKey);
  58. /**
  59. * Returns the uuid of this polls question.
  60. *
  61. * @return the uuid of this polls question
  62. */
  63. @AutoEscape
  64. public String getUuid();
  65. /**
  66. * Sets the uuid of this polls question.
  67. *
  68. * @param uuid the uuid of this polls question
  69. */
  70. public void setUuid(String uuid);
  71. /**
  72. * Returns the question ID of this polls question.
  73. *
  74. * @return the question ID of this polls question
  75. */
  76. public long getQuestionId();
  77. /**
  78. * Sets the question ID of this polls question.
  79. *
  80. * @param questionId the question ID of this polls question
  81. */
  82. public void setQuestionId(long questionId);
  83. /**
  84. * Returns the group ID of this polls question.
  85. *
  86. * @return the group ID of this polls question
  87. */
  88. public long getGroupId();
  89. /**
  90. * Sets the group ID of this polls question.
  91. *
  92. * @param groupId the group ID of this polls question
  93. */
  94. public void setGroupId(long groupId);
  95. /**
  96. * Returns the company ID of this polls question.
  97. *
  98. * @return the company ID of this polls question
  99. */
  100. public long getCompanyId();
  101. /**
  102. * Sets the company ID of this polls question.
  103. *
  104. * @param companyId the company ID of this polls question
  105. */
  106. public void setCompanyId(long companyId);
  107. /**
  108. * Returns the user ID of this polls question.
  109. *
  110. * @return the user ID of this polls question
  111. */
  112. public long getUserId();
  113. /**
  114. * Sets the user ID of this polls question.
  115. *
  116. * @param userId the user ID of this polls question
  117. */
  118. public void setUserId(long userId);
  119. /**
  120. * Returns the user uuid of this polls question.
  121. *
  122. * @return the user uuid of this polls question
  123. * @throws SystemException if a system exception occurred
  124. */
  125. public String getUserUuid() throws SystemException;
  126. /**
  127. * Sets the user uuid of this polls question.
  128. *
  129. * @param userUuid the user uuid of this polls question
  130. */
  131. public void setUserUuid(String userUuid);
  132. /**
  133. * Returns the user name of this polls question.
  134. *
  135. * @return the user name of this polls question
  136. */
  137. @AutoEscape
  138. public String getUserName();
  139. /**
  140. * Sets the user name of this polls question.
  141. *
  142. * @param userName the user name of this polls question
  143. */
  144. public void setUserName(String userName);
  145. /**
  146. * Returns the create date of this polls question.
  147. *
  148. * @return the create date of this polls question
  149. */
  150. public Date getCreateDate();
  151. /**
  152. * Sets the create date of this polls question.
  153. *
  154. * @param createDate the create date of this polls question
  155. */
  156. public void setCreateDate(Date createDate);
  157. /**
  158. * Returns the modified date of this polls question.
  159. *
  160. * @return the modified date of this polls question
  161. */
  162. public Date getModifiedDate();
  163. /**
  164. * Sets the modified date of this polls question.
  165. *
  166. * @param modifiedDate the modified date of this polls question
  167. */
  168. public void setModifiedDate(Date modifiedDate);
  169. /**
  170. * Returns the title of this polls question.
  171. *
  172. * @return the title of this polls question
  173. */
  174. public String getTitle();
  175. /**
  176. * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
  177. *
  178. * @param locale the locale of the language
  179. * @return the localized title of this polls question
  180. */
  181. public String getTitle(Locale locale);
  182. /**
  183. * Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language.
  184. *
  185. * @param locale the local of the language
  186. * @param useDefault whether to use the default language if no localization exists for the requested language
  187. * @return the localized title of this polls question. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  188. */
  189. public String getTitle(Locale locale, boolean useDefault);
  190. /**
  191. * Returns the localized title of this polls question in the language. Uses the default language if no localization exists for the requested language.
  192. *
  193. * @param languageId the ID of the language
  194. * @return the localized title of this polls question
  195. */
  196. public String getTitle(String languageId);
  197. /**
  198. * Returns the localized title of this polls question in the language, optionally using the default language if no localization exists for the requested language.
  199. *
  200. * @param languageId the ID of the language
  201. * @param useDefault whether to use the default language if no localization exists for the requested language
  202. * @return the localized title of this polls question
  203. */
  204. public String getTitle(String languageId, boolean useDefault);
  205. /**
  206. * Returns a map of the locales and localized titles of this polls question.
  207. *
  208. * @return the locales and localized titles of this polls question
  209. */
  210. public Map<Locale, String> getTitleMap();
  211. /**
  212. * Sets the title of this polls question.
  213. *
  214. * @param title the title of this polls question
  215. */
  216. public void setTitle(String title);
  217. /**
  218. * Sets the localized title of this polls question in the language.
  219. *
  220. * @param title the localized title of this polls question
  221. * @param locale the locale of the language
  222. */
  223. public void setTitle(String title, Locale locale);
  224. /**
  225. * Sets the localized title of this polls question in the language, and sets the default locale.
  226. *
  227. * @param title the localized title of this polls question
  228. * @param locale the locale of the language
  229. * @param defaultLocale the default locale
  230. */
  231. public void setTitle(String title, Locale locale, Locale defaultLocale);
  232. /**
  233. * Sets the localized titles of this polls question from the map of locales and localized titles.
  234. *
  235. * @param titleMap the locales and localized titles of this polls question
  236. */
  237. public void setTitleMap(Map<Locale, String> titleMap);
  238. /**
  239. * Sets the localized titles of this polls question from the map of locales and localized titles, and sets the default locale.
  240. *
  241. * @param titleMap the locales and localized titles of this polls question
  242. * @param defaultLocale the default locale
  243. */
  244. public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale);
  245. /**
  246. * Returns the description of this polls question.
  247. *
  248. * @return the description of this polls question
  249. */
  250. public String getDescription();
  251. /**
  252. * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
  253. *
  254. * @param locale the locale of the language
  255. * @return the localized description of this polls question
  256. */
  257. public String getDescription(Locale locale);
  258. /**
  259. * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
  260. *
  261. * @param locale the local of the language
  262. * @param useDefault whether to use the default language if no localization exists for the requested language
  263. * @return the localized description of this polls question. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  264. */
  265. public String getDescription(Locale locale, boolean useDefault);
  266. /**
  267. * Returns the localized description of this polls question in the language. Uses the default language if no localization exists for the requested language.
  268. *
  269. * @param languageId the ID of the language
  270. * @return the localized description of this polls question
  271. */
  272. public String getDescription(String languageId);
  273. /**
  274. * Returns the localized description of this polls question in the language, optionally using the default language if no localization exists for the requested language.
  275. *
  276. * @param languageId the ID of the language
  277. * @param useDefault whether to use the default language if no localization exists for the requested language
  278. * @return the localized description of this polls question
  279. */
  280. public String getDescription(String languageId, boolean useDefault);
  281. /**
  282. * Returns a map of the locales and localized descriptions of this polls question.
  283. *
  284. * @return the locales and localized descriptions of this polls question
  285. */
  286. public Map<Locale, String> getDescriptionMap();
  287. /**
  288. * Sets the description of this polls question.
  289. *
  290. * @param description the description of this polls question
  291. */
  292. public void setDescription(String description);
  293. /**
  294. * Sets the localized description of this polls question in the language.
  295. *
  296. * @param description the localized description of this polls question
  297. * @param locale the locale of the language
  298. */
  299. public void setDescription(String description, Locale locale);
  300. /**
  301. * Sets the localized description of this polls question in the language, and sets the default locale.
  302. *
  303. * @param description the localized description of this polls question
  304. * @param locale the locale of the language
  305. * @param defaultLocale the default locale
  306. */
  307. public void setDescription(String description, Locale locale,
  308. Locale defaultLocale);
  309. /**
  310. * Sets the localized descriptions of this polls question from the map of locales and localized descriptions.
  311. *
  312. * @param descriptionMap the locales and localized descriptions of this polls question
  313. */
  314. public void setDescriptionMap(Map<Locale, String> descriptionMap);
  315. /**
  316. * Sets the localized descriptions of this polls question from the map of locales and localized descriptions, and sets the default locale.
  317. *
  318. * @param descriptionMap the locales and localized descriptions of this polls question
  319. * @param defaultLocale the default locale
  320. */
  321. public void setDescriptionMap(Map<Locale, String> descriptionMap,
  322. Locale defaultLocale);
  323. /**
  324. * Returns the expiration date of this polls question.
  325. *
  326. * @return the expiration date of this polls question
  327. */
  328. public Date getExpirationDate();
  329. /**
  330. * Sets the expiration date of this polls question.
  331. *
  332. * @param expirationDate the expiration date of this polls question
  333. */
  334. public void setExpirationDate(Date expirationDate);
  335. /**
  336. * Returns the last vote date of this polls question.
  337. *
  338. * @return the last vote date of this polls question
  339. */
  340. public Date getLastVoteDate();
  341. /**
  342. * Sets the last vote date of this polls question.
  343. *
  344. * @param lastVoteDate the last vote date of this polls question
  345. */
  346. public void setLastVoteDate(Date lastVoteDate);
  347. public boolean isNew();
  348. public void setNew(boolean n);
  349. public boolean isCachedModel();
  350. public void setCachedModel(boolean cachedModel);
  351. public boolean isEscapedModel();
  352. public void setEscapedModel(boolean escapedModel);
  353. public Serializable getPrimaryKeyObj();
  354. public void setPrimaryKeyObj(Serializable primaryKeyObj);
  355. public ExpandoBridge getExpandoBridge();
  356. public void setExpandoBridgeAttributes(ServiceContext serviceContext);
  357. public Object clone();
  358. public int compareTo(PollsQuestion pollsQuestion);
  359. public int hashCode();
  360. public CacheModel<PollsQuestion> toCacheModel();
  361. public PollsQuestion toEscapedModel();
  362. public String toString();
  363. public String toXmlString();
  364. }