001    /**
002     * Copyright (c) 2000-2010 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.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetLink;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetLinkPersistenceImpl
024     * @see       AssetLinkUtil
025     * @generated
026     */
027    public interface AssetLinkPersistence extends BasePersistence<AssetLink> {
028            public void cacheResult(com.liferay.portlet.asset.model.AssetLink assetLink);
029    
030            public void cacheResult(
031                    java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks);
032    
033            public com.liferay.portlet.asset.model.AssetLink create(long linkId);
034    
035            public com.liferay.portlet.asset.model.AssetLink remove(long linkId)
036                    throws com.liferay.portal.kernel.exception.SystemException,
037                            com.liferay.portlet.asset.NoSuchLinkException;
038    
039            public com.liferay.portlet.asset.model.AssetLink updateImpl(
040                    com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
041                    throws com.liferay.portal.kernel.exception.SystemException;
042    
043            public com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
044                    long linkId)
045                    throws com.liferay.portal.kernel.exception.SystemException,
046                            com.liferay.portlet.asset.NoSuchLinkException;
047    
048            public com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
049                    long linkId) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
052                    long entryId1)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
056                    long entryId1, int start, int end)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
060                    long entryId1, int start, int end,
061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public com.liferay.portlet.asset.model.AssetLink findByE1_First(
065                    long entryId1,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.asset.NoSuchLinkException;
069    
070            public com.liferay.portlet.asset.model.AssetLink findByE1_Last(
071                    long entryId1,
072                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.asset.NoSuchLinkException;
075    
076            public com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
077                    long linkId, long entryId1,
078                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
079                    throws com.liferay.portal.kernel.exception.SystemException,
080                            com.liferay.portlet.asset.NoSuchLinkException;
081    
082            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
083                    long entryId2)
084                    throws com.liferay.portal.kernel.exception.SystemException;
085    
086            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
087                    long entryId2, int start, int end)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
091                    long entryId2, int start, int end,
092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portlet.asset.model.AssetLink findByE2_First(
096                    long entryId2,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException,
099                            com.liferay.portlet.asset.NoSuchLinkException;
100    
101            public com.liferay.portlet.asset.model.AssetLink findByE2_Last(
102                    long entryId2,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.kernel.exception.SystemException,
105                            com.liferay.portlet.asset.NoSuchLinkException;
106    
107            public com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
108                    long linkId, long entryId2,
109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110                    throws com.liferay.portal.kernel.exception.SystemException,
111                            com.liferay.portlet.asset.NoSuchLinkException;
112    
113            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
114                    long entryId1, long entryId2)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
118                    long entryId1, long entryId2, int start, int end)
119                    throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
122                    long entryId1, long entryId2, int start, int end,
123                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public com.liferay.portlet.asset.model.AssetLink findByE_E_First(
127                    long entryId1, long entryId2,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.kernel.exception.SystemException,
130                            com.liferay.portlet.asset.NoSuchLinkException;
131    
132            public com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
133                    long entryId1, long entryId2,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException,
136                            com.liferay.portlet.asset.NoSuchLinkException;
137    
138            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
139                    long linkId, long entryId1, long entryId2,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException,
142                            com.liferay.portlet.asset.NoSuchLinkException;
143    
144            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
145                    long entryId1, int type)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
149                    long entryId1, int type, int start, int end)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
153                    long entryId1, int type, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
158                    long entryId1, int type,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException,
161                            com.liferay.portlet.asset.NoSuchLinkException;
162    
163            public com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
164                    long entryId1, int type,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.asset.NoSuchLinkException;
168    
169            public com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
170                    long linkId, long entryId1, int type,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.asset.NoSuchLinkException;
174    
175            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
176                    long entryId2, int type)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
180                    long entryId2, int type, int start, int end)
181                    throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
184                    long entryId2, int type, int start, int end,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            public com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
189                    long entryId2, int type,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.asset.NoSuchLinkException;
193    
194            public com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
195                    long entryId2, int type,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException,
198                            com.liferay.portlet.asset.NoSuchLinkException;
199    
200            public com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
201                    long linkId, long entryId2, int type,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.asset.NoSuchLinkException;
205    
206            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
207                    long entryId1, long entryId2, int type)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
211                    long entryId1, long entryId2, int type, int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
215                    long entryId1, long entryId2, int type, int start, int end,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
220                    long entryId1, long entryId2, int type,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.asset.NoSuchLinkException;
224    
225            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
226                    long entryId1, long entryId2, int type,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException,
229                            com.liferay.portlet.asset.NoSuchLinkException;
230    
231            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
232                    long linkId, long entryId1, long entryId2, int type,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.asset.NoSuchLinkException;
236    
237            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
241                    int start, int end)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
245                    int start, int end,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            public void removeByE1(long entryId1)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            public void removeByE2(long entryId2)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            public void removeByE_E(long entryId1, long entryId2)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            public void removeByE1_T(long entryId1, int type)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            public void removeByE2_T(long entryId2, int type)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            public void removeByE_E_T(long entryId1, long entryId2, int type)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            public void removeAll()
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            public int countByE1(long entryId1)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            public int countByE2(long entryId2)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            public int countByE_E(long entryId1, long entryId2)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            public int countByE1_T(long entryId1, int type)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            public int countByE2_T(long entryId2, int type)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public int countByE_E_T(long entryId1, long entryId2, int type)
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            public int countAll()
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    }