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