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