001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.polls.model; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link PollsQuestion}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see PollsQuestion 024 * @generated 025 */ 026 public class PollsQuestionWrapper implements PollsQuestion { 027 public PollsQuestionWrapper(PollsQuestion pollsQuestion) { 028 _pollsQuestion = pollsQuestion; 029 } 030 031 /** 032 * Gets the primary key of this polls question. 033 * 034 * @return the primary key of this polls question 035 */ 036 public long getPrimaryKey() { 037 return _pollsQuestion.getPrimaryKey(); 038 } 039 040 /** 041 * Sets the primary key of this polls question 042 * 043 * @param pk the primary key of this polls question 044 */ 045 public void setPrimaryKey(long pk) { 046 _pollsQuestion.setPrimaryKey(pk); 047 } 048 049 /** 050 * Gets the uuid of this polls question. 051 * 052 * @return the uuid of this polls question 053 */ 054 public java.lang.String getUuid() { 055 return _pollsQuestion.getUuid(); 056 } 057 058 /** 059 * Sets the uuid of this polls question. 060 * 061 * @param uuid the uuid of this polls question 062 */ 063 public void setUuid(java.lang.String uuid) { 064 _pollsQuestion.setUuid(uuid); 065 } 066 067 /** 068 * Gets the question id of this polls question. 069 * 070 * @return the question id of this polls question 071 */ 072 public long getQuestionId() { 073 return _pollsQuestion.getQuestionId(); 074 } 075 076 /** 077 * Sets the question id of this polls question. 078 * 079 * @param questionId the question id of this polls question 080 */ 081 public void setQuestionId(long questionId) { 082 _pollsQuestion.setQuestionId(questionId); 083 } 084 085 /** 086 * Gets the group id of this polls question. 087 * 088 * @return the group id of this polls question 089 */ 090 public long getGroupId() { 091 return _pollsQuestion.getGroupId(); 092 } 093 094 /** 095 * Sets the group id of this polls question. 096 * 097 * @param groupId the group id of this polls question 098 */ 099 public void setGroupId(long groupId) { 100 _pollsQuestion.setGroupId(groupId); 101 } 102 103 /** 104 * Gets the company id of this polls question. 105 * 106 * @return the company id of this polls question 107 */ 108 public long getCompanyId() { 109 return _pollsQuestion.getCompanyId(); 110 } 111 112 /** 113 * Sets the company id of this polls question. 114 * 115 * @param companyId the company id of this polls question 116 */ 117 public void setCompanyId(long companyId) { 118 _pollsQuestion.setCompanyId(companyId); 119 } 120 121 /** 122 * Gets the user id of this polls question. 123 * 124 * @return the user id of this polls question 125 */ 126 public long getUserId() { 127 return _pollsQuestion.getUserId(); 128 } 129 130 /** 131 * Sets the user id of this polls question. 132 * 133 * @param userId the user id of this polls question 134 */ 135 public void setUserId(long userId) { 136 _pollsQuestion.setUserId(userId); 137 } 138 139 /** 140 * Gets the user uuid of this polls question. 141 * 142 * @return the user uuid of this polls question 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.lang.String getUserUuid() 146 throws com.liferay.portal.kernel.exception.SystemException { 147 return _pollsQuestion.getUserUuid(); 148 } 149 150 /** 151 * Sets the user uuid of this polls question. 152 * 153 * @param userUuid the user uuid of this polls question 154 */ 155 public void setUserUuid(java.lang.String userUuid) { 156 _pollsQuestion.setUserUuid(userUuid); 157 } 158 159 /** 160 * Gets the user name of this polls question. 161 * 162 * @return the user name of this polls question 163 */ 164 public java.lang.String getUserName() { 165 return _pollsQuestion.getUserName(); 166 } 167 168 /** 169 * Sets the user name of this polls question. 170 * 171 * @param userName the user name of this polls question 172 */ 173 public void setUserName(java.lang.String userName) { 174 _pollsQuestion.setUserName(userName); 175 } 176 177 /** 178 * Gets the create date of this polls question. 179 * 180 * @return the create date of this polls question 181 */ 182 public java.util.Date getCreateDate() { 183 return _pollsQuestion.getCreateDate(); 184 } 185 186 /** 187 * Sets the create date of this polls question. 188 * 189 * @param createDate the create date of this polls question 190 */ 191 public void setCreateDate(java.util.Date createDate) { 192 _pollsQuestion.setCreateDate(createDate); 193 } 194 195 /** 196 * Gets the modified date of this polls question. 197 * 198 * @return the modified date of this polls question 199 */ 200 public java.util.Date getModifiedDate() { 201 return _pollsQuestion.getModifiedDate(); 202 } 203 204 /** 205 * Sets the modified date of this polls question. 206 * 207 * @param modifiedDate the modified date of this polls question 208 */ 209 public void setModifiedDate(java.util.Date modifiedDate) { 210 _pollsQuestion.setModifiedDate(modifiedDate); 211 } 212 213 /** 214 * Gets the title of this polls question. 215 * 216 * @return the title of this polls question 217 */ 218 public java.lang.String getTitle() { 219 return _pollsQuestion.getTitle(); 220 } 221 222 /** 223 * Gets the localized title of this polls question. Uses the default language if no localization exists for the requested language. 224 * 225 * @param locale the locale to get the localized title for 226 * @return the localized title of this polls question 227 */ 228 public java.lang.String getTitle(java.util.Locale locale) { 229 return _pollsQuestion.getTitle(locale); 230 } 231 232 /** 233 * Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language. 234 * 235 * @param locale the local to get the localized title for 236 * @param useDefault whether to use the default language if no localization exists for the requested language 237 * @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. 238 */ 239 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) { 240 return _pollsQuestion.getTitle(locale, useDefault); 241 } 242 243 /** 244 * Gets the localized title of this polls question. Uses the default language if no localization exists for the requested language. 245 * 246 * @param languageId the id of the language to get the localized title for 247 * @return the localized title of this polls question 248 */ 249 public java.lang.String getTitle(java.lang.String languageId) { 250 return _pollsQuestion.getTitle(languageId); 251 } 252 253 /** 254 * Gets the localized title of this polls question, optionally using the default language if no localization exists for the requested language. 255 * 256 * @param languageId the id of the language to get the localized title for 257 * @param useDefault whether to use the default language if no localization exists for the requested language 258 * @return the localized title of this polls question 259 */ 260 public java.lang.String getTitle(java.lang.String languageId, 261 boolean useDefault) { 262 return _pollsQuestion.getTitle(languageId, useDefault); 263 } 264 265 /** 266 * Gets a map of the locales and localized title of this polls question. 267 * 268 * @return the locales and localized title 269 */ 270 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() { 271 return _pollsQuestion.getTitleMap(); 272 } 273 274 /** 275 * Sets the title of this polls question. 276 * 277 * @param title the title of this polls question 278 */ 279 public void setTitle(java.lang.String title) { 280 _pollsQuestion.setTitle(title); 281 } 282 283 /** 284 * Sets the localized title of this polls question. 285 * 286 * @param locale the locale to set the localized title for 287 * @param title the localized title of this polls question 288 */ 289 public void setTitle(java.util.Locale locale, java.lang.String title) { 290 _pollsQuestion.setTitle(locale, title); 291 } 292 293 /** 294 * Sets the localized titles of this polls question from the map of locales and localized titles. 295 * 296 * @param titleMap the locales and localized titles of this polls question 297 */ 298 public void setTitleMap( 299 java.util.Map<java.util.Locale, java.lang.String> titleMap) { 300 _pollsQuestion.setTitleMap(titleMap); 301 } 302 303 /** 304 * Gets the description of this polls question. 305 * 306 * @return the description of this polls question 307 */ 308 public java.lang.String getDescription() { 309 return _pollsQuestion.getDescription(); 310 } 311 312 /** 313 * Gets the localized description of this polls question. Uses the default language if no localization exists for the requested language. 314 * 315 * @param locale the locale to get the localized description for 316 * @return the localized description of this polls question 317 */ 318 public java.lang.String getDescription(java.util.Locale locale) { 319 return _pollsQuestion.getDescription(locale); 320 } 321 322 /** 323 * Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language. 324 * 325 * @param locale the local to get the localized description for 326 * @param useDefault whether to use the default language if no localization exists for the requested language 327 * @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. 328 */ 329 public java.lang.String getDescription(java.util.Locale locale, 330 boolean useDefault) { 331 return _pollsQuestion.getDescription(locale, useDefault); 332 } 333 334 /** 335 * Gets the localized description of this polls question. Uses the default language if no localization exists for the requested language. 336 * 337 * @param languageId the id of the language to get the localized description for 338 * @return the localized description of this polls question 339 */ 340 public java.lang.String getDescription(java.lang.String languageId) { 341 return _pollsQuestion.getDescription(languageId); 342 } 343 344 /** 345 * Gets the localized description of this polls question, optionally using the default language if no localization exists for the requested language. 346 * 347 * @param languageId the id of the language to get the localized description for 348 * @param useDefault whether to use the default language if no localization exists for the requested language 349 * @return the localized description of this polls question 350 */ 351 public java.lang.String getDescription(java.lang.String languageId, 352 boolean useDefault) { 353 return _pollsQuestion.getDescription(languageId, useDefault); 354 } 355 356 /** 357 * Gets a map of the locales and localized description of this polls question. 358 * 359 * @return the locales and localized description 360 */ 361 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() { 362 return _pollsQuestion.getDescriptionMap(); 363 } 364 365 /** 366 * Sets the description of this polls question. 367 * 368 * @param description the description of this polls question 369 */ 370 public void setDescription(java.lang.String description) { 371 _pollsQuestion.setDescription(description); 372 } 373 374 /** 375 * Sets the localized description of this polls question. 376 * 377 * @param locale the locale to set the localized description for 378 * @param description the localized description of this polls question 379 */ 380 public void setDescription(java.util.Locale locale, 381 java.lang.String description) { 382 _pollsQuestion.setDescription(locale, description); 383 } 384 385 /** 386 * Sets the localized descriptions of this polls question from the map of locales and localized descriptions. 387 * 388 * @param descriptionMap the locales and localized descriptions of this polls question 389 */ 390 public void setDescriptionMap( 391 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) { 392 _pollsQuestion.setDescriptionMap(descriptionMap); 393 } 394 395 /** 396 * Gets the expiration date of this polls question. 397 * 398 * @return the expiration date of this polls question 399 */ 400 public java.util.Date getExpirationDate() { 401 return _pollsQuestion.getExpirationDate(); 402 } 403 404 /** 405 * Sets the expiration date of this polls question. 406 * 407 * @param expirationDate the expiration date of this polls question 408 */ 409 public void setExpirationDate(java.util.Date expirationDate) { 410 _pollsQuestion.setExpirationDate(expirationDate); 411 } 412 413 /** 414 * Gets the last vote date of this polls question. 415 * 416 * @return the last vote date of this polls question 417 */ 418 public java.util.Date getLastVoteDate() { 419 return _pollsQuestion.getLastVoteDate(); 420 } 421 422 /** 423 * Sets the last vote date of this polls question. 424 * 425 * @param lastVoteDate the last vote date of this polls question 426 */ 427 public void setLastVoteDate(java.util.Date lastVoteDate) { 428 _pollsQuestion.setLastVoteDate(lastVoteDate); 429 } 430 431 public boolean isNew() { 432 return _pollsQuestion.isNew(); 433 } 434 435 public void setNew(boolean n) { 436 _pollsQuestion.setNew(n); 437 } 438 439 public boolean isCachedModel() { 440 return _pollsQuestion.isCachedModel(); 441 } 442 443 public void setCachedModel(boolean cachedModel) { 444 _pollsQuestion.setCachedModel(cachedModel); 445 } 446 447 public boolean isEscapedModel() { 448 return _pollsQuestion.isEscapedModel(); 449 } 450 451 public void setEscapedModel(boolean escapedModel) { 452 _pollsQuestion.setEscapedModel(escapedModel); 453 } 454 455 public java.io.Serializable getPrimaryKeyObj() { 456 return _pollsQuestion.getPrimaryKeyObj(); 457 } 458 459 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { 460 return _pollsQuestion.getExpandoBridge(); 461 } 462 463 public void setExpandoBridgeAttributes( 464 com.liferay.portal.service.ServiceContext serviceContext) { 465 _pollsQuestion.setExpandoBridgeAttributes(serviceContext); 466 } 467 468 public java.lang.Object clone() { 469 return _pollsQuestion.clone(); 470 } 471 472 public int compareTo( 473 com.liferay.portlet.polls.model.PollsQuestion pollsQuestion) { 474 return _pollsQuestion.compareTo(pollsQuestion); 475 } 476 477 public int hashCode() { 478 return _pollsQuestion.hashCode(); 479 } 480 481 public com.liferay.portlet.polls.model.PollsQuestion toEscapedModel() { 482 return _pollsQuestion.toEscapedModel(); 483 } 484 485 public java.lang.String toString() { 486 return _pollsQuestion.toString(); 487 } 488 489 public java.lang.String toXmlString() { 490 return _pollsQuestion.toXmlString(); 491 } 492 493 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> getChoices() 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return _pollsQuestion.getChoices(); 496 } 497 498 public int getVotesCount() 499 throws com.liferay.portal.kernel.exception.SystemException { 500 return _pollsQuestion.getVotesCount(); 501 } 502 503 public boolean isExpired() { 504 return _pollsQuestion.isExpired(); 505 } 506 507 public PollsQuestion getWrappedPollsQuestion() { 508 return _pollsQuestion; 509 } 510 511 private PollsQuestion _pollsQuestion; 512 }