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