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