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 DDMStorageLink}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DDMStorageLink
026     * @generated
027     */
028    public class DDMStorageLinkWrapper implements DDMStorageLink,
029            ModelWrapper<DDMStorageLink> {
030            public DDMStorageLinkWrapper(DDMStorageLink ddmStorageLink) {
031                    _ddmStorageLink = ddmStorageLink;
032            }
033    
034            public Class<?> getModelClass() {
035                    return DDMStorageLink.class;
036            }
037    
038            public String getModelClassName() {
039                    return DDMStorageLink.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this d d m storage link.
044            *
045            * @return the primary key of this d d m storage link
046            */
047            public long getPrimaryKey() {
048                    return _ddmStorageLink.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this d d m storage link.
053            *
054            * @param primaryKey the primary key of this d d m storage link
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _ddmStorageLink.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this d d m storage link.
062            *
063            * @return the uuid of this d d m storage link
064            */
065            public java.lang.String getUuid() {
066                    return _ddmStorageLink.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this d d m storage link.
071            *
072            * @param uuid the uuid of this d d m storage link
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _ddmStorageLink.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the storage link ID of this d d m storage link.
080            *
081            * @return the storage link ID of this d d m storage link
082            */
083            public long getStorageLinkId() {
084                    return _ddmStorageLink.getStorageLinkId();
085            }
086    
087            /**
088            * Sets the storage link ID of this d d m storage link.
089            *
090            * @param storageLinkId the storage link ID of this d d m storage link
091            */
092            public void setStorageLinkId(long storageLinkId) {
093                    _ddmStorageLink.setStorageLinkId(storageLinkId);
094            }
095    
096            /**
097            * Returns the fully qualified class name of this d d m storage link.
098            *
099            * @return the fully qualified class name of this d d m storage link
100            */
101            public java.lang.String getClassName() {
102                    return _ddmStorageLink.getClassName();
103            }
104    
105            /**
106            * Returns the class name ID of this d d m storage link.
107            *
108            * @return the class name ID of this d d m storage link
109            */
110            public long getClassNameId() {
111                    return _ddmStorageLink.getClassNameId();
112            }
113    
114            /**
115            * Sets the class name ID of this d d m storage link.
116            *
117            * @param classNameId the class name ID of this d d m storage link
118            */
119            public void setClassNameId(long classNameId) {
120                    _ddmStorageLink.setClassNameId(classNameId);
121            }
122    
123            /**
124            * Returns the class p k of this d d m storage link.
125            *
126            * @return the class p k of this d d m storage link
127            */
128            public long getClassPK() {
129                    return _ddmStorageLink.getClassPK();
130            }
131    
132            /**
133            * Sets the class p k of this d d m storage link.
134            *
135            * @param classPK the class p k of this d d m storage link
136            */
137            public void setClassPK(long classPK) {
138                    _ddmStorageLink.setClassPK(classPK);
139            }
140    
141            /**
142            * Returns the structure ID of this d d m storage link.
143            *
144            * @return the structure ID of this d d m storage link
145            */
146            public long getStructureId() {
147                    return _ddmStorageLink.getStructureId();
148            }
149    
150            /**
151            * Sets the structure ID of this d d m storage link.
152            *
153            * @param structureId the structure ID of this d d m storage link
154            */
155            public void setStructureId(long structureId) {
156                    _ddmStorageLink.setStructureId(structureId);
157            }
158    
159            public boolean isNew() {
160                    return _ddmStorageLink.isNew();
161            }
162    
163            public void setNew(boolean n) {
164                    _ddmStorageLink.setNew(n);
165            }
166    
167            public boolean isCachedModel() {
168                    return _ddmStorageLink.isCachedModel();
169            }
170    
171            public void setCachedModel(boolean cachedModel) {
172                    _ddmStorageLink.setCachedModel(cachedModel);
173            }
174    
175            public boolean isEscapedModel() {
176                    return _ddmStorageLink.isEscapedModel();
177            }
178    
179            public java.io.Serializable getPrimaryKeyObj() {
180                    return _ddmStorageLink.getPrimaryKeyObj();
181            }
182    
183            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
184                    _ddmStorageLink.setPrimaryKeyObj(primaryKeyObj);
185            }
186    
187            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
188                    return _ddmStorageLink.getExpandoBridge();
189            }
190    
191            public void setExpandoBridgeAttributes(
192                    com.liferay.portal.service.ServiceContext serviceContext) {
193                    _ddmStorageLink.setExpandoBridgeAttributes(serviceContext);
194            }
195    
196            @Override
197            public java.lang.Object clone() {
198                    return new DDMStorageLinkWrapper((DDMStorageLink)_ddmStorageLink.clone());
199            }
200    
201            public int compareTo(
202                    com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink) {
203                    return _ddmStorageLink.compareTo(ddmStorageLink);
204            }
205    
206            @Override
207            public int hashCode() {
208                    return _ddmStorageLink.hashCode();
209            }
210    
211            public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> toCacheModel() {
212                    return _ddmStorageLink.toCacheModel();
213            }
214    
215            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink toEscapedModel() {
216                    return new DDMStorageLinkWrapper(_ddmStorageLink.toEscapedModel());
217            }
218    
219            @Override
220            public java.lang.String toString() {
221                    return _ddmStorageLink.toString();
222            }
223    
224            public java.lang.String toXmlString() {
225                    return _ddmStorageLink.toXmlString();
226            }
227    
228            public void persist()
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    _ddmStorageLink.persist();
231            }
232    
233            public java.lang.String getStorageType()
234                    throws com.liferay.portal.kernel.exception.PortalException,
235                            com.liferay.portal.kernel.exception.SystemException {
236                    return _ddmStorageLink.getStorageType();
237            }
238    
239            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure()
240                    throws com.liferay.portal.kernel.exception.PortalException,
241                            com.liferay.portal.kernel.exception.SystemException {
242                    return _ddmStorageLink.getStructure();
243            }
244    
245            /**
246             * @deprecated Renamed to {@link #getWrappedModel}
247             */
248            public DDMStorageLink getWrappedDDMStorageLink() {
249                    return _ddmStorageLink;
250            }
251    
252            public DDMStorageLink getWrappedModel() {
253                    return _ddmStorageLink;
254            }
255    
256            public void resetOriginalValues() {
257                    _ddmStorageLink.resetOriginalValues();
258            }
259    
260            private DDMStorageLink _ddmStorageLink;
261    }