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