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