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