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.softwarecatalog.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.softwarecatalog.model.SCProductScreenshot;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SCProductScreenshotPersistence
030     * @see       SCProductScreenshotPersistenceImpl
031     * @generated
032     */
033    public class SCProductScreenshotUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(SCProductScreenshot scProductScreenshot) {
045                    getPersistence().clearCache(scProductScreenshot);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<SCProductScreenshot> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<SCProductScreenshot> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<SCProductScreenshot> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SCProductScreenshot remove(
088                    SCProductScreenshot scProductScreenshot) throws SystemException {
089                    return getPersistence().remove(scProductScreenshot);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SCProductScreenshot update(
096                    SCProductScreenshot scProductScreenshot, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(scProductScreenshot, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static SCProductScreenshot update(
105                    SCProductScreenshot scProductScreenshot, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence()
108                                       .update(scProductScreenshot, merge, serviceContext);
109            }
110    
111            public static void cacheResult(
112                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot) {
113                    getPersistence().cacheResult(scProductScreenshot);
114            }
115    
116            public static void cacheResult(
117                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots) {
118                    getPersistence().cacheResult(scProductScreenshots);
119            }
120    
121            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(
122                    long productScreenshotId) {
123                    return getPersistence().create(productScreenshotId);
124            }
125    
126            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(
127                    long productScreenshotId)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
130                    return getPersistence().remove(productScreenshotId);
131            }
132    
133            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(
134                    com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
135                    boolean merge)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getPersistence().updateImpl(scProductScreenshot, merge);
138            }
139    
140            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(
141                    long productScreenshotId)
142                    throws com.liferay.portal.kernel.exception.SystemException,
143                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
144                    return getPersistence().findByPrimaryKey(productScreenshotId);
145            }
146    
147            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(
148                    long productScreenshotId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().fetchByPrimaryKey(productScreenshotId);
151            }
152    
153            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
154                    long productEntryId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getPersistence().findByProductEntryId(productEntryId);
157            }
158    
159            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
160                    long productEntryId, int start, int end)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().findByProductEntryId(productEntryId, start, end);
163            }
164    
165            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(
166                    long productEntryId, int start, int end,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException {
169                    return getPersistence()
170                                       .findByProductEntryId(productEntryId, start, end,
171                            orderByComparator);
172            }
173    
174            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(
175                    long productEntryId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
179                    return getPersistence()
180                                       .findByProductEntryId_First(productEntryId, orderByComparator);
181            }
182    
183            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(
184                    long productEntryId,
185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186                    throws com.liferay.portal.kernel.exception.SystemException,
187                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
188                    return getPersistence()
189                                       .findByProductEntryId_Last(productEntryId, orderByComparator);
190            }
191    
192            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(
193                    long productScreenshotId, long productEntryId,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException,
196                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
197                    return getPersistence()
198                                       .findByProductEntryId_PrevAndNext(productScreenshotId,
199                            productEntryId, orderByComparator);
200            }
201    
202            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(
203                    long thumbnailId)
204                    throws com.liferay.portal.kernel.exception.SystemException,
205                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
206                    return getPersistence().findByThumbnailId(thumbnailId);
207            }
208    
209            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
210                    long thumbnailId)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().fetchByThumbnailId(thumbnailId);
213            }
214    
215            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(
216                    long thumbnailId, boolean retrieveFromCache)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence()
219                                       .fetchByThumbnailId(thumbnailId, retrieveFromCache);
220            }
221    
222            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(
223                    long fullImageId)
224                    throws com.liferay.portal.kernel.exception.SystemException,
225                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
226                    return getPersistence().findByFullImageId(fullImageId);
227            }
228    
229            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
230                    long fullImageId)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence().fetchByFullImageId(fullImageId);
233            }
234    
235            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(
236                    long fullImageId, boolean retrieveFromCache)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getPersistence()
239                                       .fetchByFullImageId(fullImageId, retrieveFromCache);
240            }
241    
242            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(
243                    long productEntryId, int priority)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
246                    return getPersistence().findByP_P(productEntryId, priority);
247            }
248    
249            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
250                    long productEntryId, int priority)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().fetchByP_P(productEntryId, priority);
253            }
254    
255            public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(
256                    long productEntryId, int priority, boolean retrieveFromCache)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getPersistence()
259                                       .fetchByP_P(productEntryId, priority, retrieveFromCache);
260            }
261    
262            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return getPersistence().findAll();
265            }
266    
267            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
268                    int start, int end)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getPersistence().findAll(start, end);
271            }
272    
273            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(
274                    int start, int end,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return getPersistence().findAll(start, end, orderByComparator);
278            }
279    
280            public static void removeByProductEntryId(long productEntryId)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    getPersistence().removeByProductEntryId(productEntryId);
283            }
284    
285            public static void removeByThumbnailId(long thumbnailId)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
288                    getPersistence().removeByThumbnailId(thumbnailId);
289            }
290    
291            public static void removeByFullImageId(long fullImageId)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
294                    getPersistence().removeByFullImageId(fullImageId);
295            }
296    
297            public static void removeByP_P(long productEntryId, int priority)
298                    throws com.liferay.portal.kernel.exception.SystemException,
299                            com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException {
300                    getPersistence().removeByP_P(productEntryId, priority);
301            }
302    
303            public static void removeAll()
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    getPersistence().removeAll();
306            }
307    
308            public static int countByProductEntryId(long productEntryId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return getPersistence().countByProductEntryId(productEntryId);
311            }
312    
313            public static int countByThumbnailId(long thumbnailId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return getPersistence().countByThumbnailId(thumbnailId);
316            }
317    
318            public static int countByFullImageId(long fullImageId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return getPersistence().countByFullImageId(fullImageId);
321            }
322    
323            public static int countByP_P(long productEntryId, int priority)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence().countByP_P(productEntryId, priority);
326            }
327    
328            public static int countAll()
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return getPersistence().countAll();
331            }
332    
333            public static SCProductScreenshotPersistence getPersistence() {
334                    if (_persistence == null) {
335                            _persistence = (SCProductScreenshotPersistence)PortalBeanLocatorUtil.locate(SCProductScreenshotPersistence.class.getName());
336                    }
337    
338                    return _persistence;
339            }
340    
341            public void setPersistence(SCProductScreenshotPersistence persistence) {
342                    _persistence = persistence;
343            }
344    
345            private static SCProductScreenshotPersistence _persistence;
346    }