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