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