001 /** 002 * Copyright (c) 2000-2011 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.mobiledevicerules.model; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link MDRAction}. 020 * </p> 021 * 022 * @author Edward C. Han 023 * @see MDRAction 024 * @generated 025 */ 026 public class MDRActionWrapper implements MDRAction { 027 public MDRActionWrapper(MDRAction mdrAction) { 028 _mdrAction = mdrAction; 029 } 030 031 public Class<?> getModelClass() { 032 return MDRAction.class; 033 } 034 035 public String getModelClassName() { 036 return MDRAction.class.getName(); 037 } 038 039 /** 040 * Returns the primary key of this m d r action. 041 * 042 * @return the primary key of this m d r action 043 */ 044 public long getPrimaryKey() { 045 return _mdrAction.getPrimaryKey(); 046 } 047 048 /** 049 * Sets the primary key of this m d r action. 050 * 051 * @param primaryKey the primary key of this m d r action 052 */ 053 public void setPrimaryKey(long primaryKey) { 054 _mdrAction.setPrimaryKey(primaryKey); 055 } 056 057 /** 058 * Returns the uuid of this m d r action. 059 * 060 * @return the uuid of this m d r action 061 */ 062 public java.lang.String getUuid() { 063 return _mdrAction.getUuid(); 064 } 065 066 /** 067 * Sets the uuid of this m d r action. 068 * 069 * @param uuid the uuid of this m d r action 070 */ 071 public void setUuid(java.lang.String uuid) { 072 _mdrAction.setUuid(uuid); 073 } 074 075 /** 076 * Returns the action ID of this m d r action. 077 * 078 * @return the action ID of this m d r action 079 */ 080 public long getActionId() { 081 return _mdrAction.getActionId(); 082 } 083 084 /** 085 * Sets the action ID of this m d r action. 086 * 087 * @param actionId the action ID of this m d r action 088 */ 089 public void setActionId(long actionId) { 090 _mdrAction.setActionId(actionId); 091 } 092 093 /** 094 * Returns the group ID of this m d r action. 095 * 096 * @return the group ID of this m d r action 097 */ 098 public long getGroupId() { 099 return _mdrAction.getGroupId(); 100 } 101 102 /** 103 * Sets the group ID of this m d r action. 104 * 105 * @param groupId the group ID of this m d r action 106 */ 107 public void setGroupId(long groupId) { 108 _mdrAction.setGroupId(groupId); 109 } 110 111 /** 112 * Returns the company ID of this m d r action. 113 * 114 * @return the company ID of this m d r action 115 */ 116 public long getCompanyId() { 117 return _mdrAction.getCompanyId(); 118 } 119 120 /** 121 * Sets the company ID of this m d r action. 122 * 123 * @param companyId the company ID of this m d r action 124 */ 125 public void setCompanyId(long companyId) { 126 _mdrAction.setCompanyId(companyId); 127 } 128 129 /** 130 * Returns the user ID of this m d r action. 131 * 132 * @return the user ID of this m d r action 133 */ 134 public long getUserId() { 135 return _mdrAction.getUserId(); 136 } 137 138 /** 139 * Sets the user ID of this m d r action. 140 * 141 * @param userId the user ID of this m d r action 142 */ 143 public void setUserId(long userId) { 144 _mdrAction.setUserId(userId); 145 } 146 147 /** 148 * Returns the user uuid of this m d r action. 149 * 150 * @return the user uuid of this m d r action 151 * @throws SystemException if a system exception occurred 152 */ 153 public java.lang.String getUserUuid() 154 throws com.liferay.portal.kernel.exception.SystemException { 155 return _mdrAction.getUserUuid(); 156 } 157 158 /** 159 * Sets the user uuid of this m d r action. 160 * 161 * @param userUuid the user uuid of this m d r action 162 */ 163 public void setUserUuid(java.lang.String userUuid) { 164 _mdrAction.setUserUuid(userUuid); 165 } 166 167 /** 168 * Returns the user name of this m d r action. 169 * 170 * @return the user name of this m d r action 171 */ 172 public java.lang.String getUserName() { 173 return _mdrAction.getUserName(); 174 } 175 176 /** 177 * Sets the user name of this m d r action. 178 * 179 * @param userName the user name of this m d r action 180 */ 181 public void setUserName(java.lang.String userName) { 182 _mdrAction.setUserName(userName); 183 } 184 185 /** 186 * Returns the create date of this m d r action. 187 * 188 * @return the create date of this m d r action 189 */ 190 public java.util.Date getCreateDate() { 191 return _mdrAction.getCreateDate(); 192 } 193 194 /** 195 * Sets the create date of this m d r action. 196 * 197 * @param createDate the create date of this m d r action 198 */ 199 public void setCreateDate(java.util.Date createDate) { 200 _mdrAction.setCreateDate(createDate); 201 } 202 203 /** 204 * Returns the modified date of this m d r action. 205 * 206 * @return the modified date of this m d r action 207 */ 208 public java.util.Date getModifiedDate() { 209 return _mdrAction.getModifiedDate(); 210 } 211 212 /** 213 * Sets the modified date of this m d r action. 214 * 215 * @param modifiedDate the modified date of this m d r action 216 */ 217 public void setModifiedDate(java.util.Date modifiedDate) { 218 _mdrAction.setModifiedDate(modifiedDate); 219 } 220 221 /** 222 * Returns the fully qualified class name of this m d r action. 223 * 224 * @return the fully qualified class name of this m d r action 225 */ 226 public java.lang.String getClassName() { 227 return _mdrAction.getClassName(); 228 } 229 230 /** 231 * Returns the class name ID of this m d r action. 232 * 233 * @return the class name ID of this m d r action 234 */ 235 public long getClassNameId() { 236 return _mdrAction.getClassNameId(); 237 } 238 239 /** 240 * Sets the class name ID of this m d r action. 241 * 242 * @param classNameId the class name ID of this m d r action 243 */ 244 public void setClassNameId(long classNameId) { 245 _mdrAction.setClassNameId(classNameId); 246 } 247 248 /** 249 * Returns the class p k of this m d r action. 250 * 251 * @return the class p k of this m d r action 252 */ 253 public long getClassPK() { 254 return _mdrAction.getClassPK(); 255 } 256 257 /** 258 * Sets the class p k of this m d r action. 259 * 260 * @param classPK the class p k of this m d r action 261 */ 262 public void setClassPK(long classPK) { 263 _mdrAction.setClassPK(classPK); 264 } 265 266 /** 267 * Returns the rule group instance ID of this m d r action. 268 * 269 * @return the rule group instance ID of this m d r action 270 */ 271 public long getRuleGroupInstanceId() { 272 return _mdrAction.getRuleGroupInstanceId(); 273 } 274 275 /** 276 * Sets the rule group instance ID of this m d r action. 277 * 278 * @param ruleGroupInstanceId the rule group instance ID of this m d r action 279 */ 280 public void setRuleGroupInstanceId(long ruleGroupInstanceId) { 281 _mdrAction.setRuleGroupInstanceId(ruleGroupInstanceId); 282 } 283 284 /** 285 * Returns the name of this m d r action. 286 * 287 * @return the name of this m d r action 288 */ 289 public java.lang.String getName() { 290 return _mdrAction.getName(); 291 } 292 293 /** 294 * Returns the localized name of this m d r action in the language. Uses the default language if no localization exists for the requested language. 295 * 296 * @param locale the locale of the language 297 * @return the localized name of this m d r action 298 */ 299 public java.lang.String getName(java.util.Locale locale) { 300 return _mdrAction.getName(locale); 301 } 302 303 /** 304 * Returns the localized name of this m d r action in the language, optionally using the default language if no localization exists for the requested language. 305 * 306 * @param locale the local of the language 307 * @param useDefault whether to use the default language if no localization exists for the requested language 308 * @return the localized name of this m d r action. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. 309 */ 310 public java.lang.String getName(java.util.Locale locale, boolean useDefault) { 311 return _mdrAction.getName(locale, useDefault); 312 } 313 314 /** 315 * Returns the localized name of this m d r action in the language. Uses the default language if no localization exists for the requested language. 316 * 317 * @param languageId the ID of the language 318 * @return the localized name of this m d r action 319 */ 320 public java.lang.String getName(java.lang.String languageId) { 321 return _mdrAction.getName(languageId); 322 } 323 324 /** 325 * Returns the localized name of this m d r action in the language, optionally using the default language if no localization exists for the requested language. 326 * 327 * @param languageId the ID of the language 328 * @param useDefault whether to use the default language if no localization exists for the requested language 329 * @return the localized name of this m d r action 330 */ 331 public java.lang.String getName(java.lang.String languageId, 332 boolean useDefault) { 333 return _mdrAction.getName(languageId, useDefault); 334 } 335 336 public java.lang.String getNameCurrentLanguageId() { 337 return _mdrAction.getNameCurrentLanguageId(); 338 } 339 340 public java.lang.String getNameCurrentValue() { 341 return _mdrAction.getNameCurrentValue(); 342 } 343 344 /** 345 * Returns a map of the locales and localized names of this m d r action. 346 * 347 * @return the locales and localized names of this m d r action 348 */ 349 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() { 350 return _mdrAction.getNameMap(); 351 } 352 353 /** 354 * Sets the name of this m d r action. 355 * 356 * @param name the name of this m d r action 357 */ 358 public void setName(java.lang.String name) { 359 _mdrAction.setName(name); 360 } 361 362 /** 363 * Sets the localized name of this m d r action in the language. 364 * 365 * @param name the localized name of this m d r action 366 * @param locale the locale of the language 367 */ 368 public void setName(java.lang.String name, java.util.Locale locale) { 369 _mdrAction.setName(name, locale); 370 } 371 372 /** 373 * Sets the localized name of this m d r action in the language, and sets the default locale. 374 * 375 * @param name the localized name of this m d r action 376 * @param locale the locale of the language 377 * @param defaultLocale the default locale 378 */ 379 public void setName(java.lang.String name, java.util.Locale locale, 380 java.util.Locale defaultLocale) { 381 _mdrAction.setName(name, locale, defaultLocale); 382 } 383 384 public void setNameCurrentLanguageId(java.lang.String languageId) { 385 _mdrAction.setNameCurrentLanguageId(languageId); 386 } 387 388 /** 389 * Sets the localized names of this m d r action from the map of locales and localized names. 390 * 391 * @param nameMap the locales and localized names of this m d r action 392 */ 393 public void setNameMap( 394 java.util.Map<java.util.Locale, java.lang.String> nameMap) { 395 _mdrAction.setNameMap(nameMap); 396 } 397 398 /** 399 * Sets the localized names of this m d r action from the map of locales and localized names, and sets the default locale. 400 * 401 * @param nameMap the locales and localized names of this m d r action 402 * @param defaultLocale the default locale 403 */ 404 public void setNameMap( 405 java.util.Map<java.util.Locale, java.lang.String> nameMap, 406 java.util.Locale defaultLocale) { 407 _mdrAction.setNameMap(nameMap, defaultLocale); 408 } 409 410 /** 411 * Returns the description of this m d r action. 412 * 413 * @return the description of this m d r action 414 */ 415 public java.lang.String getDescription() { 416 return _mdrAction.getDescription(); 417 } 418 419 /** 420 * Returns the localized description of this m d r action in the language. Uses the default language if no localization exists for the requested language. 421 * 422 * @param locale the locale of the language 423 * @return the localized description of this m d r action 424 */ 425 public java.lang.String getDescription(java.util.Locale locale) { 426 return _mdrAction.getDescription(locale); 427 } 428 429 /** 430 * Returns the localized description of this m d r action in the language, optionally using the default language if no localization exists for the requested language. 431 * 432 * @param locale the local of the language 433 * @param useDefault whether to use the default language if no localization exists for the requested language 434 * @return the localized description of this m d r action. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. 435 */ 436 public java.lang.String getDescription(java.util.Locale locale, 437 boolean useDefault) { 438 return _mdrAction.getDescription(locale, useDefault); 439 } 440 441 /** 442 * Returns the localized description of this m d r action in the language. Uses the default language if no localization exists for the requested language. 443 * 444 * @param languageId the ID of the language 445 * @return the localized description of this m d r action 446 */ 447 public java.lang.String getDescription(java.lang.String languageId) { 448 return _mdrAction.getDescription(languageId); 449 } 450 451 /** 452 * Returns the localized description of this m d r action in the language, optionally using the default language if no localization exists for the requested language. 453 * 454 * @param languageId the ID of the language 455 * @param useDefault whether to use the default language if no localization exists for the requested language 456 * @return the localized description of this m d r action 457 */ 458 public java.lang.String getDescription(java.lang.String languageId, 459 boolean useDefault) { 460 return _mdrAction.getDescription(languageId, useDefault); 461 } 462 463 public java.lang.String getDescriptionCurrentLanguageId() { 464 return _mdrAction.getDescriptionCurrentLanguageId(); 465 } 466 467 public java.lang.String getDescriptionCurrentValue() { 468 return _mdrAction.getDescriptionCurrentValue(); 469 } 470 471 /** 472 * Returns a map of the locales and localized descriptions of this m d r action. 473 * 474 * @return the locales and localized descriptions of this m d r action 475 */ 476 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() { 477 return _mdrAction.getDescriptionMap(); 478 } 479 480 /** 481 * Sets the description of this m d r action. 482 * 483 * @param description the description of this m d r action 484 */ 485 public void setDescription(java.lang.String description) { 486 _mdrAction.setDescription(description); 487 } 488 489 /** 490 * Sets the localized description of this m d r action in the language. 491 * 492 * @param description the localized description of this m d r action 493 * @param locale the locale of the language 494 */ 495 public void setDescription(java.lang.String description, 496 java.util.Locale locale) { 497 _mdrAction.setDescription(description, locale); 498 } 499 500 /** 501 * Sets the localized description of this m d r action in the language, and sets the default locale. 502 * 503 * @param description the localized description of this m d r action 504 * @param locale the locale of the language 505 * @param defaultLocale the default locale 506 */ 507 public void setDescription(java.lang.String description, 508 java.util.Locale locale, java.util.Locale defaultLocale) { 509 _mdrAction.setDescription(description, locale, defaultLocale); 510 } 511 512 public void setDescriptionCurrentLanguageId(java.lang.String languageId) { 513 _mdrAction.setDescriptionCurrentLanguageId(languageId); 514 } 515 516 /** 517 * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions. 518 * 519 * @param descriptionMap the locales and localized descriptions of this m d r action 520 */ 521 public void setDescriptionMap( 522 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) { 523 _mdrAction.setDescriptionMap(descriptionMap); 524 } 525 526 /** 527 * Sets the localized descriptions of this m d r action from the map of locales and localized descriptions, and sets the default locale. 528 * 529 * @param descriptionMap the locales and localized descriptions of this m d r action 530 * @param defaultLocale the default locale 531 */ 532 public void setDescriptionMap( 533 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 534 java.util.Locale defaultLocale) { 535 _mdrAction.setDescriptionMap(descriptionMap, defaultLocale); 536 } 537 538 /** 539 * Returns the type of this m d r action. 540 * 541 * @return the type of this m d r action 542 */ 543 public java.lang.String getType() { 544 return _mdrAction.getType(); 545 } 546 547 /** 548 * Sets the type of this m d r action. 549 * 550 * @param type the type of this m d r action 551 */ 552 public void setType(java.lang.String type) { 553 _mdrAction.setType(type); 554 } 555 556 /** 557 * Returns the type settings of this m d r action. 558 * 559 * @return the type settings of this m d r action 560 */ 561 public java.lang.String getTypeSettings() { 562 return _mdrAction.getTypeSettings(); 563 } 564 565 /** 566 * Sets the type settings of this m d r action. 567 * 568 * @param typeSettings the type settings of this m d r action 569 */ 570 public void setTypeSettings(java.lang.String typeSettings) { 571 _mdrAction.setTypeSettings(typeSettings); 572 } 573 574 public boolean isNew() { 575 return _mdrAction.isNew(); 576 } 577 578 public void setNew(boolean n) { 579 _mdrAction.setNew(n); 580 } 581 582 public boolean isCachedModel() { 583 return _mdrAction.isCachedModel(); 584 } 585 586 public void setCachedModel(boolean cachedModel) { 587 _mdrAction.setCachedModel(cachedModel); 588 } 589 590 public boolean isEscapedModel() { 591 return _mdrAction.isEscapedModel(); 592 } 593 594 public java.io.Serializable getPrimaryKeyObj() { 595 return _mdrAction.getPrimaryKeyObj(); 596 } 597 598 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { 599 _mdrAction.setPrimaryKeyObj(primaryKeyObj); 600 } 601 602 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { 603 return _mdrAction.getExpandoBridge(); 604 } 605 606 public void setExpandoBridgeAttributes( 607 com.liferay.portal.service.ServiceContext serviceContext) { 608 _mdrAction.setExpandoBridgeAttributes(serviceContext); 609 } 610 611 @Override 612 public java.lang.Object clone() { 613 return new MDRActionWrapper((MDRAction)_mdrAction.clone()); 614 } 615 616 public int compareTo( 617 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) { 618 return _mdrAction.compareTo(mdrAction); 619 } 620 621 @Override 622 public int hashCode() { 623 return _mdrAction.hashCode(); 624 } 625 626 public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRAction> toCacheModel() { 627 return _mdrAction.toCacheModel(); 628 } 629 630 public com.liferay.portlet.mobiledevicerules.model.MDRAction toEscapedModel() { 631 return new MDRActionWrapper(_mdrAction.toEscapedModel()); 632 } 633 634 @Override 635 public java.lang.String toString() { 636 return _mdrAction.toString(); 637 } 638 639 public java.lang.String toXmlString() { 640 return _mdrAction.toXmlString(); 641 } 642 643 public void persist() 644 throws com.liferay.portal.kernel.exception.SystemException { 645 _mdrAction.persist(); 646 } 647 648 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() { 649 return _mdrAction.getTypeSettingsProperties(); 650 } 651 652 public void setTypeSettingsProperties( 653 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) { 654 _mdrAction.setTypeSettingsProperties(typeSettingsProperties); 655 } 656 657 public MDRAction getWrappedMDRAction() { 658 return _mdrAction; 659 } 660 661 public void resetOriginalValues() { 662 _mdrAction.resetOriginalValues(); 663 } 664 665 private MDRAction _mdrAction; 666 }