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