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