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