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