001    /**
002     * Copyright (c) 2000-2012 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            * <p>
252            * 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.
253            * </p>
254            *
255            * @param companyId the company ID
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the first matching asset tag property
258            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_First(
262                    long companyId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.asset.NoSuchTagPropertyException {
266                    return getPersistence()
267                                       .findByCompanyId_First(companyId, orderByComparator);
268            }
269    
270            /**
271            * Returns the last asset tag property in the ordered set where companyId = &#63;.
272            *
273            * <p>
274            * 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.
275            * </p>
276            *
277            * @param companyId the company ID
278            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
279            * @return the last matching asset tag property
280            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public static com.liferay.portlet.asset.model.AssetTagProperty findByCompanyId_Last(
284                    long companyId,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.asset.NoSuchTagPropertyException {
288                    return getPersistence()
289                                       .findByCompanyId_Last(companyId, orderByComparator);
290            }
291    
292            /**
293            * Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param tagPropertyId the primary key of the current asset tag property
300            * @param companyId the company ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the previous, current, and next asset tag property
303            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public static com.liferay.portlet.asset.model.AssetTagProperty[] findByCompanyId_PrevAndNext(
307                    long tagPropertyId, long companyId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.asset.NoSuchTagPropertyException {
311                    return getPersistence()
312                                       .findByCompanyId_PrevAndNext(tagPropertyId, companyId,
313                            orderByComparator);
314            }
315    
316            /**
317            * Returns all the asset tag properties where tagId = &#63;.
318            *
319            * @param tagId the tag ID
320            * @return the matching asset tag properties
321            * @throws SystemException if a system exception occurred
322            */
323            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
324                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence().findByTagId(tagId);
326            }
327    
328            /**
329            * Returns a range of all the asset tag properties where tagId = &#63;.
330            *
331            * <p>
332            * 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.
333            * </p>
334            *
335            * @param tagId the tag ID
336            * @param start the lower bound of the range of asset tag properties
337            * @param end the upper bound of the range of asset tag properties (not inclusive)
338            * @return the range of matching asset tag properties
339            * @throws SystemException if a system exception occurred
340            */
341            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByTagId(
342                    long tagId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().findByTagId(tagId, start, end);
345            }
346    
347            /**
348            * Returns an ordered range of all the asset tag properties where tagId = &#63;.
349            *
350            * <p>
351            * 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.
352            * </p>
353            *
354            * @param tagId the tag ID
355            * @param start the lower bound of the range of asset tag properties
356            * @param end the upper bound of the range of asset tag properties (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered 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                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence().findByTagId(tagId, start, end, orderByComparator);
366            }
367    
368            /**
369            * Returns the first asset tag property in the ordered set where tagId = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param tagId the tag ID
376            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
377            * @return the first matching asset tag property
378            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_First(
382                    long tagId,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException,
385                            com.liferay.portlet.asset.NoSuchTagPropertyException {
386                    return getPersistence().findByTagId_First(tagId, orderByComparator);
387            }
388    
389            /**
390            * Returns the last asset tag property in the ordered set where tagId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param tagId the tag ID
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the last matching asset tag property
399            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
400            * @throws SystemException if a system exception occurred
401            */
402            public static com.liferay.portlet.asset.model.AssetTagProperty findByTagId_Last(
403                    long tagId,
404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405                    throws com.liferay.portal.kernel.exception.SystemException,
406                            com.liferay.portlet.asset.NoSuchTagPropertyException {
407                    return getPersistence().findByTagId_Last(tagId, orderByComparator);
408            }
409    
410            /**
411            * Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = &#63;.
412            *
413            * <p>
414            * 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.
415            * </p>
416            *
417            * @param tagPropertyId the primary key of the current asset tag property
418            * @param tagId the tag ID
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the previous, current, and next asset tag property
421            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.asset.model.AssetTagProperty[] findByTagId_PrevAndNext(
425                    long tagPropertyId, long tagId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.asset.NoSuchTagPropertyException {
429                    return getPersistence()
430                                       .findByTagId_PrevAndNext(tagPropertyId, tagId,
431                            orderByComparator);
432            }
433    
434            /**
435            * Returns all the asset tag properties where companyId = &#63; and key = &#63;.
436            *
437            * @param companyId the company ID
438            * @param key the key
439            * @return the matching asset tag properties
440            * @throws SystemException if a system exception occurred
441            */
442            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
443                    long companyId, java.lang.String key)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return getPersistence().findByC_K(companyId, key);
446            }
447    
448            /**
449            * Returns a range of all the asset tag properties where companyId = &#63; and key = &#63;.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param companyId the company ID
456            * @param key the key
457            * @param start the lower bound of the range of asset tag properties
458            * @param end the upper bound of the range of asset tag properties (not inclusive)
459            * @return the range of matching asset tag properties
460            * @throws SystemException if a system exception occurred
461            */
462            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
463                    long companyId, java.lang.String key, int start, int end)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return getPersistence().findByC_K(companyId, key, start, end);
466            }
467    
468            /**
469            * Returns an ordered range of all the asset tag properties where companyId = &#63; and key = &#63;.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param companyId the company ID
476            * @param key the key
477            * @param start the lower bound of the range of asset tag properties
478            * @param end the upper bound of the range of asset tag properties (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of matching asset tag properties
481            * @throws SystemException if a system exception occurred
482            */
483            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findByC_K(
484                    long companyId, java.lang.String key, int start, int end,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence()
488                                       .findByC_K(companyId, key, start, end, orderByComparator);
489            }
490    
491            /**
492            * Returns the first asset tag property in the ordered set where companyId = &#63; and key = &#63;.
493            *
494            * <p>
495            * 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.
496            * </p>
497            *
498            * @param companyId the company ID
499            * @param key the key
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the first matching asset tag property
502            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_First(
506                    long companyId, java.lang.String key,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.asset.NoSuchTagPropertyException {
510                    return getPersistence()
511                                       .findByC_K_First(companyId, key, orderByComparator);
512            }
513    
514            /**
515            * Returns the last asset tag property in the ordered set where companyId = &#63; and key = &#63;.
516            *
517            * <p>
518            * 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.
519            * </p>
520            *
521            * @param companyId the company ID
522            * @param key the key
523            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
524            * @return the last matching asset tag property
525            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public static com.liferay.portlet.asset.model.AssetTagProperty findByC_K_Last(
529                    long companyId, java.lang.String key,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.asset.NoSuchTagPropertyException {
533                    return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
534            }
535    
536            /**
537            * Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = &#63; and key = &#63;.
538            *
539            * <p>
540            * 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.
541            * </p>
542            *
543            * @param tagPropertyId the primary key of the current asset tag property
544            * @param companyId the company ID
545            * @param key the key
546            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
547            * @return the previous, current, and next asset tag property
548            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a asset tag property with the primary key could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public static com.liferay.portlet.asset.model.AssetTagProperty[] findByC_K_PrevAndNext(
552                    long tagPropertyId, long companyId, java.lang.String key,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.kernel.exception.SystemException,
555                            com.liferay.portlet.asset.NoSuchTagPropertyException {
556                    return getPersistence()
557                                       .findByC_K_PrevAndNext(tagPropertyId, companyId, key,
558                            orderByComparator);
559            }
560    
561            /**
562            * 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.
563            *
564            * @param tagId the tag ID
565            * @param key the key
566            * @return the matching asset tag property
567            * @throws com.liferay.portlet.asset.NoSuchTagPropertyException if a matching asset tag property could not be found
568            * @throws SystemException if a system exception occurred
569            */
570            public static com.liferay.portlet.asset.model.AssetTagProperty findByT_K(
571                    long tagId, java.lang.String key)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.asset.NoSuchTagPropertyException {
574                    return getPersistence().findByT_K(tagId, key);
575            }
576    
577            /**
578            * 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.
579            *
580            * @param tagId the tag ID
581            * @param key the key
582            * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
586                    long tagId, java.lang.String key)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().fetchByT_K(tagId, key);
589            }
590    
591            /**
592            * 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.
593            *
594            * @param tagId the tag ID
595            * @param key the key
596            * @param retrieveFromCache whether to use the finder cache
597            * @return the matching asset tag property, or <code>null</code> if a matching asset tag property could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public static com.liferay.portlet.asset.model.AssetTagProperty fetchByT_K(
601                    long tagId, java.lang.String key, boolean retrieveFromCache)
602                    throws com.liferay.portal.kernel.exception.SystemException {
603                    return getPersistence().fetchByT_K(tagId, key, retrieveFromCache);
604            }
605    
606            /**
607            * Returns all the asset tag properties.
608            *
609            * @return the asset tag properties
610            * @throws SystemException if a system exception occurred
611            */
612            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll()
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    return getPersistence().findAll();
615            }
616    
617            /**
618            * Returns a range of all the asset tag properties.
619            *
620            * <p>
621            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
622            * </p>
623            *
624            * @param start the lower bound of the range of asset tag properties
625            * @param end the upper bound of the range of asset tag properties (not inclusive)
626            * @return the range of asset tag properties
627            * @throws SystemException if a system exception occurred
628            */
629            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
630                    int start, int end)
631                    throws com.liferay.portal.kernel.exception.SystemException {
632                    return getPersistence().findAll(start, end);
633            }
634    
635            /**
636            * Returns an ordered range of all the asset tag properties.
637            *
638            * <p>
639            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
640            * </p>
641            *
642            * @param start the lower bound of the range of asset tag properties
643            * @param end the upper bound of the range of asset tag properties (not inclusive)
644            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
645            * @return the ordered range of asset tag properties
646            * @throws SystemException if a system exception occurred
647            */
648            public static java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> findAll(
649                    int start, int end,
650                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
651                    throws com.liferay.portal.kernel.exception.SystemException {
652                    return getPersistence().findAll(start, end, orderByComparator);
653            }
654    
655            /**
656            * Removes all the asset tag properties where companyId = &#63; from the database.
657            *
658            * @param companyId the company ID
659            * @throws SystemException if a system exception occurred
660            */
661            public static void removeByCompanyId(long companyId)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    getPersistence().removeByCompanyId(companyId);
664            }
665    
666            /**
667            * Removes all the asset tag properties where tagId = &#63; from the database.
668            *
669            * @param tagId the tag ID
670            * @throws SystemException if a system exception occurred
671            */
672            public static void removeByTagId(long tagId)
673                    throws com.liferay.portal.kernel.exception.SystemException {
674                    getPersistence().removeByTagId(tagId);
675            }
676    
677            /**
678            * Removes all the asset tag properties where companyId = &#63; and key = &#63; from the database.
679            *
680            * @param companyId the company ID
681            * @param key the key
682            * @throws SystemException if a system exception occurred
683            */
684            public static void removeByC_K(long companyId, java.lang.String key)
685                    throws com.liferay.portal.kernel.exception.SystemException {
686                    getPersistence().removeByC_K(companyId, key);
687            }
688    
689            /**
690            * Removes the asset tag property where tagId = &#63; and key = &#63; from the database.
691            *
692            * @param tagId the tag ID
693            * @param key the key
694            * @throws SystemException if a system exception occurred
695            */
696            public static void removeByT_K(long tagId, java.lang.String key)
697                    throws com.liferay.portal.kernel.exception.SystemException,
698                            com.liferay.portlet.asset.NoSuchTagPropertyException {
699                    getPersistence().removeByT_K(tagId, key);
700            }
701    
702            /**
703            * Removes all the asset tag properties from the database.
704            *
705            * @throws SystemException if a system exception occurred
706            */
707            public static void removeAll()
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    getPersistence().removeAll();
710            }
711    
712            /**
713            * Returns the number of asset tag properties where companyId = &#63;.
714            *
715            * @param companyId the company ID
716            * @return the number of matching asset tag properties
717            * @throws SystemException if a system exception occurred
718            */
719            public static int countByCompanyId(long companyId)
720                    throws com.liferay.portal.kernel.exception.SystemException {
721                    return getPersistence().countByCompanyId(companyId);
722            }
723    
724            /**
725            * Returns the number of asset tag properties where tagId = &#63;.
726            *
727            * @param tagId the tag ID
728            * @return the number of matching asset tag properties
729            * @throws SystemException if a system exception occurred
730            */
731            public static int countByTagId(long tagId)
732                    throws com.liferay.portal.kernel.exception.SystemException {
733                    return getPersistence().countByTagId(tagId);
734            }
735    
736            /**
737            * Returns the number of asset tag properties where companyId = &#63; and key = &#63;.
738            *
739            * @param companyId the company ID
740            * @param key the key
741            * @return the number of matching asset tag properties
742            * @throws SystemException if a system exception occurred
743            */
744            public static int countByC_K(long companyId, java.lang.String key)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence().countByC_K(companyId, key);
747            }
748    
749            /**
750            * Returns the number of asset tag properties where tagId = &#63; and key = &#63;.
751            *
752            * @param tagId the tag ID
753            * @param key the key
754            * @return the number of matching asset tag properties
755            * @throws SystemException if a system exception occurred
756            */
757            public static int countByT_K(long tagId, java.lang.String key)
758                    throws com.liferay.portal.kernel.exception.SystemException {
759                    return getPersistence().countByT_K(tagId, key);
760            }
761    
762            /**
763            * Returns the number of asset tag properties.
764            *
765            * @return the number of asset tag properties
766            * @throws SystemException if a system exception occurred
767            */
768            public static int countAll()
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getPersistence().countAll();
771            }
772    
773            public static AssetTagPropertyPersistence getPersistence() {
774                    if (_persistence == null) {
775                            _persistence = (AssetTagPropertyPersistence)PortalBeanLocatorUtil.locate(AssetTagPropertyPersistence.class.getName());
776    
777                            ReferenceRegistry.registerReference(AssetTagPropertyUtil.class,
778                                    "_persistence");
779                    }
780    
781                    return _persistence;
782            }
783    
784            public void setPersistence(AssetTagPropertyPersistence persistence) {
785                    _persistence = persistence;
786    
787                    ReferenceRegistry.registerReference(AssetTagPropertyUtil.class,
788                            "_persistence");
789            }
790    
791            private static AssetTagPropertyPersistence _persistence;
792    }