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