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.asset.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 import java.util.Date; 030 031 /** 032 * The base model interface for the AssetLink service. Represents a row in the "AssetLink" database table, with each column mapped to a property of this class. 033 * 034 * <p> 035 * This interface and its corresponding implementation {@link com.liferay.portlet.asset.model.impl.AssetLinkModelImpl} 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.asset.model.impl.AssetLinkImpl}. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see AssetLink 040 * @see com.liferay.portlet.asset.model.impl.AssetLinkImpl 041 * @see com.liferay.portlet.asset.model.impl.AssetLinkModelImpl 042 * @generated 043 */ 044 @ProviderType 045 public interface AssetLinkModel extends BaseModel<AssetLink>, ShardedModel { 046 /* 047 * NOTE FOR DEVELOPERS: 048 * 049 * Never modify or reference this interface directly. All methods that expect a asset link model instance should use the {@link AssetLink} interface instead. 050 */ 051 052 /** 053 * Returns the primary key of this asset link. 054 * 055 * @return the primary key of this asset link 056 */ 057 public long getPrimaryKey(); 058 059 /** 060 * Sets the primary key of this asset link. 061 * 062 * @param primaryKey the primary key of this asset link 063 */ 064 public void setPrimaryKey(long primaryKey); 065 066 /** 067 * Returns the link ID of this asset link. 068 * 069 * @return the link ID of this asset link 070 */ 071 public long getLinkId(); 072 073 /** 074 * Sets the link ID of this asset link. 075 * 076 * @param linkId the link ID of this asset link 077 */ 078 public void setLinkId(long linkId); 079 080 /** 081 * Returns the company ID of this asset link. 082 * 083 * @return the company ID of this asset link 084 */ 085 @Override 086 public long getCompanyId(); 087 088 /** 089 * Sets the company ID of this asset link. 090 * 091 * @param companyId the company ID of this asset link 092 */ 093 @Override 094 public void setCompanyId(long companyId); 095 096 /** 097 * Returns the user ID of this asset link. 098 * 099 * @return the user ID of this asset link 100 */ 101 public long getUserId(); 102 103 /** 104 * Sets the user ID of this asset link. 105 * 106 * @param userId the user ID of this asset link 107 */ 108 public void setUserId(long userId); 109 110 /** 111 * Returns the user uuid of this asset link. 112 * 113 * @return the user uuid of this asset link 114 */ 115 public String getUserUuid(); 116 117 /** 118 * Sets the user uuid of this asset link. 119 * 120 * @param userUuid the user uuid of this asset link 121 */ 122 public void setUserUuid(String userUuid); 123 124 /** 125 * Returns the user name of this asset link. 126 * 127 * @return the user name of this asset link 128 */ 129 @AutoEscape 130 public String getUserName(); 131 132 /** 133 * Sets the user name of this asset link. 134 * 135 * @param userName the user name of this asset link 136 */ 137 public void setUserName(String userName); 138 139 /** 140 * Returns the create date of this asset link. 141 * 142 * @return the create date of this asset link 143 */ 144 public Date getCreateDate(); 145 146 /** 147 * Sets the create date of this asset link. 148 * 149 * @param createDate the create date of this asset link 150 */ 151 public void setCreateDate(Date createDate); 152 153 /** 154 * Returns the entry id1 of this asset link. 155 * 156 * @return the entry id1 of this asset link 157 */ 158 public long getEntryId1(); 159 160 /** 161 * Sets the entry id1 of this asset link. 162 * 163 * @param entryId1 the entry id1 of this asset link 164 */ 165 public void setEntryId1(long entryId1); 166 167 /** 168 * Returns the entry id2 of this asset link. 169 * 170 * @return the entry id2 of this asset link 171 */ 172 public long getEntryId2(); 173 174 /** 175 * Sets the entry id2 of this asset link. 176 * 177 * @param entryId2 the entry id2 of this asset link 178 */ 179 public void setEntryId2(long entryId2); 180 181 /** 182 * Returns the type of this asset link. 183 * 184 * @return the type of this asset link 185 */ 186 public int getType(); 187 188 /** 189 * Sets the type of this asset link. 190 * 191 * @param type the type of this asset link 192 */ 193 public void setType(int type); 194 195 /** 196 * Returns the weight of this asset link. 197 * 198 * @return the weight of this asset link 199 */ 200 public int getWeight(); 201 202 /** 203 * Sets the weight of this asset link. 204 * 205 * @param weight the weight of this asset link 206 */ 207 public void setWeight(int weight); 208 209 @Override 210 public boolean isNew(); 211 212 @Override 213 public void setNew(boolean n); 214 215 @Override 216 public boolean isCachedModel(); 217 218 @Override 219 public void setCachedModel(boolean cachedModel); 220 221 @Override 222 public boolean isEscapedModel(); 223 224 @Override 225 public Serializable getPrimaryKeyObj(); 226 227 @Override 228 public void setPrimaryKeyObj(Serializable primaryKeyObj); 229 230 @Override 231 public ExpandoBridge getExpandoBridge(); 232 233 @Override 234 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 235 236 @Override 237 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 238 239 @Override 240 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 241 242 @Override 243 public Object clone(); 244 245 @Override 246 public int compareTo(com.liferay.portlet.asset.model.AssetLink assetLink); 247 248 @Override 249 public int hashCode(); 250 251 @Override 252 public CacheModel<com.liferay.portlet.asset.model.AssetLink> toCacheModel(); 253 254 @Override 255 public com.liferay.portlet.asset.model.AssetLink toEscapedModel(); 256 257 @Override 258 public com.liferay.portlet.asset.model.AssetLink toUnescapedModel(); 259 260 @Override 261 public String toString(); 262 263 @Override 264 public String toXmlString(); 265 }