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