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.journal.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalArticleImage;
020    
021    /**
022     * The persistence interface for the journal article image service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link JournalArticleImageUtil} to access the journal article image persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see JournalArticleImagePersistenceImpl
034     * @see JournalArticleImageUtil
035     * @generated
036     */
037    public interface JournalArticleImagePersistence extends BasePersistence<JournalArticleImage> {
038            /**
039            * Caches the journal article image in the entity cache if it is enabled.
040            *
041            * @param journalArticleImage the journal article image to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage);
045    
046            /**
047            * Caches the journal article images in the entity cache if it is enabled.
048            *
049            * @param journalArticleImages the journal article images to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages);
053    
054            /**
055            * Creates a new journal article image with the primary key. Does not add the journal article image to the database.
056            *
057            * @param articleImageId the primary key for the new journal article image
058            * @return the new journal article image
059            */
060            public com.liferay.portlet.journal.model.JournalArticleImage create(
061                    long articleImageId);
062    
063            /**
064            * Removes the journal article image with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param articleImageId the primary key of the journal article image to remove
067            * @return the journal article image that was removed
068            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.journal.model.JournalArticleImage remove(
072                    long articleImageId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.journal.NoSuchArticleImageException;
075    
076            public com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
077                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the journal article image with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchArticleImageException} if it could not be found.
083            *
084            * @param articleImageId the primary key of the journal article image to find
085            * @return the journal article image
086            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
090                    long articleImageId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.journal.NoSuchArticleImageException;
093    
094            /**
095            * Finds the journal article image with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param articleImageId the primary key of the journal article image to find
098            * @return the journal article image, or <code>null</code> if a journal article image with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
102                    long articleImageId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the journal article images where groupId = &#63;.
107            *
108            * @param groupId the group id to search with
109            * @return the matching journal article images
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
113                    long groupId)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the journal article images where groupId = &#63;.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param groupId the group id to search with
124            * @param start the lower bound of the range of journal article images to return
125            * @param end the upper bound of the range of journal article images to return (not inclusive)
126            * @return the range of matching journal article images
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
130                    long groupId, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the journal article images where groupId = &#63;.
135            *
136            * <p>
137            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
138            * </p>
139            *
140            * @param groupId the group id to search with
141            * @param start the lower bound of the range of journal article images to return
142            * @param end the upper bound of the range of journal article images to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching journal article images
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
148                    long groupId, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first journal article image in the ordered set where groupId = &#63;.
154            *
155            * <p>
156            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
157            * </p>
158            *
159            * @param groupId the group id to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching journal article image
162            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
166                    long groupId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.journal.NoSuchArticleImageException;
170    
171            /**
172            * Finds the last journal article image in the ordered set where groupId = &#63;.
173            *
174            * <p>
175            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
176            * </p>
177            *
178            * @param groupId the group id to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching journal article image
181            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
185                    long groupId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.journal.NoSuchArticleImageException;
189    
190            /**
191            * Finds the journal article images before and after the current journal article image in the ordered set where groupId = &#63;.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
195            * </p>
196            *
197            * @param articleImageId the primary key of the current journal article image
198            * @param groupId the group id to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next journal article image
201            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
205                    long articleImageId, long groupId,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.journal.NoSuchArticleImageException;
209    
210            /**
211            * Finds all the journal article images where tempImage = &#63;.
212            *
213            * @param tempImage the temp image to search with
214            * @return the matching journal article images
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
218                    boolean tempImage)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            /**
222            * Finds a range of all the journal article images where tempImage = &#63;.
223            *
224            * <p>
225            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
226            * </p>
227            *
228            * @param tempImage the temp image to search with
229            * @param start the lower bound of the range of journal article images to return
230            * @param end the upper bound of the range of journal article images to return (not inclusive)
231            * @return the range of matching journal article images
232            * @throws SystemException if a system exception occurred
233            */
234            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
235                    boolean tempImage, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Finds an ordered range of all the journal article images where tempImage = &#63;.
240            *
241            * <p>
242            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
243            * </p>
244            *
245            * @param tempImage the temp image to search with
246            * @param start the lower bound of the range of journal article images to return
247            * @param end the upper bound of the range of journal article images to return (not inclusive)
248            * @param orderByComparator the comparator to order the results by
249            * @return the ordered range of matching journal article images
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
253                    boolean tempImage, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * Finds the first journal article image in the ordered set where tempImage = &#63;.
259            *
260            * <p>
261            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
262            * </p>
263            *
264            * @param tempImage the temp image to search with
265            * @param orderByComparator the comparator to order the set by
266            * @return the first matching journal article image
267            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
271                    boolean tempImage,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException,
274                            com.liferay.portlet.journal.NoSuchArticleImageException;
275    
276            /**
277            * Finds the last journal article image in the ordered set where tempImage = &#63;.
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
281            * </p>
282            *
283            * @param tempImage the temp image to search with
284            * @param orderByComparator the comparator to order the set by
285            * @return the last matching journal article image
286            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
290                    boolean tempImage,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.journal.NoSuchArticleImageException;
294    
295            /**
296            * Finds the journal article images before and after the current journal article image in the ordered set where tempImage = &#63;.
297            *
298            * <p>
299            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
300            * </p>
301            *
302            * @param articleImageId the primary key of the current journal article image
303            * @param tempImage the temp image to search with
304            * @param orderByComparator the comparator to order the set by
305            * @return the previous, current, and next journal article image
306            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
310                    long articleImageId, boolean tempImage,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.journal.NoSuchArticleImageException;
314    
315            /**
316            * Finds all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
317            *
318            * @param groupId the group id to search with
319            * @param articleId the article id to search with
320            * @param version the version to search with
321            * @return the matching journal article images
322            * @throws SystemException if a system exception occurred
323            */
324            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
325                    long groupId, java.lang.String articleId, double version)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Finds a range of all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
330            *
331            * <p>
332            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
333            * </p>
334            *
335            * @param groupId the group id to search with
336            * @param articleId the article id to search with
337            * @param version the version to search with
338            * @param start the lower bound of the range of journal article images to return
339            * @param end the upper bound of the range of journal article images to return (not inclusive)
340            * @return the range of matching journal article images
341            * @throws SystemException if a system exception occurred
342            */
343            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
344                    long groupId, java.lang.String articleId, double version, int start,
345                    int end) throws com.liferay.portal.kernel.exception.SystemException;
346    
347            /**
348            * Finds an ordered range of all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
349            *
350            * <p>
351            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
352            * </p>
353            *
354            * @param groupId the group id to search with
355            * @param articleId the article id to search with
356            * @param version the version to search with
357            * @param start the lower bound of the range of journal article images to return
358            * @param end the upper bound of the range of journal article images to return (not inclusive)
359            * @param orderByComparator the comparator to order the results by
360            * @return the ordered range of matching journal article images
361            * @throws SystemException if a system exception occurred
362            */
363            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
364                    long groupId, java.lang.String articleId, double version, int start,
365                    int end,
366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Finds the first journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
371            *
372            * <p>
373            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
374            * </p>
375            *
376            * @param groupId the group id to search with
377            * @param articleId the article id to search with
378            * @param version the version to search with
379            * @param orderByComparator the comparator to order the set by
380            * @return the first matching journal article image
381            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
382            * @throws SystemException if a system exception occurred
383            */
384            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
385                    long groupId, java.lang.String articleId, double version,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException,
388                            com.liferay.portlet.journal.NoSuchArticleImageException;
389    
390            /**
391            * Finds the last journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
392            *
393            * <p>
394            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
395            * </p>
396            *
397            * @param groupId the group id to search with
398            * @param articleId the article id to search with
399            * @param version the version to search with
400            * @param orderByComparator the comparator to order the set by
401            * @return the last matching journal article image
402            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
403            * @throws SystemException if a system exception occurred
404            */
405            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
406                    long groupId, java.lang.String articleId, double version,
407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408                    throws com.liferay.portal.kernel.exception.SystemException,
409                            com.liferay.portlet.journal.NoSuchArticleImageException;
410    
411            /**
412            * Finds the journal article images before and after the current journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
413            *
414            * <p>
415            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
416            * </p>
417            *
418            * @param articleImageId the primary key of the current journal article image
419            * @param groupId the group id to search with
420            * @param articleId the article id to search with
421            * @param version the version to search with
422            * @param orderByComparator the comparator to order the set by
423            * @return the previous, current, and next journal article image
424            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
425            * @throws SystemException if a system exception occurred
426            */
427            public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
428                    long articleImageId, long groupId, java.lang.String articleId,
429                    double version,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.kernel.exception.SystemException,
432                            com.liferay.portlet.journal.NoSuchArticleImageException;
433    
434            /**
435            * Finds the journal article image where groupId = &#63; and articleId = &#63; and version = &#63; and elInstanceId = &#63; and elName = &#63; and languageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchArticleImageException} if it could not be found.
436            *
437            * @param groupId the group id to search with
438            * @param articleId the article id to search with
439            * @param version the version to search with
440            * @param elInstanceId the el instance id to search with
441            * @param elName the el name to search with
442            * @param languageId the language id to search with
443            * @return the matching journal article image
444            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
448                    long groupId, java.lang.String articleId, double version,
449                    java.lang.String elInstanceId, java.lang.String elName,
450                    java.lang.String languageId)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.journal.NoSuchArticleImageException;
453    
454            /**
455            * Finds the journal article image where groupId = &#63; and articleId = &#63; and version = &#63; and elInstanceId = &#63; and elName = &#63; and languageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
456            *
457            * @param groupId the group id to search with
458            * @param articleId the article id to search with
459            * @param version the version to search with
460            * @param elInstanceId the el instance id to search with
461            * @param elName the el name to search with
462            * @param languageId the language id to search with
463            * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
467                    long groupId, java.lang.String articleId, double version,
468                    java.lang.String elInstanceId, java.lang.String elName,
469                    java.lang.String languageId)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Finds the journal article image where groupId = &#63; and articleId = &#63; and version = &#63; and elInstanceId = &#63; and elName = &#63; and languageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
474            *
475            * @param groupId the group id to search with
476            * @param articleId the article id to search with
477            * @param version the version to search with
478            * @param elInstanceId the el instance id to search with
479            * @param elName the el name to search with
480            * @param languageId the language id to search with
481            * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found
482            * @throws SystemException if a system exception occurred
483            */
484            public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
485                    long groupId, java.lang.String articleId, double version,
486                    java.lang.String elInstanceId, java.lang.String elName,
487                    java.lang.String languageId, boolean retrieveFromCache)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Finds all the journal article images.
492            *
493            * @return the journal article images
494            * @throws SystemException if a system exception occurred
495            */
496            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Finds a range of all the journal article images.
501            *
502            * <p>
503            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
504            * </p>
505            *
506            * @param start the lower bound of the range of journal article images to return
507            * @param end the upper bound of the range of journal article images to return (not inclusive)
508            * @return the range of journal article images
509            * @throws SystemException if a system exception occurred
510            */
511            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
512                    int start, int end)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            /**
516            * Finds an ordered range of all the journal article images.
517            *
518            * <p>
519            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
520            * </p>
521            *
522            * @param start the lower bound of the range of journal article images to return
523            * @param end the upper bound of the range of journal article images to return (not inclusive)
524            * @param orderByComparator the comparator to order the results by
525            * @return the ordered range of journal article images
526            * @throws SystemException if a system exception occurred
527            */
528            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
529                    int start, int end,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * Removes all the journal article images where groupId = &#63; from the database.
535            *
536            * @param groupId the group id to search with
537            * @throws SystemException if a system exception occurred
538            */
539            public void removeByGroupId(long groupId)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Removes all the journal article images where tempImage = &#63; from the database.
544            *
545            * @param tempImage the temp image to search with
546            * @throws SystemException if a system exception occurred
547            */
548            public void removeByTempImage(boolean tempImage)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            /**
552            * Removes all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63; from the database.
553            *
554            * @param groupId the group id to search with
555            * @param articleId the article id to search with
556            * @param version the version to search with
557            * @throws SystemException if a system exception occurred
558            */
559            public void removeByG_A_V(long groupId, java.lang.String articleId,
560                    double version)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Removes the journal article image where groupId = &#63; and articleId = &#63; and version = &#63; and elInstanceId = &#63; and elName = &#63; and languageId = &#63; from the database.
565            *
566            * @param groupId the group id to search with
567            * @param articleId the article id to search with
568            * @param version the version to search with
569            * @param elInstanceId the el instance id to search with
570            * @param elName the el name to search with
571            * @param languageId the language id to search with
572            * @throws SystemException if a system exception occurred
573            */
574            public void removeByG_A_V_E_E_L(long groupId, java.lang.String articleId,
575                    double version, java.lang.String elInstanceId, java.lang.String elName,
576                    java.lang.String languageId)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.journal.NoSuchArticleImageException;
579    
580            /**
581            * Removes all the journal article images from the database.
582            *
583            * @throws SystemException if a system exception occurred
584            */
585            public void removeAll()
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Counts all the journal article images where groupId = &#63;.
590            *
591            * @param groupId the group id to search with
592            * @return the number of matching journal article images
593            * @throws SystemException if a system exception occurred
594            */
595            public int countByGroupId(long groupId)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            /**
599            * Counts all the journal article images where tempImage = &#63;.
600            *
601            * @param tempImage the temp image to search with
602            * @return the number of matching journal article images
603            * @throws SystemException if a system exception occurred
604            */
605            public int countByTempImage(boolean tempImage)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Counts all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
610            *
611            * @param groupId the group id to search with
612            * @param articleId the article id to search with
613            * @param version the version to search with
614            * @return the number of matching journal article images
615            * @throws SystemException if a system exception occurred
616            */
617            public int countByG_A_V(long groupId, java.lang.String articleId,
618                    double version)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * Counts all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63; and elInstanceId = &#63; and elName = &#63; and languageId = &#63;.
623            *
624            * @param groupId the group id to search with
625            * @param articleId the article id to search with
626            * @param version the version to search with
627            * @param elInstanceId the el instance id to search with
628            * @param elName the el name to search with
629            * @param languageId the language id to search with
630            * @return the number of matching journal article images
631            * @throws SystemException if a system exception occurred
632            */
633            public int countByG_A_V_E_E_L(long groupId, java.lang.String articleId,
634                    double version, java.lang.String elInstanceId, java.lang.String elName,
635                    java.lang.String languageId)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            /**
639            * Counts all the journal article images.
640            *
641            * @return the number of journal article images
642            * @throws SystemException if a system exception occurred
643            */
644            public int countAll()
645                    throws com.liferay.portal.kernel.exception.SystemException;
646    }