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