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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.model.BaseModel;
022    import com.liferay.portal.model.CacheModel;
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> {
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            public long getCompanyId();
086    
087            /**
088             * Sets the company ID of this asset link.
089             *
090             * @param companyId the company ID of this asset link
091             */
092            public void setCompanyId(long companyId);
093    
094            /**
095             * Returns the user ID of this asset link.
096             *
097             * @return the user ID of this asset link
098             */
099            public long getUserId();
100    
101            /**
102             * Sets the user ID of this asset link.
103             *
104             * @param userId the user ID of this asset link
105             */
106            public void setUserId(long userId);
107    
108            /**
109             * Returns the user uuid of this asset link.
110             *
111             * @return the user uuid of this asset link
112             * @throws SystemException if a system exception occurred
113             */
114            public String getUserUuid() throws SystemException;
115    
116            /**
117             * Sets the user uuid of this asset link.
118             *
119             * @param userUuid the user uuid of this asset link
120             */
121            public void setUserUuid(String userUuid);
122    
123            /**
124             * Returns the user name of this asset link.
125             *
126             * @return the user name of this asset link
127             */
128            @AutoEscape
129            public String getUserName();
130    
131            /**
132             * Sets the user name of this asset link.
133             *
134             * @param userName the user name of this asset link
135             */
136            public void setUserName(String userName);
137    
138            /**
139             * Returns the create date of this asset link.
140             *
141             * @return the create date of this asset link
142             */
143            public Date getCreateDate();
144    
145            /**
146             * Sets the create date of this asset link.
147             *
148             * @param createDate the create date of this asset link
149             */
150            public void setCreateDate(Date createDate);
151    
152            /**
153             * Returns the entry id1 of this asset link.
154             *
155             * @return the entry id1 of this asset link
156             */
157            public long getEntryId1();
158    
159            /**
160             * Sets the entry id1 of this asset link.
161             *
162             * @param entryId1 the entry id1 of this asset link
163             */
164            public void setEntryId1(long entryId1);
165    
166            /**
167             * Returns the entry id2 of this asset link.
168             *
169             * @return the entry id2 of this asset link
170             */
171            public long getEntryId2();
172    
173            /**
174             * Sets the entry id2 of this asset link.
175             *
176             * @param entryId2 the entry id2 of this asset link
177             */
178            public void setEntryId2(long entryId2);
179    
180            /**
181             * Returns the type of this asset link.
182             *
183             * @return the type of this asset link
184             */
185            public int getType();
186    
187            /**
188             * Sets the type of this asset link.
189             *
190             * @param type the type of this asset link
191             */
192            public void setType(int type);
193    
194            /**
195             * Returns the weight of this asset link.
196             *
197             * @return the weight of this asset link
198             */
199            public int getWeight();
200    
201            /**
202             * Sets the weight of this asset link.
203             *
204             * @param weight the weight of this asset link
205             */
206            public void setWeight(int weight);
207    
208            @Override
209            public boolean isNew();
210    
211            @Override
212            public void setNew(boolean n);
213    
214            @Override
215            public boolean isCachedModel();
216    
217            @Override
218            public void setCachedModel(boolean cachedModel);
219    
220            @Override
221            public boolean isEscapedModel();
222    
223            @Override
224            public Serializable getPrimaryKeyObj();
225    
226            @Override
227            public void setPrimaryKeyObj(Serializable primaryKeyObj);
228    
229            @Override
230            public ExpandoBridge getExpandoBridge();
231    
232            @Override
233            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
234    
235            @Override
236            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
237    
238            @Override
239            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
240    
241            @Override
242            public Object clone();
243    
244            @Override
245            public int compareTo(AssetLink assetLink);
246    
247            @Override
248            public int hashCode();
249    
250            @Override
251            public CacheModel<AssetLink> toCacheModel();
252    
253            @Override
254            public AssetLink toEscapedModel();
255    
256            @Override
257            public AssetLink toUnescapedModel();
258    
259            @Override
260            public String toString();
261    
262            @Override
263            public String toXmlString();
264    }