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