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