001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.model.BaseModel;
021    import com.liferay.portal.model.CacheModel;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.expando.model.ExpandoBridge;
025    
026    import java.io.Serializable;
027    
028    /**
029     * The base model interface for the SocialRelation service. Represents a row in the "SocialRelation" database table, with each column mapped to a property of this class.
030     *
031     * <p>
032     * This interface and its corresponding implementation {@link com.liferay.portlet.social.model.impl.SocialRelationModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.social.model.impl.SocialRelationImpl}.
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see SocialRelation
037     * @see com.liferay.portlet.social.model.impl.SocialRelationImpl
038     * @see com.liferay.portlet.social.model.impl.SocialRelationModelImpl
039     * @generated
040     */
041    @ProviderType
042    public interface SocialRelationModel extends BaseModel<SocialRelation> {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify or reference this interface directly. All methods that expect a social relation model instance should use the {@link SocialRelation} interface instead.
047             */
048    
049            /**
050             * Returns the primary key of this social relation.
051             *
052             * @return the primary key of this social relation
053             */
054            public long getPrimaryKey();
055    
056            /**
057             * Sets the primary key of this social relation.
058             *
059             * @param primaryKey the primary key of this social relation
060             */
061            public void setPrimaryKey(long primaryKey);
062    
063            /**
064             * Returns the uuid of this social relation.
065             *
066             * @return the uuid of this social relation
067             */
068            @AutoEscape
069            public String getUuid();
070    
071            /**
072             * Sets the uuid of this social relation.
073             *
074             * @param uuid the uuid of this social relation
075             */
076            public void setUuid(String uuid);
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    
085            /**
086             * Sets the relation ID of this social relation.
087             *
088             * @param relationId the relation ID of this social relation
089             */
090            public void setRelationId(long relationId);
091    
092            /**
093             * Returns the company ID of this social relation.
094             *
095             * @return the company ID of this social relation
096             */
097            public long getCompanyId();
098    
099            /**
100             * Sets the company ID of this social relation.
101             *
102             * @param companyId the company ID of this social relation
103             */
104            public void setCompanyId(long companyId);
105    
106            /**
107             * Returns the create date of this social relation.
108             *
109             * @return the create date of this social relation
110             */
111            public long getCreateDate();
112    
113            /**
114             * Sets the create date of this social relation.
115             *
116             * @param createDate the create date of this social relation
117             */
118            public void setCreateDate(long createDate);
119    
120            /**
121             * Returns the user id1 of this social relation.
122             *
123             * @return the user id1 of this social relation
124             */
125            public long getUserId1();
126    
127            /**
128             * Sets the user id1 of this social relation.
129             *
130             * @param userId1 the user id1 of this social relation
131             */
132            public void setUserId1(long userId1);
133    
134            /**
135             * Returns the user id2 of this social relation.
136             *
137             * @return the user id2 of this social relation
138             */
139            public long getUserId2();
140    
141            /**
142             * Sets the user id2 of this social relation.
143             *
144             * @param userId2 the user id2 of this social relation
145             */
146            public void setUserId2(long userId2);
147    
148            /**
149             * Returns the type of this social relation.
150             *
151             * @return the type of this social relation
152             */
153            public int getType();
154    
155            /**
156             * Sets the type of this social relation.
157             *
158             * @param type the type of this social relation
159             */
160            public void setType(int type);
161    
162            @Override
163            public boolean isNew();
164    
165            @Override
166            public void setNew(boolean n);
167    
168            @Override
169            public boolean isCachedModel();
170    
171            @Override
172            public void setCachedModel(boolean cachedModel);
173    
174            @Override
175            public boolean isEscapedModel();
176    
177            @Override
178            public Serializable getPrimaryKeyObj();
179    
180            @Override
181            public void setPrimaryKeyObj(Serializable primaryKeyObj);
182    
183            @Override
184            public ExpandoBridge getExpandoBridge();
185    
186            @Override
187            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
188    
189            @Override
190            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
191    
192            @Override
193            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
194    
195            @Override
196            public Object clone();
197    
198            @Override
199            public int compareTo(SocialRelation socialRelation);
200    
201            @Override
202            public int hashCode();
203    
204            @Override
205            public CacheModel<SocialRelation> toCacheModel();
206    
207            @Override
208            public SocialRelation toEscapedModel();
209    
210            @Override
211            public SocialRelation toUnescapedModel();
212    
213            @Override
214            public String toString();
215    
216            @Override
217            public String toXmlString();
218    }