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 @Override 160 public boolean isNew(); 161 162 @Override 163 public void setNew(boolean n); 164 165 @Override 166 public boolean isCachedModel(); 167 168 @Override 169 public void setCachedModel(boolean cachedModel); 170 171 @Override 172 public boolean isEscapedModel(); 173 174 @Override 175 public Serializable getPrimaryKeyObj(); 176 177 @Override 178 public void setPrimaryKeyObj(Serializable primaryKeyObj); 179 180 @Override 181 public ExpandoBridge getExpandoBridge(); 182 183 @Override 184 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 185 186 @Override 187 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 188 189 @Override 190 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 191 192 @Override 193 public Object clone(); 194 195 @Override 196 public int compareTo(SocialRelation socialRelation); 197 198 @Override 199 public int hashCode(); 200 201 @Override 202 public CacheModel<SocialRelation> toCacheModel(); 203 204 @Override 205 public SocialRelation toEscapedModel(); 206 207 @Override 208 public SocialRelation toUnescapedModel(); 209 210 @Override 211 public String toString(); 212 213 @Override 214 public String toXmlString(); 215 }