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.asset.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.model.BaseModel; 020 import com.liferay.portal.service.ServiceContext; 021 022 import com.liferay.portlet.expando.model.ExpandoBridge; 023 024 import java.io.Serializable; 025 026 import java.util.Date; 027 028 /** 029 * 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. 030 * 031 * <p> 032 * 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}. 033 * </p> 034 * 035 * <p> 036 * Never modify or reference this interface directly. All methods that expect a asset link model instance should use the {@link AssetLink} interface instead. 037 * </p> 038 * 039 * @author Brian Wing Shun Chan 040 * @see AssetLink 041 * @see com.liferay.portlet.asset.model.impl.AssetLinkImpl 042 * @see com.liferay.portlet.asset.model.impl.AssetLinkModelImpl 043 * @generated 044 */ 045 public interface AssetLinkModel extends BaseModel<AssetLink> { 046 /** 047 * Gets the primary key of this asset link. 048 * 049 * @return the primary key of this asset link 050 */ 051 public long getPrimaryKey(); 052 053 /** 054 * Sets the primary key of this asset link 055 * 056 * @param pk the primary key of this asset link 057 */ 058 public void setPrimaryKey(long pk); 059 060 /** 061 * Gets the link id of this asset link. 062 * 063 * @return the link id of this asset link 064 */ 065 public long getLinkId(); 066 067 /** 068 * Sets the link id of this asset link. 069 * 070 * @param linkId the link id of this asset link 071 */ 072 public void setLinkId(long linkId); 073 074 /** 075 * Gets the company id of this asset link. 076 * 077 * @return the company id of this asset link 078 */ 079 public long getCompanyId(); 080 081 /** 082 * Sets the company id of this asset link. 083 * 084 * @param companyId the company id of this asset link 085 */ 086 public void setCompanyId(long companyId); 087 088 /** 089 * Gets the user id of this asset link. 090 * 091 * @return the user id of this asset link 092 */ 093 public long getUserId(); 094 095 /** 096 * Sets the user id of this asset link. 097 * 098 * @param userId the user id of this asset link 099 */ 100 public void setUserId(long userId); 101 102 /** 103 * Gets the user uuid of this asset link. 104 * 105 * @return the user uuid of this asset link 106 * @throws SystemException if a system exception occurred 107 */ 108 public String getUserUuid() throws SystemException; 109 110 /** 111 * Sets the user uuid of this asset link. 112 * 113 * @param userUuid the user uuid of this asset link 114 */ 115 public void setUserUuid(String userUuid); 116 117 /** 118 * Gets the user name of this asset link. 119 * 120 * @return the user name of this asset link 121 */ 122 @AutoEscape 123 public String getUserName(); 124 125 /** 126 * Sets the user name of this asset link. 127 * 128 * @param userName the user name of this asset link 129 */ 130 public void setUserName(String userName); 131 132 /** 133 * Gets the create date of this asset link. 134 * 135 * @return the create date of this asset link 136 */ 137 public Date getCreateDate(); 138 139 /** 140 * Sets the create date of this asset link. 141 * 142 * @param createDate the create date of this asset link 143 */ 144 public void setCreateDate(Date createDate); 145 146 /** 147 * Gets the entry id1 of this asset link. 148 * 149 * @return the entry id1 of this asset link 150 */ 151 public long getEntryId1(); 152 153 /** 154 * Sets the entry id1 of this asset link. 155 * 156 * @param entryId1 the entry id1 of this asset link 157 */ 158 public void setEntryId1(long entryId1); 159 160 /** 161 * Gets the entry id2 of this asset link. 162 * 163 * @return the entry id2 of this asset link 164 */ 165 public long getEntryId2(); 166 167 /** 168 * Sets the entry id2 of this asset link. 169 * 170 * @param entryId2 the entry id2 of this asset link 171 */ 172 public void setEntryId2(long entryId2); 173 174 /** 175 * Gets the type of this asset link. 176 * 177 * @return the type of this asset link 178 */ 179 public int getType(); 180 181 /** 182 * Sets the type of this asset link. 183 * 184 * @param type the type of this asset link 185 */ 186 public void setType(int type); 187 188 /** 189 * Gets the weight of this asset link. 190 * 191 * @return the weight of this asset link 192 */ 193 public int getWeight(); 194 195 /** 196 * Sets the weight of this asset link. 197 * 198 * @param weight the weight of this asset link 199 */ 200 public void setWeight(int weight); 201 202 /** 203 * Gets a copy of this asset link as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 204 * 205 * @return the escaped model instance 206 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 207 */ 208 public AssetLink toEscapedModel(); 209 210 public boolean isNew(); 211 212 public void setNew(boolean n); 213 214 public boolean isCachedModel(); 215 216 public void setCachedModel(boolean cachedModel); 217 218 public boolean isEscapedModel(); 219 220 public void setEscapedModel(boolean escapedModel); 221 222 public Serializable getPrimaryKeyObj(); 223 224 public ExpandoBridge getExpandoBridge(); 225 226 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 227 228 public Object clone(); 229 230 public int compareTo(AssetLink assetLink); 231 232 public int hashCode(); 233 234 public String toString(); 235 236 public String toXmlString(); 237 }