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