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