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