001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 public boolean isNew(); 203 204 public void setNew(boolean n); 205 206 public boolean isCachedModel(); 207 208 public void setCachedModel(boolean cachedModel); 209 210 public boolean isEscapedModel(); 211 212 public void setEscapedModel(boolean escapedModel); 213 214 public Serializable getPrimaryKeyObj(); 215 216 public ExpandoBridge getExpandoBridge(); 217 218 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 219 220 public Object clone(); 221 222 public int compareTo(AssetLink assetLink); 223 224 public int hashCode(); 225 226 public AssetLink toEscapedModel(); 227 228 public String toString(); 229 230 public String toXmlString(); 231 }