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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.journal.model.JournalArticleImage;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the journal article image service. This utility wraps {@link JournalArticleImagePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see JournalArticleImagePersistence
037     * @see JournalArticleImagePersistenceImpl
038     * @generated
039     */
040    public class JournalArticleImageUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(JournalArticleImage journalArticleImage) {
058                    getPersistence().clearCache(journalArticleImage);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<JournalArticleImage> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<JournalArticleImage> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<JournalArticleImage> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static JournalArticleImage update(
101                    JournalArticleImage journalArticleImage, boolean merge)
102                    throws SystemException {
103                    return getPersistence().update(journalArticleImage, merge);
104            }
105    
106            /**
107             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
108             */
109            public static JournalArticleImage update(
110                    JournalArticleImage journalArticleImage, boolean merge,
111                    ServiceContext serviceContext) throws SystemException {
112                    return getPersistence()
113                                       .update(journalArticleImage, merge, serviceContext);
114            }
115    
116            /**
117            * Caches the journal article image in the entity cache if it is enabled.
118            *
119            * @param journalArticleImage the journal article image
120            */
121            public static void cacheResult(
122                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage) {
123                    getPersistence().cacheResult(journalArticleImage);
124            }
125    
126            /**
127            * Caches the journal article images in the entity cache if it is enabled.
128            *
129            * @param journalArticleImages the journal article images
130            */
131            public static void cacheResult(
132                    java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages) {
133                    getPersistence().cacheResult(journalArticleImages);
134            }
135    
136            /**
137            * Creates a new journal article image with the primary key. Does not add the journal article image to the database.
138            *
139            * @param articleImageId the primary key for the new journal article image
140            * @return the new journal article image
141            */
142            public static com.liferay.portlet.journal.model.JournalArticleImage create(
143                    long articleImageId) {
144                    return getPersistence().create(articleImageId);
145            }
146    
147            /**
148            * Removes the journal article image with the primary key from the database. Also notifies the appropriate model listeners.
149            *
150            * @param articleImageId the primary key of the journal article image
151            * @return the journal article image that was removed
152            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
153            * @throws SystemException if a system exception occurred
154            */
155            public static com.liferay.portlet.journal.model.JournalArticleImage remove(
156                    long articleImageId)
157                    throws com.liferay.portal.kernel.exception.SystemException,
158                            com.liferay.portlet.journal.NoSuchArticleImageException {
159                    return getPersistence().remove(articleImageId);
160            }
161    
162            public static com.liferay.portlet.journal.model.JournalArticleImage updateImpl(
163                    com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
164                    boolean merge)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().updateImpl(journalArticleImage, merge);
167            }
168    
169            /**
170            * Returns the journal article image with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchArticleImageException} if it could not be found.
171            *
172            * @param articleImageId the primary key of the journal article image
173            * @return the journal article image
174            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey(
178                    long articleImageId)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.journal.NoSuchArticleImageException {
181                    return getPersistence().findByPrimaryKey(articleImageId);
182            }
183    
184            /**
185            * Returns the journal article image with the primary key or returns <code>null</code> if it could not be found.
186            *
187            * @param articleImageId the primary key of the journal article image
188            * @return the journal article image, or <code>null</code> if a journal article image with the primary key could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey(
192                    long articleImageId)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getPersistence().fetchByPrimaryKey(articleImageId);
195            }
196    
197            /**
198            * Returns all the journal article images where groupId = &#63;.
199            *
200            * @param groupId the group ID
201            * @return the matching journal article images
202            * @throws SystemException if a system exception occurred
203            */
204            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
205                    long groupId)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return getPersistence().findByGroupId(groupId);
208            }
209    
210            /**
211            * Returns a range of all the journal article images where groupId = &#63;.
212            *
213            * <p>
214            * 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.
215            * </p>
216            *
217            * @param groupId the group ID
218            * @param start the lower bound of the range of journal article images
219            * @param end the upper bound of the range of journal article images (not inclusive)
220            * @return the range of matching journal article images
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
224                    long groupId, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence().findByGroupId(groupId, start, end);
227            }
228    
229            /**
230            * Returns an ordered range of all the journal article images where groupId = &#63;.
231            *
232            * <p>
233            * 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.
234            * </p>
235            *
236            * @param groupId the group ID
237            * @param start the lower bound of the range of journal article images
238            * @param end the upper bound of the range of journal article images (not inclusive)
239            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
240            * @return the ordered range of matching journal article images
241            * @throws SystemException if a system exception occurred
242            */
243            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId(
244                    long groupId, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getPersistence()
248                                       .findByGroupId(groupId, start, end, orderByComparator);
249            }
250    
251            /**
252            * Returns the first journal article image in the ordered set where groupId = &#63;.
253            *
254            * @param groupId the group ID
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching journal article image
257            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First(
261                    long groupId,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.journal.NoSuchArticleImageException {
265                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
266            }
267    
268            /**
269            * Returns the first journal article image in the ordered set where groupId = &#63;.
270            *
271            * @param groupId the group ID
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the first 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 static com.liferay.portlet.journal.model.JournalArticleImage fetchByGroupId_First(
277                    long groupId,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
281            }
282    
283            /**
284            * Returns the last journal article image in the ordered set where groupId = &#63;.
285            *
286            * @param groupId the group ID
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
288            * @return the last matching journal article image
289            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public static com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last(
293                    long groupId,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.journal.NoSuchArticleImageException {
297                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
298            }
299    
300            /**
301            * Returns the last journal article image in the ordered set where groupId = &#63;.
302            *
303            * @param groupId the group ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the last matching journal article image, or <code>null</code> if a matching journal article image could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByGroupId_Last(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
313            }
314    
315            /**
316            * Returns the journal article images before and after the current journal article image in the ordered set where groupId = &#63;.
317            *
318            * @param articleImageId the primary key of the current journal article image
319            * @param groupId the group ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the previous, current, and next journal article image
322            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext(
326                    long articleImageId, long groupId,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException,
329                            com.liferay.portlet.journal.NoSuchArticleImageException {
330                    return getPersistence()
331                                       .findByGroupId_PrevAndNext(articleImageId, groupId,
332                            orderByComparator);
333            }
334    
335            /**
336            * Returns all the journal article images where tempImage = &#63;.
337            *
338            * @param tempImage the temp image
339            * @return the matching journal article images
340            * @throws SystemException if a system exception occurred
341            */
342            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
343                    boolean tempImage)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().findByTempImage(tempImage);
346            }
347    
348            /**
349            * Returns a range of all the journal article images where tempImage = &#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.
353            * </p>
354            *
355            * @param tempImage the temp image
356            * @param start the lower bound of the range of journal article images
357            * @param end the upper bound of the range of journal article images (not inclusive)
358            * @return the range of matching journal article images
359            * @throws SystemException if a system exception occurred
360            */
361            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
362                    boolean tempImage, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return getPersistence().findByTempImage(tempImage, start, end);
365            }
366    
367            /**
368            * Returns an ordered range of all the journal article images where tempImage = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param tempImage the temp image
375            * @param start the lower bound of the range of journal article images
376            * @param end the upper bound of the range of journal article images (not inclusive)
377            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
378            * @return the ordered range of matching journal article images
379            * @throws SystemException if a system exception occurred
380            */
381            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage(
382                    boolean tempImage, int start, int end,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence()
386                                       .findByTempImage(tempImage, start, end, orderByComparator);
387            }
388    
389            /**
390            * Returns the first journal article image in the ordered set where tempImage = &#63;.
391            *
392            * @param tempImage the temp image
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the first matching journal article image
395            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First(
399                    boolean tempImage,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException,
402                            com.liferay.portlet.journal.NoSuchArticleImageException {
403                    return getPersistence()
404                                       .findByTempImage_First(tempImage, orderByComparator);
405            }
406    
407            /**
408            * Returns the first journal article image in the ordered set where tempImage = &#63;.
409            *
410            * @param tempImage the temp image
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the first matching journal article image, or <code>null</code> if a matching journal article image could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByTempImage_First(
416                    boolean tempImage,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getPersistence()
420                                       .fetchByTempImage_First(tempImage, orderByComparator);
421            }
422    
423            /**
424            * Returns the last journal article image in the ordered set where tempImage = &#63;.
425            *
426            * @param tempImage the temp image
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching journal article image
429            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last(
433                    boolean tempImage,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.journal.NoSuchArticleImageException {
437                    return getPersistence()
438                                       .findByTempImage_Last(tempImage, orderByComparator);
439            }
440    
441            /**
442            * Returns the last journal article image in the ordered set where tempImage = &#63;.
443            *
444            * @param tempImage the temp image
445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
446            * @return the last matching journal article image, or <code>null</code> if a matching journal article image could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByTempImage_Last(
450                    boolean tempImage,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence()
454                                       .fetchByTempImage_Last(tempImage, orderByComparator);
455            }
456    
457            /**
458            * Returns the journal article images before and after the current journal article image in the ordered set where tempImage = &#63;.
459            *
460            * @param articleImageId the primary key of the current journal article image
461            * @param tempImage the temp image
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the previous, current, and next journal article image
464            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public static com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext(
468                    long articleImageId, boolean tempImage,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.journal.NoSuchArticleImageException {
472                    return getPersistence()
473                                       .findByTempImage_PrevAndNext(articleImageId, tempImage,
474                            orderByComparator);
475            }
476    
477            /**
478            * Returns all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
479            *
480            * @param groupId the group ID
481            * @param articleId the article ID
482            * @param version the version
483            * @return the matching journal article images
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
487                    long groupId, java.lang.String articleId, double version)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().findByG_A_V(groupId, articleId, version);
490            }
491    
492            /**
493            * Returns a range of all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
494            *
495            * <p>
496            * 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.
497            * </p>
498            *
499            * @param groupId the group ID
500            * @param articleId the article ID
501            * @param version the version
502            * @param start the lower bound of the range of journal article images
503            * @param end the upper bound of the range of journal article images (not inclusive)
504            * @return the range of matching journal article images
505            * @throws SystemException if a system exception occurred
506            */
507            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
508                    long groupId, java.lang.String articleId, double version, int start,
509                    int end) throws com.liferay.portal.kernel.exception.SystemException {
510                    return getPersistence()
511                                       .findByG_A_V(groupId, articleId, version, start, end);
512            }
513    
514            /**
515            * Returns an ordered range of all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
516            *
517            * <p>
518            * 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.
519            * </p>
520            *
521            * @param groupId the group ID
522            * @param articleId the article ID
523            * @param version the version
524            * @param start the lower bound of the range of journal article images
525            * @param end the upper bound of the range of journal article images (not inclusive)
526            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
527            * @return the ordered range of matching journal article images
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V(
531                    long groupId, java.lang.String articleId, double version, int start,
532                    int end,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getPersistence()
536                                       .findByG_A_V(groupId, articleId, version, start, end,
537                            orderByComparator);
538            }
539    
540            /**
541            * Returns the first journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
542            *
543            * @param groupId the group ID
544            * @param articleId the article ID
545            * @param version the version
546            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
547            * @return the first matching journal article image
548            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First(
552                    long groupId, java.lang.String articleId, double version,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.kernel.exception.SystemException,
555                            com.liferay.portlet.journal.NoSuchArticleImageException {
556                    return getPersistence()
557                                       .findByG_A_V_First(groupId, articleId, version,
558                            orderByComparator);
559            }
560    
561            /**
562            * Returns the first journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
563            *
564            * @param groupId the group ID
565            * @param articleId the article ID
566            * @param version the version
567            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
568            * @return the first matching journal article image, or <code>null</code> if a matching journal article image could not be found
569            * @throws SystemException if a system exception occurred
570            */
571            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_First(
572                    long groupId, java.lang.String articleId, double version,
573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574                    throws com.liferay.portal.kernel.exception.SystemException {
575                    return getPersistence()
576                                       .fetchByG_A_V_First(groupId, articleId, version,
577                            orderByComparator);
578            }
579    
580            /**
581            * Returns the last journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
582            *
583            * @param groupId the group ID
584            * @param articleId the article ID
585            * @param version the version
586            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
587            * @return the last matching journal article image
588            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
589            * @throws SystemException if a system exception occurred
590            */
591            public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last(
592                    long groupId, java.lang.String articleId, double version,
593                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
594                    throws com.liferay.portal.kernel.exception.SystemException,
595                            com.liferay.portlet.journal.NoSuchArticleImageException {
596                    return getPersistence()
597                                       .findByG_A_V_Last(groupId, articleId, version,
598                            orderByComparator);
599            }
600    
601            /**
602            * Returns the last journal article image in the ordered set where groupId = &#63; and articleId = &#63; and version = &#63;.
603            *
604            * @param groupId the group ID
605            * @param articleId the article ID
606            * @param version the version
607            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
608            * @return the last matching journal article image, or <code>null</code> if a matching journal article image could not be found
609            * @throws SystemException if a system exception occurred
610            */
611            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_Last(
612                    long groupId, java.lang.String articleId, double version,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence()
616                                       .fetchByG_A_V_Last(groupId, articleId, version,
617                            orderByComparator);
618            }
619    
620            /**
621            * 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;.
622            *
623            * @param articleImageId the primary key of the current journal article image
624            * @param groupId the group ID
625            * @param articleId the article ID
626            * @param version the version
627            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
628            * @return the previous, current, and next journal article image
629            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found
630            * @throws SystemException if a system exception occurred
631            */
632            public static com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext(
633                    long articleImageId, long groupId, java.lang.String articleId,
634                    double version,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException,
637                            com.liferay.portlet.journal.NoSuchArticleImageException {
638                    return getPersistence()
639                                       .findByG_A_V_PrevAndNext(articleImageId, groupId, articleId,
640                            version, orderByComparator);
641            }
642    
643            /**
644            * 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.
645            *
646            * @param groupId the group ID
647            * @param articleId the article ID
648            * @param version the version
649            * @param elInstanceId the el instance ID
650            * @param elName the el name
651            * @param languageId the language ID
652            * @return the matching journal article image
653            * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found
654            * @throws SystemException if a system exception occurred
655            */
656            public static com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L(
657                    long groupId, java.lang.String articleId, double version,
658                    java.lang.String elInstanceId, java.lang.String elName,
659                    java.lang.String languageId)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.journal.NoSuchArticleImageException {
662                    return getPersistence()
663                                       .findByG_A_V_E_E_L(groupId, articleId, version,
664                            elInstanceId, elName, languageId);
665            }
666    
667            /**
668            * 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.
669            *
670            * @param groupId the group ID
671            * @param articleId the article ID
672            * @param version the version
673            * @param elInstanceId the el instance ID
674            * @param elName the el name
675            * @param languageId the language ID
676            * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
680                    long groupId, java.lang.String articleId, double version,
681                    java.lang.String elInstanceId, java.lang.String elName,
682                    java.lang.String languageId)
683                    throws com.liferay.portal.kernel.exception.SystemException {
684                    return getPersistence()
685                                       .fetchByG_A_V_E_E_L(groupId, articleId, version,
686                            elInstanceId, elName, languageId);
687            }
688    
689            /**
690            * 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.
691            *
692            * @param groupId the group ID
693            * @param articleId the article ID
694            * @param version the version
695            * @param elInstanceId the el instance ID
696            * @param elName the el name
697            * @param languageId the language ID
698            * @param retrieveFromCache whether to use the finder cache
699            * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found
700            * @throws SystemException if a system exception occurred
701            */
702            public static com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L(
703                    long groupId, java.lang.String articleId, double version,
704                    java.lang.String elInstanceId, java.lang.String elName,
705                    java.lang.String languageId, boolean retrieveFromCache)
706                    throws com.liferay.portal.kernel.exception.SystemException {
707                    return getPersistence()
708                                       .fetchByG_A_V_E_E_L(groupId, articleId, version,
709                            elInstanceId, elName, languageId, retrieveFromCache);
710            }
711    
712            /**
713            * Returns all the journal article images.
714            *
715            * @return the journal article images
716            * @throws SystemException if a system exception occurred
717            */
718            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll()
719                    throws com.liferay.portal.kernel.exception.SystemException {
720                    return getPersistence().findAll();
721            }
722    
723            /**
724            * Returns a range of all the journal article images.
725            *
726            * <p>
727            * 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.
728            * </p>
729            *
730            * @param start the lower bound of the range of journal article images
731            * @param end the upper bound of the range of journal article images (not inclusive)
732            * @return the range of journal article images
733            * @throws SystemException if a system exception occurred
734            */
735            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
736                    int start, int end)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence().findAll(start, end);
739            }
740    
741            /**
742            * Returns an ordered range of all the journal article images.
743            *
744            * <p>
745            * 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.
746            * </p>
747            *
748            * @param start the lower bound of the range of journal article images
749            * @param end the upper bound of the range of journal article images (not inclusive)
750            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
751            * @return the ordered range of journal article images
752            * @throws SystemException if a system exception occurred
753            */
754            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll(
755                    int start, int end,
756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
757                    throws com.liferay.portal.kernel.exception.SystemException {
758                    return getPersistence().findAll(start, end, orderByComparator);
759            }
760    
761            /**
762            * Removes all the journal article images where groupId = &#63; from the database.
763            *
764            * @param groupId the group ID
765            * @throws SystemException if a system exception occurred
766            */
767            public static void removeByGroupId(long groupId)
768                    throws com.liferay.portal.kernel.exception.SystemException {
769                    getPersistence().removeByGroupId(groupId);
770            }
771    
772            /**
773            * Removes all the journal article images where tempImage = &#63; from the database.
774            *
775            * @param tempImage the temp image
776            * @throws SystemException if a system exception occurred
777            */
778            public static void removeByTempImage(boolean tempImage)
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    getPersistence().removeByTempImage(tempImage);
781            }
782    
783            /**
784            * Removes all the journal article images where groupId = &#63; and articleId = &#63; and version = &#63; from the database.
785            *
786            * @param groupId the group ID
787            * @param articleId the article ID
788            * @param version the version
789            * @throws SystemException if a system exception occurred
790            */
791            public static void removeByG_A_V(long groupId, java.lang.String articleId,
792                    double version)
793                    throws com.liferay.portal.kernel.exception.SystemException {
794                    getPersistence().removeByG_A_V(groupId, articleId, version);
795            }
796    
797            /**
798            * 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.
799            *
800            * @param groupId the group ID
801            * @param articleId the article ID
802            * @param version the version
803            * @param elInstanceId the el instance ID
804            * @param elName the el name
805            * @param languageId the language ID
806            * @return the journal article image that was removed
807            * @throws SystemException if a system exception occurred
808            */
809            public static com.liferay.portlet.journal.model.JournalArticleImage removeByG_A_V_E_E_L(
810                    long groupId, java.lang.String articleId, double version,
811                    java.lang.String elInstanceId, java.lang.String elName,
812                    java.lang.String languageId)
813                    throws com.liferay.portal.kernel.exception.SystemException,
814                            com.liferay.portlet.journal.NoSuchArticleImageException {
815                    return getPersistence()
816                                       .removeByG_A_V_E_E_L(groupId, articleId, version,
817                            elInstanceId, elName, languageId);
818            }
819    
820            /**
821            * Removes all the journal article images from the database.
822            *
823            * @throws SystemException if a system exception occurred
824            */
825            public static void removeAll()
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    getPersistence().removeAll();
828            }
829    
830            /**
831            * Returns the number of journal article images where groupId = &#63;.
832            *
833            * @param groupId the group ID
834            * @return the number of matching journal article images
835            * @throws SystemException if a system exception occurred
836            */
837            public static int countByGroupId(long groupId)
838                    throws com.liferay.portal.kernel.exception.SystemException {
839                    return getPersistence().countByGroupId(groupId);
840            }
841    
842            /**
843            * Returns the number of journal article images where tempImage = &#63;.
844            *
845            * @param tempImage the temp image
846            * @return the number of matching journal article images
847            * @throws SystemException if a system exception occurred
848            */
849            public static int countByTempImage(boolean tempImage)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence().countByTempImage(tempImage);
852            }
853    
854            /**
855            * Returns the number of journal article images where groupId = &#63; and articleId = &#63; and version = &#63;.
856            *
857            * @param groupId the group ID
858            * @param articleId the article ID
859            * @param version the version
860            * @return the number of matching journal article images
861            * @throws SystemException if a system exception occurred
862            */
863            public static int countByG_A_V(long groupId, java.lang.String articleId,
864                    double version)
865                    throws com.liferay.portal.kernel.exception.SystemException {
866                    return getPersistence().countByG_A_V(groupId, articleId, version);
867            }
868    
869            /**
870            * 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;.
871            *
872            * @param groupId the group ID
873            * @param articleId the article ID
874            * @param version the version
875            * @param elInstanceId the el instance ID
876            * @param elName the el name
877            * @param languageId the language ID
878            * @return the number of matching journal article images
879            * @throws SystemException if a system exception occurred
880            */
881            public static int countByG_A_V_E_E_L(long groupId,
882                    java.lang.String articleId, double version,
883                    java.lang.String elInstanceId, java.lang.String elName,
884                    java.lang.String languageId)
885                    throws com.liferay.portal.kernel.exception.SystemException {
886                    return getPersistence()
887                                       .countByG_A_V_E_E_L(groupId, articleId, version,
888                            elInstanceId, elName, languageId);
889            }
890    
891            /**
892            * Returns the number of journal article images.
893            *
894            * @return the number of journal article images
895            * @throws SystemException if a system exception occurred
896            */
897            public static int countAll()
898                    throws com.liferay.portal.kernel.exception.SystemException {
899                    return getPersistence().countAll();
900            }
901    
902            public static JournalArticleImagePersistence getPersistence() {
903                    if (_persistence == null) {
904                            _persistence = (JournalArticleImagePersistence)PortalBeanLocatorUtil.locate(JournalArticleImagePersistence.class.getName());
905    
906                            ReferenceRegistry.registerReference(JournalArticleImageUtil.class,
907                                    "_persistence");
908                    }
909    
910                    return _persistence;
911            }
912    
913            /**
914             * @deprecated
915             */
916            public void setPersistence(JournalArticleImagePersistence persistence) {
917            }
918    
919            private static JournalArticleImagePersistence _persistence;
920    }