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.asset.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.asset.model.AssetTag;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       AssetTagPersistence
030     * @see       AssetTagPersistenceImpl
031     * @generated
032     */
033    public class AssetTagUtil {
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(AssetTag assetTag) {
045                    getPersistence().clearCache(assetTag);
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<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery)
060                    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<AssetTag> 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<AssetTag> 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 AssetTag remove(AssetTag assetTag) throws SystemException {
088                    return getPersistence().remove(assetTag);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static AssetTag update(AssetTag assetTag, boolean merge)
095                    throws SystemException {
096                    return getPersistence().update(assetTag, merge);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
101             */
102            public static AssetTag update(AssetTag assetTag, boolean merge,
103                    ServiceContext serviceContext) throws SystemException {
104                    return getPersistence().update(assetTag, merge, serviceContext);
105            }
106    
107            public static void cacheResult(
108                    com.liferay.portlet.asset.model.AssetTag assetTag) {
109                    getPersistence().cacheResult(assetTag);
110            }
111    
112            public static void cacheResult(
113                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) {
114                    getPersistence().cacheResult(assetTags);
115            }
116    
117            public static com.liferay.portlet.asset.model.AssetTag create(long tagId) {
118                    return getPersistence().create(tagId);
119            }
120    
121            public static com.liferay.portlet.asset.model.AssetTag remove(long tagId)
122                    throws com.liferay.portal.kernel.exception.SystemException,
123                            com.liferay.portlet.asset.NoSuchTagException {
124                    return getPersistence().remove(tagId);
125            }
126    
127            public static com.liferay.portlet.asset.model.AssetTag updateImpl(
128                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
129                    throws com.liferay.portal.kernel.exception.SystemException {
130                    return getPersistence().updateImpl(assetTag, merge);
131            }
132    
133            public static com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(
134                    long tagId)
135                    throws com.liferay.portal.kernel.exception.SystemException,
136                            com.liferay.portlet.asset.NoSuchTagException {
137                    return getPersistence().findByPrimaryKey(tagId);
138            }
139    
140            public static com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
141                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().fetchByPrimaryKey(tagId);
143            }
144    
145            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
146                    long groupId)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return getPersistence().findByGroupId(groupId);
149            }
150    
151            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
152                    long groupId, int start, int end)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return getPersistence().findByGroupId(groupId, start, end);
155            }
156    
157            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
158                    long groupId, int start, int end,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getPersistence()
162                                       .findByGroupId(groupId, start, end, orderByComparator);
163            }
164    
165            public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
166                    long groupId,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.asset.NoSuchTagException {
170                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
171            }
172    
173            public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
174                    long groupId,
175                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchTagException {
178                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
179            }
180    
181            public static com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
182                    long tagId, long groupId,
183                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.asset.NoSuchTagException {
186                    return getPersistence()
187                                       .findByGroupId_PrevAndNext(tagId, groupId, orderByComparator);
188            }
189    
190            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
191                    long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return getPersistence().filterFindByGroupId(groupId);
194            }
195    
196            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
197                    long groupId, int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().filterFindByGroupId(groupId, start, end);
200            }
201    
202            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
203                    long groupId, int start, int end,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return getPersistence()
207                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
208            }
209    
210            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findAll();
213            }
214    
215            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
216                    int start, int end)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence().findAll(start, end);
219            }
220    
221            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
222                    int start, int end,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return getPersistence().findAll(start, end, orderByComparator);
226            }
227    
228            public static void removeByGroupId(long groupId)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    getPersistence().removeByGroupId(groupId);
231            }
232    
233            public static void removeAll()
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    getPersistence().removeAll();
236            }
237    
238            public static int countByGroupId(long groupId)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return getPersistence().countByGroupId(groupId);
241            }
242    
243            public static int filterCountByGroupId(long groupId)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence().filterCountByGroupId(groupId);
246            }
247    
248            public static int countAll()
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getPersistence().countAll();
251            }
252    
253            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
254                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
255                    return getPersistence().getAssetEntries(pk);
256            }
257    
258            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
259                    long pk, int start, int end)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return getPersistence().getAssetEntries(pk, start, end);
262            }
263    
264            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
265                    long pk, int start, int end,
266                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return getPersistence()
269                                       .getAssetEntries(pk, start, end, orderByComparator);
270            }
271    
272            public static int getAssetEntriesSize(long pk)
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return getPersistence().getAssetEntriesSize(pk);
275            }
276    
277            public static boolean containsAssetEntry(long pk, long assetEntryPK)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence().containsAssetEntry(pk, assetEntryPK);
280            }
281    
282            public static boolean containsAssetEntries(long pk)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().containsAssetEntries(pk);
285            }
286    
287            public static void addAssetEntry(long pk, long assetEntryPK)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    getPersistence().addAssetEntry(pk, assetEntryPK);
290            }
291    
292            public static void addAssetEntry(long pk,
293                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    getPersistence().addAssetEntry(pk, assetEntry);
296            }
297    
298            public static void addAssetEntries(long pk, long[] assetEntryPKs)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    getPersistence().addAssetEntries(pk, assetEntryPKs);
301            }
302    
303            public static void addAssetEntries(long pk,
304                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    getPersistence().addAssetEntries(pk, assetEntries);
307            }
308    
309            public static void clearAssetEntries(long pk)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    getPersistence().clearAssetEntries(pk);
312            }
313    
314            public static void removeAssetEntry(long pk, long assetEntryPK)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    getPersistence().removeAssetEntry(pk, assetEntryPK);
317            }
318    
319            public static void removeAssetEntry(long pk,
320                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    getPersistence().removeAssetEntry(pk, assetEntry);
323            }
324    
325            public static void removeAssetEntries(long pk, long[] assetEntryPKs)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    getPersistence().removeAssetEntries(pk, assetEntryPKs);
328            }
329    
330            public static void removeAssetEntries(long pk,
331                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    getPersistence().removeAssetEntries(pk, assetEntries);
334            }
335    
336            public static void setAssetEntries(long pk, long[] assetEntryPKs)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    getPersistence().setAssetEntries(pk, assetEntryPKs);
339            }
340    
341            public static void setAssetEntries(long pk,
342                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    getPersistence().setAssetEntries(pk, assetEntries);
345            }
346    
347            public static AssetTagPersistence getPersistence() {
348                    if (_persistence == null) {
349                            _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName());
350                    }
351    
352                    return _persistence;
353            }
354    
355            public void setPersistence(AssetTagPersistence persistence) {
356                    _persistence = persistence;
357            }
358    
359            private static AssetTagPersistence _persistence;
360    }