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