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