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