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.asset.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetLink}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetLink
026     * @generated
027     */
028    public class AssetLinkWrapper implements AssetLink, ModelWrapper<AssetLink> {
029            public AssetLinkWrapper(AssetLink assetLink) {
030                    _assetLink = assetLink;
031            }
032    
033            public Class<?> getModelClass() {
034                    return AssetLink.class;
035            }
036    
037            public String getModelClassName() {
038                    return AssetLink.class.getName();
039            }
040    
041            /**
042            * Returns the primary key of this asset link.
043            *
044            * @return the primary key of this asset link
045            */
046            public long getPrimaryKey() {
047                    return _assetLink.getPrimaryKey();
048            }
049    
050            /**
051            * Sets the primary key of this asset link.
052            *
053            * @param primaryKey the primary key of this asset link
054            */
055            public void setPrimaryKey(long primaryKey) {
056                    _assetLink.setPrimaryKey(primaryKey);
057            }
058    
059            /**
060            * Returns the link ID of this asset link.
061            *
062            * @return the link ID of this asset link
063            */
064            public long getLinkId() {
065                    return _assetLink.getLinkId();
066            }
067    
068            /**
069            * Sets the link ID of this asset link.
070            *
071            * @param linkId the link ID of this asset link
072            */
073            public void setLinkId(long linkId) {
074                    _assetLink.setLinkId(linkId);
075            }
076    
077            /**
078            * Returns the company ID of this asset link.
079            *
080            * @return the company ID of this asset link
081            */
082            public long getCompanyId() {
083                    return _assetLink.getCompanyId();
084            }
085    
086            /**
087            * Sets the company ID of this asset link.
088            *
089            * @param companyId the company ID of this asset link
090            */
091            public void setCompanyId(long companyId) {
092                    _assetLink.setCompanyId(companyId);
093            }
094    
095            /**
096            * Returns the user ID of this asset link.
097            *
098            * @return the user ID of this asset link
099            */
100            public long getUserId() {
101                    return _assetLink.getUserId();
102            }
103    
104            /**
105            * Sets the user ID of this asset link.
106            *
107            * @param userId the user ID of this asset link
108            */
109            public void setUserId(long userId) {
110                    _assetLink.setUserId(userId);
111            }
112    
113            /**
114            * Returns the user uuid of this asset link.
115            *
116            * @return the user uuid of this asset link
117            * @throws SystemException if a system exception occurred
118            */
119            public java.lang.String getUserUuid()
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return _assetLink.getUserUuid();
122            }
123    
124            /**
125            * Sets the user uuid of this asset link.
126            *
127            * @param userUuid the user uuid of this asset link
128            */
129            public void setUserUuid(java.lang.String userUuid) {
130                    _assetLink.setUserUuid(userUuid);
131            }
132    
133            /**
134            * Returns the user name of this asset link.
135            *
136            * @return the user name of this asset link
137            */
138            public java.lang.String getUserName() {
139                    return _assetLink.getUserName();
140            }
141    
142            /**
143            * Sets the user name of this asset link.
144            *
145            * @param userName the user name of this asset link
146            */
147            public void setUserName(java.lang.String userName) {
148                    _assetLink.setUserName(userName);
149            }
150    
151            /**
152            * Returns the create date of this asset link.
153            *
154            * @return the create date of this asset link
155            */
156            public java.util.Date getCreateDate() {
157                    return _assetLink.getCreateDate();
158            }
159    
160            /**
161            * Sets the create date of this asset link.
162            *
163            * @param createDate the create date of this asset link
164            */
165            public void setCreateDate(java.util.Date createDate) {
166                    _assetLink.setCreateDate(createDate);
167            }
168    
169            /**
170            * Returns the entry id1 of this asset link.
171            *
172            * @return the entry id1 of this asset link
173            */
174            public long getEntryId1() {
175                    return _assetLink.getEntryId1();
176            }
177    
178            /**
179            * Sets the entry id1 of this asset link.
180            *
181            * @param entryId1 the entry id1 of this asset link
182            */
183            public void setEntryId1(long entryId1) {
184                    _assetLink.setEntryId1(entryId1);
185            }
186    
187            /**
188            * Returns the entry id2 of this asset link.
189            *
190            * @return the entry id2 of this asset link
191            */
192            public long getEntryId2() {
193                    return _assetLink.getEntryId2();
194            }
195    
196            /**
197            * Sets the entry id2 of this asset link.
198            *
199            * @param entryId2 the entry id2 of this asset link
200            */
201            public void setEntryId2(long entryId2) {
202                    _assetLink.setEntryId2(entryId2);
203            }
204    
205            /**
206            * Returns the type of this asset link.
207            *
208            * @return the type of this asset link
209            */
210            public int getType() {
211                    return _assetLink.getType();
212            }
213    
214            /**
215            * Sets the type of this asset link.
216            *
217            * @param type the type of this asset link
218            */
219            public void setType(int type) {
220                    _assetLink.setType(type);
221            }
222    
223            /**
224            * Returns the weight of this asset link.
225            *
226            * @return the weight of this asset link
227            */
228            public int getWeight() {
229                    return _assetLink.getWeight();
230            }
231    
232            /**
233            * Sets the weight of this asset link.
234            *
235            * @param weight the weight of this asset link
236            */
237            public void setWeight(int weight) {
238                    _assetLink.setWeight(weight);
239            }
240    
241            public boolean isNew() {
242                    return _assetLink.isNew();
243            }
244    
245            public void setNew(boolean n) {
246                    _assetLink.setNew(n);
247            }
248    
249            public boolean isCachedModel() {
250                    return _assetLink.isCachedModel();
251            }
252    
253            public void setCachedModel(boolean cachedModel) {
254                    _assetLink.setCachedModel(cachedModel);
255            }
256    
257            public boolean isEscapedModel() {
258                    return _assetLink.isEscapedModel();
259            }
260    
261            public java.io.Serializable getPrimaryKeyObj() {
262                    return _assetLink.getPrimaryKeyObj();
263            }
264    
265            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
266                    _assetLink.setPrimaryKeyObj(primaryKeyObj);
267            }
268    
269            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
270                    return _assetLink.getExpandoBridge();
271            }
272    
273            public void setExpandoBridgeAttributes(
274                    com.liferay.portal.service.ServiceContext serviceContext) {
275                    _assetLink.setExpandoBridgeAttributes(serviceContext);
276            }
277    
278            @Override
279            public java.lang.Object clone() {
280                    return new AssetLinkWrapper((AssetLink)_assetLink.clone());
281            }
282    
283            public int compareTo(com.liferay.portlet.asset.model.AssetLink assetLink) {
284                    return _assetLink.compareTo(assetLink);
285            }
286    
287            @Override
288            public int hashCode() {
289                    return _assetLink.hashCode();
290            }
291    
292            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetLink> toCacheModel() {
293                    return _assetLink.toCacheModel();
294            }
295    
296            public com.liferay.portlet.asset.model.AssetLink toEscapedModel() {
297                    return new AssetLinkWrapper(_assetLink.toEscapedModel());
298            }
299    
300            @Override
301            public java.lang.String toString() {
302                    return _assetLink.toString();
303            }
304    
305            public java.lang.String toXmlString() {
306                    return _assetLink.toXmlString();
307            }
308    
309            public void persist()
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    _assetLink.persist();
312            }
313    
314            /**
315             * @deprecated Renamed to {@link #getWrappedModel}
316             */
317            public AssetLink getWrappedAssetLink() {
318                    return _assetLink;
319            }
320    
321            public AssetLink getWrappedModel() {
322                    return _assetLink;
323            }
324    
325            public void resetOriginalValues() {
326                    _assetLink.resetOriginalValues();
327            }
328    
329            private AssetLink _assetLink;
330    }