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