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.social.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SocialRelation}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SocialRelation
026     * @generated
027     */
028    public class SocialRelationWrapper implements SocialRelation,
029            ModelWrapper<SocialRelation> {
030            public SocialRelationWrapper(SocialRelation socialRelation) {
031                    _socialRelation = socialRelation;
032            }
033    
034            public Class<?> getModelClass() {
035                    return SocialRelation.class;
036            }
037    
038            public String getModelClassName() {
039                    return SocialRelation.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this social relation.
044            *
045            * @return the primary key of this social relation
046            */
047            public long getPrimaryKey() {
048                    return _socialRelation.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this social relation.
053            *
054            * @param primaryKey the primary key of this social relation
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _socialRelation.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this social relation.
062            *
063            * @return the uuid of this social relation
064            */
065            public java.lang.String getUuid() {
066                    return _socialRelation.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this social relation.
071            *
072            * @param uuid the uuid of this social relation
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _socialRelation.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the relation ID of this social relation.
080            *
081            * @return the relation ID of this social relation
082            */
083            public long getRelationId() {
084                    return _socialRelation.getRelationId();
085            }
086    
087            /**
088            * Sets the relation ID of this social relation.
089            *
090            * @param relationId the relation ID of this social relation
091            */
092            public void setRelationId(long relationId) {
093                    _socialRelation.setRelationId(relationId);
094            }
095    
096            /**
097            * Returns the company ID of this social relation.
098            *
099            * @return the company ID of this social relation
100            */
101            public long getCompanyId() {
102                    return _socialRelation.getCompanyId();
103            }
104    
105            /**
106            * Sets the company ID of this social relation.
107            *
108            * @param companyId the company ID of this social relation
109            */
110            public void setCompanyId(long companyId) {
111                    _socialRelation.setCompanyId(companyId);
112            }
113    
114            /**
115            * Returns the create date of this social relation.
116            *
117            * @return the create date of this social relation
118            */
119            public long getCreateDate() {
120                    return _socialRelation.getCreateDate();
121            }
122    
123            /**
124            * Sets the create date of this social relation.
125            *
126            * @param createDate the create date of this social relation
127            */
128            public void setCreateDate(long createDate) {
129                    _socialRelation.setCreateDate(createDate);
130            }
131    
132            /**
133            * Returns the user id1 of this social relation.
134            *
135            * @return the user id1 of this social relation
136            */
137            public long getUserId1() {
138                    return _socialRelation.getUserId1();
139            }
140    
141            /**
142            * Sets the user id1 of this social relation.
143            *
144            * @param userId1 the user id1 of this social relation
145            */
146            public void setUserId1(long userId1) {
147                    _socialRelation.setUserId1(userId1);
148            }
149    
150            /**
151            * Returns the user id2 of this social relation.
152            *
153            * @return the user id2 of this social relation
154            */
155            public long getUserId2() {
156                    return _socialRelation.getUserId2();
157            }
158    
159            /**
160            * Sets the user id2 of this social relation.
161            *
162            * @param userId2 the user id2 of this social relation
163            */
164            public void setUserId2(long userId2) {
165                    _socialRelation.setUserId2(userId2);
166            }
167    
168            /**
169            * Returns the type of this social relation.
170            *
171            * @return the type of this social relation
172            */
173            public int getType() {
174                    return _socialRelation.getType();
175            }
176    
177            /**
178            * Sets the type of this social relation.
179            *
180            * @param type the type of this social relation
181            */
182            public void setType(int type) {
183                    _socialRelation.setType(type);
184            }
185    
186            public boolean isNew() {
187                    return _socialRelation.isNew();
188            }
189    
190            public void setNew(boolean n) {
191                    _socialRelation.setNew(n);
192            }
193    
194            public boolean isCachedModel() {
195                    return _socialRelation.isCachedModel();
196            }
197    
198            public void setCachedModel(boolean cachedModel) {
199                    _socialRelation.setCachedModel(cachedModel);
200            }
201    
202            public boolean isEscapedModel() {
203                    return _socialRelation.isEscapedModel();
204            }
205    
206            public java.io.Serializable getPrimaryKeyObj() {
207                    return _socialRelation.getPrimaryKeyObj();
208            }
209    
210            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
211                    _socialRelation.setPrimaryKeyObj(primaryKeyObj);
212            }
213    
214            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
215                    return _socialRelation.getExpandoBridge();
216            }
217    
218            public void setExpandoBridgeAttributes(
219                    com.liferay.portal.service.ServiceContext serviceContext) {
220                    _socialRelation.setExpandoBridgeAttributes(serviceContext);
221            }
222    
223            @Override
224            public java.lang.Object clone() {
225                    return new SocialRelationWrapper((SocialRelation)_socialRelation.clone());
226            }
227    
228            public int compareTo(
229                    com.liferay.portlet.social.model.SocialRelation socialRelation) {
230                    return _socialRelation.compareTo(socialRelation);
231            }
232    
233            @Override
234            public int hashCode() {
235                    return _socialRelation.hashCode();
236            }
237    
238            public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialRelation> toCacheModel() {
239                    return _socialRelation.toCacheModel();
240            }
241    
242            public com.liferay.portlet.social.model.SocialRelation toEscapedModel() {
243                    return new SocialRelationWrapper(_socialRelation.toEscapedModel());
244            }
245    
246            @Override
247            public java.lang.String toString() {
248                    return _socialRelation.toString();
249            }
250    
251            public java.lang.String toXmlString() {
252                    return _socialRelation.toXmlString();
253            }
254    
255            public void persist()
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    _socialRelation.persist();
258            }
259    
260            /**
261             * @deprecated Renamed to {@link #getWrappedModel}
262             */
263            public SocialRelation getWrappedSocialRelation() {
264                    return _socialRelation;
265            }
266    
267            public SocialRelation getWrappedModel() {
268                    return _socialRelation;
269            }
270    
271            public void resetOriginalValues() {
272                    _socialRelation.resetOriginalValues();
273            }
274    
275            private SocialRelation _socialRelation;
276    }