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