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