1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.asset.model.AssetLink;
20  
21  /**
22   * <a href="AssetLinkPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       AssetLinkPersistenceImpl
31   * @see       AssetLinkUtil
32   * @generated
33   */
34  public interface AssetLinkPersistence extends BasePersistence<AssetLink> {
35      public void cacheResult(com.liferay.portlet.asset.model.AssetLink assetLink);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks);
39  
40      public com.liferay.portlet.asset.model.AssetLink create(long linkId);
41  
42      public com.liferay.portlet.asset.model.AssetLink remove(long linkId)
43          throws com.liferay.portal.kernel.exception.SystemException,
44              com.liferay.portlet.asset.NoSuchLinkException;
45  
46      public com.liferay.portlet.asset.model.AssetLink updateImpl(
47          com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
51          long linkId)
52          throws com.liferay.portal.kernel.exception.SystemException,
53              com.liferay.portlet.asset.NoSuchLinkException;
54  
55      public com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
56          long linkId) throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
59          long entryId1)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
63          long entryId1, int start, int end)
64          throws com.liferay.portal.kernel.exception.SystemException;
65  
66      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
67          long entryId1, int start, int end,
68          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public com.liferay.portlet.asset.model.AssetLink findByE1_First(
72          long entryId1,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException,
75              com.liferay.portlet.asset.NoSuchLinkException;
76  
77      public com.liferay.portlet.asset.model.AssetLink findByE1_Last(
78          long entryId1,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException,
81              com.liferay.portlet.asset.NoSuchLinkException;
82  
83      public com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
84          long linkId, long entryId1,
85          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86          throws com.liferay.portal.kernel.exception.SystemException,
87              com.liferay.portlet.asset.NoSuchLinkException;
88  
89      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
90          long entryId2)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
94          long entryId2, int start, int end)
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
98          long entryId2, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portlet.asset.model.AssetLink findByE2_First(
103         long entryId2,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException,
106             com.liferay.portlet.asset.NoSuchLinkException;
107 
108     public com.liferay.portlet.asset.model.AssetLink findByE2_Last(
109         long entryId2,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.asset.NoSuchLinkException;
113 
114     public com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
115         long linkId, long entryId2,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.kernel.exception.SystemException,
118             com.liferay.portlet.asset.NoSuchLinkException;
119 
120     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
121         long entryId1, long entryId2)
122         throws com.liferay.portal.kernel.exception.SystemException;
123 
124     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
125         long entryId1, long entryId2, int start, int end)
126         throws com.liferay.portal.kernel.exception.SystemException;
127 
128     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
129         long entryId1, long entryId2, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public com.liferay.portlet.asset.model.AssetLink findByE_E_First(
134         long entryId1, long entryId2,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException,
137             com.liferay.portlet.asset.NoSuchLinkException;
138 
139     public com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
140         long entryId1, long entryId2,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.asset.NoSuchLinkException;
144 
145     public com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
146         long linkId, long entryId1, long entryId2,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.asset.NoSuchLinkException;
150 
151     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
152         long entryId1, int type)
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
156         long entryId1, int type, int start, int end)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
160         long entryId1, int type, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
165         long entryId1, int type,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.asset.NoSuchLinkException;
169 
170     public com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
171         long entryId1, int type,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException,
174             com.liferay.portlet.asset.NoSuchLinkException;
175 
176     public com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
177         long linkId, long entryId1, int type,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException,
180             com.liferay.portlet.asset.NoSuchLinkException;
181 
182     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
183         long entryId2, int type)
184         throws com.liferay.portal.kernel.exception.SystemException;
185 
186     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
187         long entryId2, int type, int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
191         long entryId2, int type, int start, int end,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
196         long entryId2, int type,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.kernel.exception.SystemException,
199             com.liferay.portlet.asset.NoSuchLinkException;
200 
201     public com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
202         long entryId2, int type,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.asset.NoSuchLinkException;
206 
207     public com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
208         long linkId, long entryId2, int type,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.asset.NoSuchLinkException;
212 
213     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
214         long entryId1, long entryId2, int type)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
218         long entryId1, long entryId2, int type, int start, int end)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
222         long entryId1, long entryId2, int type, int start, int end,
223         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
227         long entryId1, long entryId2, int type,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.kernel.exception.SystemException,
230             com.liferay.portlet.asset.NoSuchLinkException;
231 
232     public com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
233         long entryId1, long entryId2, int type,
234         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235         throws com.liferay.portal.kernel.exception.SystemException,
236             com.liferay.portlet.asset.NoSuchLinkException;
237 
238     public com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
239         long linkId, long entryId1, long entryId2, int type,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.asset.NoSuchLinkException;
243 
244     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
245         throws com.liferay.portal.kernel.exception.SystemException;
246 
247     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
248         int start, int end)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
252         int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public void removeByE1(long entryId1)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     public void removeByE2(long entryId2)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public void removeByE_E(long entryId1, long entryId2)
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public void removeByE1_T(long entryId1, int type)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public void removeByE2_T(long entryId2, int type)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public void removeByE_E_T(long entryId1, long entryId2, int type)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public void removeAll()
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public int countByE1(long entryId1)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public int countByE2(long entryId2)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public int countByE_E(long entryId1, long entryId2)
284         throws com.liferay.portal.kernel.exception.SystemException;
285 
286     public int countByE1_T(long entryId1, int type)
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public int countByE2_T(long entryId2, int type)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public int countByE_E_T(long entryId1, long entryId2, int type)
293         throws com.liferay.portal.kernel.exception.SystemException;
294 
295     public int countAll()
296         throws com.liferay.portal.kernel.exception.SystemException;
297 }