001    /**
002     * Copyright (c) 2000-2011 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.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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the journal article images where groupId = &#63;.
110            *
111            * @param groupId the group ID
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            * Returns 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
127            * @param start the lower bound of the range of journal article images
128            * @param end the upper bound of the range of journal article images (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            * Returns 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
144            * @param start the lower bound of the range of journal article images
145            * @param end the upper bound of the range of journal article images (not inclusive)
146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the journal article images where tempImage = &#63;.
215            *
216            * @param tempImage the temp image
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            * Returns 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
232            * @param start the lower bound of the range of journal article images
233            * @param end the upper bound of the range of journal article images (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            * Returns 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
249            * @param start the lower bound of the range of journal article images
250            * @param end the upper bound of the range of journal article images (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
320            *
321            * @param groupId the group ID
322            * @param articleId the article ID
323            * @param version the version
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            * Returns 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
339            * @param articleId the article ID
340            * @param version the version
341            * @param start the lower bound of the range of journal article images
342            * @param end the upper bound of the range of journal article images (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            * Returns 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
358            * @param articleId the article ID
359            * @param version the version
360            * @param start the lower bound of the range of journal article images
361            * @param end the upper bound of the range of journal article images (not inclusive)
362            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
380            * @param articleId the article ID
381            * @param version the version
382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
401            * @param articleId the article ID
402            * @param version the version
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * 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;.
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
423            * @param articleId the article ID
424            * @param version the version
425            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * 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.
439            *
440            * @param groupId the group ID
441            * @param articleId the article ID
442            * @param version the version
443            * @param elInstanceId the el instance ID
444            * @param elName the el name
445            * @param languageId the language ID
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            * 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.
459            *
460            * @param groupId the group ID
461            * @param articleId the article ID
462            * @param version the version
463            * @param elInstanceId the el instance ID
464            * @param elName the el name
465            * @param languageId the language ID
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            * 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.
477            *
478            * @param groupId the group ID
479            * @param articleId the article ID
480            * @param version the version
481            * @param elInstanceId the el instance ID
482            * @param elName the el name
483            * @param languageId the language ID
484            * @param retrieveFromCache whether to use the finder cache
485            * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
489                    long groupId, java.lang.String articleId, double version,
490                    java.lang.String elInstanceId, java.lang.String elName,
491                    java.lang.String languageId, boolean retrieveFromCache)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns all the journal article images.
496            *
497            * @return the journal article images
498            * @throws SystemException if a system exception occurred
499            */
500            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns a range of all the journal article images.
505            *
506            * <p>
507            * 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.
508            * </p>
509            *
510            * @param start the lower bound of the range of journal article images
511            * @param end the upper bound of the range of journal article images (not inclusive)
512            * @return the range of journal article images
513            * @throws SystemException if a system exception occurred
514            */
515            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
516                    int start, int end)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns an ordered range of all the journal article images.
521            *
522            * <p>
523            * 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.
524            * </p>
525            *
526            * @param start the lower bound of the range of journal article images
527            * @param end the upper bound of the range of journal article images (not inclusive)
528            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
529            * @return the ordered range of journal article images
530            * @throws SystemException if a system exception occurred
531            */
532            public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
533                    int start, int end,
534                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Removes all the journal article images where groupId = &#63; from the database.
539            *
540            * @param groupId the group ID
541            * @throws SystemException if a system exception occurred
542            */
543            public void removeByGroupId(long groupId)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            /**
547            * Removes all the journal article images where tempImage = &#63; from the database.
548            *
549            * @param tempImage the temp image
550            * @throws SystemException if a system exception occurred
551            */
552            public void removeByTempImage(boolean tempImage)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Removes all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63; from the database.
557            *
558            * @param groupId the group ID
559            * @param articleId the article ID
560            * @param version the version
561            * @throws SystemException if a system exception occurred
562            */
563            public void removeByG_A_V(long groupId, java.lang.String articleId,
564                    double version)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * 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.
569            *
570            * @param groupId the group ID
571            * @param articleId the article ID
572            * @param version the version
573            * @param elInstanceId the el instance ID
574            * @param elName the el name
575            * @param languageId the language ID
576            * @throws SystemException if a system exception occurred
577            */
578            public void removeByG_A_V_E_E_L(long groupId, java.lang.String articleId,
579                    double version, java.lang.String elInstanceId, java.lang.String elName,
580                    java.lang.String languageId)
581                    throws com.liferay.portal.kernel.exception.SystemException,
582                            com.liferay.portlet.journal.NoSuchArticleImageException;
583    
584            /**
585            * Removes all the journal article images from the database.
586            *
587            * @throws SystemException if a system exception occurred
588            */
589            public void removeAll()
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the number of journal article images where groupId = &#63;.
594            *
595            * @param groupId the group ID
596            * @return the number of matching journal article images
597            * @throws SystemException if a system exception occurred
598            */
599            public int countByGroupId(long groupId)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns the number of journal article images where tempImage = &#63;.
604            *
605            * @param tempImage the temp image
606            * @return the number of matching journal article images
607            * @throws SystemException if a system exception occurred
608            */
609            public int countByTempImage(boolean tempImage)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns the number of journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
614            *
615            * @param groupId the group ID
616            * @param articleId the article ID
617            * @param version the version
618            * @return the number of matching journal article images
619            * @throws SystemException if a system exception occurred
620            */
621            public int countByG_A_V(long groupId, java.lang.String articleId,
622                    double version)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * 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;.
627            *
628            * @param groupId the group ID
629            * @param articleId the article ID
630            * @param version the version
631            * @param elInstanceId the el instance ID
632            * @param elName the el name
633            * @param languageId the language ID
634            * @return the number of matching journal article images
635            * @throws SystemException if a system exception occurred
636            */
637            public int countByG_A_V_E_E_L(long groupId, java.lang.String articleId,
638                    double version, java.lang.String elInstanceId, java.lang.String elName,
639                    java.lang.String languageId)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Returns the number of journal article images.
644            *
645            * @return the number of journal article images
646            * @throws SystemException if a system exception occurred
647            */
648            public int countAll()
649                    throws com.liferay.portal.kernel.exception.SystemException;
650    
651            public JournalArticleImage remove(JournalArticleImage journalArticleImage)
652                    throws SystemException;
653    }