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