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