001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            /**
032            * Gets the primary key of this social relation.
033            *
034            * @return the primary key of this social relation
035            */
036            public long getPrimaryKey() {
037                    return _socialRelation.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this social relation
042            *
043            * @param pk the primary key of this social relation
044            */
045            public void setPrimaryKey(long pk) {
046                    _socialRelation.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the uuid of this social relation.
051            *
052            * @return the uuid of this social relation
053            */
054            public java.lang.String getUuid() {
055                    return _socialRelation.getUuid();
056            }
057    
058            /**
059            * Sets the uuid of this social relation.
060            *
061            * @param uuid the uuid of this social relation
062            */
063            public void setUuid(java.lang.String uuid) {
064                    _socialRelation.setUuid(uuid);
065            }
066    
067            /**
068            * Gets the relation id of this social relation.
069            *
070            * @return the relation id of this social relation
071            */
072            public long getRelationId() {
073                    return _socialRelation.getRelationId();
074            }
075    
076            /**
077            * Sets the relation id of this social relation.
078            *
079            * @param relationId the relation id of this social relation
080            */
081            public void setRelationId(long relationId) {
082                    _socialRelation.setRelationId(relationId);
083            }
084    
085            /**
086            * Gets the company id of this social relation.
087            *
088            * @return the company id of this social relation
089            */
090            public long getCompanyId() {
091                    return _socialRelation.getCompanyId();
092            }
093    
094            /**
095            * Sets the company id of this social relation.
096            *
097            * @param companyId the company id of this social relation
098            */
099            public void setCompanyId(long companyId) {
100                    _socialRelation.setCompanyId(companyId);
101            }
102    
103            /**
104            * Gets the create date of this social relation.
105            *
106            * @return the create date of this social relation
107            */
108            public long getCreateDate() {
109                    return _socialRelation.getCreateDate();
110            }
111    
112            /**
113            * Sets the create date of this social relation.
114            *
115            * @param createDate the create date of this social relation
116            */
117            public void setCreateDate(long createDate) {
118                    _socialRelation.setCreateDate(createDate);
119            }
120    
121            /**
122            * Gets the user id1 of this social relation.
123            *
124            * @return the user id1 of this social relation
125            */
126            public long getUserId1() {
127                    return _socialRelation.getUserId1();
128            }
129    
130            /**
131            * Sets the user id1 of this social relation.
132            *
133            * @param userId1 the user id1 of this social relation
134            */
135            public void setUserId1(long userId1) {
136                    _socialRelation.setUserId1(userId1);
137            }
138    
139            /**
140            * Gets the user id2 of this social relation.
141            *
142            * @return the user id2 of this social relation
143            */
144            public long getUserId2() {
145                    return _socialRelation.getUserId2();
146            }
147    
148            /**
149            * Sets the user id2 of this social relation.
150            *
151            * @param userId2 the user id2 of this social relation
152            */
153            public void setUserId2(long userId2) {
154                    _socialRelation.setUserId2(userId2);
155            }
156    
157            /**
158            * Gets the type of this social relation.
159            *
160            * @return the type of this social relation
161            */
162            public int getType() {
163                    return _socialRelation.getType();
164            }
165    
166            /**
167            * Sets the type of this social relation.
168            *
169            * @param type the type of this social relation
170            */
171            public void setType(int type) {
172                    _socialRelation.setType(type);
173            }
174    
175            public boolean isNew() {
176                    return _socialRelation.isNew();
177            }
178    
179            public void setNew(boolean n) {
180                    _socialRelation.setNew(n);
181            }
182    
183            public boolean isCachedModel() {
184                    return _socialRelation.isCachedModel();
185            }
186    
187            public void setCachedModel(boolean cachedModel) {
188                    _socialRelation.setCachedModel(cachedModel);
189            }
190    
191            public boolean isEscapedModel() {
192                    return _socialRelation.isEscapedModel();
193            }
194    
195            public void setEscapedModel(boolean escapedModel) {
196                    _socialRelation.setEscapedModel(escapedModel);
197            }
198    
199            public java.io.Serializable getPrimaryKeyObj() {
200                    return _socialRelation.getPrimaryKeyObj();
201            }
202    
203            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
204                    return _socialRelation.getExpandoBridge();
205            }
206    
207            public void setExpandoBridgeAttributes(
208                    com.liferay.portal.service.ServiceContext serviceContext) {
209                    _socialRelation.setExpandoBridgeAttributes(serviceContext);
210            }
211    
212            public java.lang.Object clone() {
213                    return _socialRelation.clone();
214            }
215    
216            public int compareTo(
217                    com.liferay.portlet.social.model.SocialRelation socialRelation) {
218                    return _socialRelation.compareTo(socialRelation);
219            }
220    
221            public int hashCode() {
222                    return _socialRelation.hashCode();
223            }
224    
225            public com.liferay.portlet.social.model.SocialRelation toEscapedModel() {
226                    return _socialRelation.toEscapedModel();
227            }
228    
229            public java.lang.String toString() {
230                    return _socialRelation.toString();
231            }
232    
233            public java.lang.String toXmlString() {
234                    return _socialRelation.toXmlString();
235            }
236    
237            public SocialRelation getWrappedSocialRelation() {
238                    return _socialRelation;
239            }
240    
241            private SocialRelation _socialRelation;
242    }