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