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