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.SCLicense;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SCLicensePersistence
030     * @see       SCLicensePersistenceImpl
031     * @generated
032     */
033    public class SCLicenseUtil {
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(SCLicense scLicense) {
045                    getPersistence().clearCache(scLicense);
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<SCLicense> 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<SCLicense> 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<SCLicense> 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 SCLicense remove(SCLicense scLicense)
088                    throws SystemException {
089                    return getPersistence().remove(scLicense);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SCLicense update(SCLicense scLicense, boolean merge)
096                    throws SystemException {
097                    return getPersistence().update(scLicense, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static SCLicense update(SCLicense scLicense, boolean merge,
104                    ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(scLicense, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense) {
110                    getPersistence().cacheResult(scLicense);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> scLicenses) {
115                    getPersistence().cacheResult(scLicenses);
116            }
117    
118            public static com.liferay.portlet.softwarecatalog.model.SCLicense create(
119                    long licenseId) {
120                    return getPersistence().create(licenseId);
121            }
122    
123            public static com.liferay.portlet.softwarecatalog.model.SCLicense remove(
124                    long licenseId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
127                    return getPersistence().remove(licenseId);
128            }
129    
130            public static com.liferay.portlet.softwarecatalog.model.SCLicense updateImpl(
131                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(scLicense, merge);
135            }
136    
137            public static com.liferay.portlet.softwarecatalog.model.SCLicense findByPrimaryKey(
138                    long licenseId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
141                    return getPersistence().findByPrimaryKey(licenseId);
142            }
143    
144            public static com.liferay.portlet.softwarecatalog.model.SCLicense fetchByPrimaryKey(
145                    long licenseId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(licenseId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
151                    boolean active)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByActive(active);
154            }
155    
156            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
157                    boolean active, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByActive(active, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByActive(
163                    boolean active, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence()
167                                       .findByActive(active, start, end, orderByComparator);
168            }
169    
170            public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_First(
171                    boolean active,
172                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
175                    return getPersistence().findByActive_First(active, orderByComparator);
176            }
177    
178            public static com.liferay.portlet.softwarecatalog.model.SCLicense findByActive_Last(
179                    boolean active,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
183                    return getPersistence().findByActive_Last(active, orderByComparator);
184            }
185    
186            public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByActive_PrevAndNext(
187                    long licenseId, boolean active,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
191                    return getPersistence()
192                                       .findByActive_PrevAndNext(licenseId, active,
193                            orderByComparator);
194            }
195    
196            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
197                    boolean active, boolean recommended)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().findByA_R(active, recommended);
200            }
201    
202            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
203                    boolean active, boolean recommended, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByA_R(active, recommended, start, end);
206            }
207    
208            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findByA_R(
209                    boolean active, boolean recommended, int start, int end,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence()
213                                       .findByA_R(active, recommended, start, end, orderByComparator);
214            }
215    
216            public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_First(
217                    boolean active, boolean recommended,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
221                    return getPersistence()
222                                       .findByA_R_First(active, recommended, orderByComparator);
223            }
224    
225            public static com.liferay.portlet.softwarecatalog.model.SCLicense findByA_R_Last(
226                    boolean active, boolean recommended,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException,
229                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
230                    return getPersistence()
231                                       .findByA_R_Last(active, recommended, orderByComparator);
232            }
233    
234            public static com.liferay.portlet.softwarecatalog.model.SCLicense[] findByA_R_PrevAndNext(
235                    long licenseId, boolean active, boolean recommended,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.softwarecatalog.NoSuchLicenseException {
239                    return getPersistence()
240                                       .findByA_R_PrevAndNext(licenseId, active, recommended,
241                            orderByComparator);
242            }
243    
244            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll()
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence().findAll();
247            }
248    
249            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
250                    int start, int end)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findAll(start, end);
253            }
254    
255            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> findAll(
256                    int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    return getPersistence().findAll(start, end, orderByComparator);
260            }
261    
262            public static void removeByActive(boolean active)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    getPersistence().removeByActive(active);
265            }
266    
267            public static void removeByA_R(boolean active, boolean recommended)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    getPersistence().removeByA_R(active, recommended);
270            }
271    
272            public static void removeAll()
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    getPersistence().removeAll();
275            }
276    
277            public static int countByActive(boolean active)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence().countByActive(active);
280            }
281    
282            public static int countByA_R(boolean active, boolean recommended)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().countByA_R(active, recommended);
285            }
286    
287            public static int countAll()
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return getPersistence().countAll();
290            }
291    
292            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
293                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
294                    return getPersistence().getSCProductEntries(pk);
295            }
296    
297            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
298                    long pk, int start, int end)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    return getPersistence().getSCProductEntries(pk, start, end);
301            }
302    
303            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
304                    long pk, int start, int end,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence()
308                                       .getSCProductEntries(pk, start, end, orderByComparator);
309            }
310    
311            public static int getSCProductEntriesSize(long pk)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getPersistence().getSCProductEntriesSize(pk);
314            }
315    
316            public static boolean containsSCProductEntry(long pk, long scProductEntryPK)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence().containsSCProductEntry(pk, scProductEntryPK);
319            }
320    
321            public static boolean containsSCProductEntries(long pk)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return getPersistence().containsSCProductEntries(pk);
324            }
325    
326            public static void addSCProductEntry(long pk, long scProductEntryPK)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    getPersistence().addSCProductEntry(pk, scProductEntryPK);
329            }
330    
331            public static void addSCProductEntry(long pk,
332                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    getPersistence().addSCProductEntry(pk, scProductEntry);
335            }
336    
337            public static void addSCProductEntries(long pk, long[] scProductEntryPKs)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    getPersistence().addSCProductEntries(pk, scProductEntryPKs);
340            }
341    
342            public static void addSCProductEntries(long pk,
343                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    getPersistence().addSCProductEntries(pk, scProductEntries);
346            }
347    
348            public static void clearSCProductEntries(long pk)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    getPersistence().clearSCProductEntries(pk);
351            }
352    
353            public static void removeSCProductEntry(long pk, long scProductEntryPK)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    getPersistence().removeSCProductEntry(pk, scProductEntryPK);
356            }
357    
358            public static void removeSCProductEntry(long pk,
359                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    getPersistence().removeSCProductEntry(pk, scProductEntry);
362            }
363    
364            public static void removeSCProductEntries(long pk, long[] scProductEntryPKs)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    getPersistence().removeSCProductEntries(pk, scProductEntryPKs);
367            }
368    
369            public static void removeSCProductEntries(long pk,
370                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    getPersistence().removeSCProductEntries(pk, scProductEntries);
373            }
374    
375            public static void setSCProductEntries(long pk, long[] scProductEntryPKs)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    getPersistence().setSCProductEntries(pk, scProductEntryPKs);
378            }
379    
380            public static void setSCProductEntries(long pk,
381                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> scProductEntries)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    getPersistence().setSCProductEntries(pk, scProductEntries);
384            }
385    
386            public static SCLicensePersistence getPersistence() {
387                    if (_persistence == null) {
388                            _persistence = (SCLicensePersistence)PortalBeanLocatorUtil.locate(SCLicensePersistence.class.getName());
389                    }
390    
391                    return _persistence;
392            }
393    
394            public void setPersistence(SCLicensePersistence persistence) {
395                    _persistence = persistence;
396            }
397    
398            private static SCLicensePersistence _persistence;
399    }