001    /**
002     * Copyright (c) 2000-2010 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.portal.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.model.WebDAVProps;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import java.util.List;
025    
026    /**
027     * The persistence utility for the web d a v props service.
028     *
029     * <p>
030     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see WebDAVPropsPersistence
035     * @see WebDAVPropsPersistenceImpl
036     * @generated
037     */
038    public class WebDAVPropsUtil {
039            /**
040             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
041             */
042            public static void clearCache() {
043                    getPersistence().clearCache();
044            }
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
048             */
049            public static void clearCache(WebDAVProps webDAVProps) {
050                    getPersistence().clearCache(webDAVProps);
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
055             */
056            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
057                    throws SystemException {
058                    return getPersistence().countWithDynamicQuery(dynamicQuery);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
063             */
064            public static List<WebDAVProps> findWithDynamicQuery(
065                    DynamicQuery dynamicQuery) throws SystemException {
066                    return getPersistence().findWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
071             */
072            public static List<WebDAVProps> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery, int start, int end)
074                    throws SystemException {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
080             */
081            public static List<WebDAVProps> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end,
083                    OrderByComparator orderByComparator) throws SystemException {
084                    return getPersistence()
085                                       .findWithDynamicQuery(dynamicQuery, start, end,
086                            orderByComparator);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
091             */
092            public static WebDAVProps remove(WebDAVProps webDAVProps)
093                    throws SystemException {
094                    return getPersistence().remove(webDAVProps);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(webDAVProps, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(webDAVProps, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the web d a v props in the entity cache if it is enabled.
115            *
116            * @param webDAVProps the web d a v props to cache
117            */
118            public static void cacheResult(
119                    com.liferay.portal.model.WebDAVProps webDAVProps) {
120                    getPersistence().cacheResult(webDAVProps);
121            }
122    
123            /**
124            * Caches the web d a v propses in the entity cache if it is enabled.
125            *
126            * @param webDAVPropses the web d a v propses to cache
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses) {
130                    getPersistence().cacheResult(webDAVPropses);
131            }
132    
133            /**
134            * Creates a new web d a v props with the primary key.
135            *
136            * @param webDavPropsId the primary key for the new web d a v props
137            * @return the new web d a v props
138            */
139            public static com.liferay.portal.model.WebDAVProps create(
140                    long webDavPropsId) {
141                    return getPersistence().create(webDavPropsId);
142            }
143    
144            /**
145            * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param webDavPropsId the primary key of the web d a v props to remove
148            * @return the web d a v props that was removed
149            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portal.model.WebDAVProps remove(
153                    long webDavPropsId)
154                    throws com.liferay.portal.NoSuchWebDAVPropsException,
155                            com.liferay.portal.kernel.exception.SystemException {
156                    return getPersistence().remove(webDavPropsId);
157            }
158    
159            public static com.liferay.portal.model.WebDAVProps updateImpl(
160                    com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(webDAVProps, merge);
163            }
164    
165            /**
166            * Finds the web d a v props with the primary key or throws a {@link com.liferay.portal.NoSuchWebDAVPropsException} if it could not be found.
167            *
168            * @param webDavPropsId the primary key of the web d a v props to find
169            * @return the web d a v props
170            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
174                    long webDavPropsId)
175                    throws com.liferay.portal.NoSuchWebDAVPropsException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return getPersistence().findByPrimaryKey(webDavPropsId);
178            }
179    
180            /**
181            * Finds the web d a v props with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param webDavPropsId the primary key of the web d a v props to find
184            * @return the web d a v props, or <code>null</code> if a web d a v props with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
188                    long webDavPropsId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(webDavPropsId);
191            }
192    
193            /**
194            * Finds the web d a v props where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portal.NoSuchWebDAVPropsException} if it could not be found.
195            *
196            * @param classNameId the class name id to search with
197            * @param classPK the class p k to search with
198            * @return the matching web d a v props
199            * @throws com.liferay.portal.NoSuchWebDAVPropsException if a matching web d a v props could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public static com.liferay.portal.model.WebDAVProps findByC_C(
203                    long classNameId, long classPK)
204                    throws com.liferay.portal.NoSuchWebDAVPropsException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return getPersistence().findByC_C(classNameId, classPK);
207            }
208    
209            /**
210            * Finds the web d a v props where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
211            *
212            * @param classNameId the class name id to search with
213            * @param classPK the class p k to search with
214            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public static com.liferay.portal.model.WebDAVProps fetchByC_C(
218                    long classNameId, long classPK)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return getPersistence().fetchByC_C(classNameId, classPK);
221            }
222    
223            /**
224            * Finds the web d a v props where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
225            *
226            * @param classNameId the class name id to search with
227            * @param classPK the class p k to search with
228            * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            public static com.liferay.portal.model.WebDAVProps fetchByC_C(
232                    long classNameId, long classPK, boolean retrieveFromCache)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getPersistence()
235                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
236            }
237    
238            /**
239            * Finds all the web d a v propses.
240            *
241            * @return the web d a v propses
242            * @throws SystemException if a system exception occurred
243            */
244            public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence().findAll();
247            }
248    
249            /**
250            * Finds a range of all the web d a v propses.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param start the lower bound of the range of web d a v propses to return
257            * @param end the upper bound of the range of web d a v propses to return (not inclusive)
258            * @return the range of web d a v propses
259            * @throws SystemException if a system exception occurred
260            */
261            public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
262                    int start, int end)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return getPersistence().findAll(start, end);
265            }
266    
267            /**
268            * Finds an ordered range of all the web d a v propses.
269            *
270            * <p>
271            * 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.
272            * </p>
273            *
274            * @param start the lower bound of the range of web d a v propses to return
275            * @param end the upper bound of the range of web d a v propses to return (not inclusive)
276            * @param orderByComparator the comparator to order the results by
277            * @return the ordered range of web d a v propses
278            * @throws SystemException if a system exception occurred
279            */
280            public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
281                    int start, int end,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().findAll(start, end, orderByComparator);
285            }
286    
287            /**
288            * Removes the web d a v props where classNameId = &#63; and classPK = &#63; from the database.
289            *
290            * @param classNameId the class name id to search with
291            * @param classPK the class p k to search with
292            * @throws SystemException if a system exception occurred
293            */
294            public static void removeByC_C(long classNameId, long classPK)
295                    throws com.liferay.portal.NoSuchWebDAVPropsException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    getPersistence().removeByC_C(classNameId, classPK);
298            }
299    
300            /**
301            * Removes all the web d a v propses from the database.
302            *
303            * @throws SystemException if a system exception occurred
304            */
305            public static void removeAll()
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    getPersistence().removeAll();
308            }
309    
310            /**
311            * Counts all the web d a v propses where classNameId = &#63; and classPK = &#63;.
312            *
313            * @param classNameId the class name id to search with
314            * @param classPK the class p k to search with
315            * @return the number of matching web d a v propses
316            * @throws SystemException if a system exception occurred
317            */
318            public static int countByC_C(long classNameId, long classPK)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return getPersistence().countByC_C(classNameId, classPK);
321            }
322    
323            /**
324            * Counts all the web d a v propses.
325            *
326            * @return the number of web d a v propses
327            * @throws SystemException if a system exception occurred
328            */
329            public static int countAll()
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return getPersistence().countAll();
332            }
333    
334            public static WebDAVPropsPersistence getPersistence() {
335                    if (_persistence == null) {
336                            _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
337                    }
338    
339                    return _persistence;
340            }
341    
342            public void setPersistence(WebDAVPropsPersistence persistence) {
343                    _persistence = persistence;
344            }
345    
346            private static WebDAVPropsPersistence _persistence;
347    }