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