1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  import com.liferay.portal.model.WebDAVProps;
29  
30  import java.util.List;
31  
32  /**
33   * <a href="WebDAVPropsUtil.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       WebDAVPropsPersistence
42   * @see       WebDAVPropsPersistenceImpl
43   * @generated
44   */
45  public class WebDAVPropsUtil {
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
48       */
49      public static void clearCache() {
50          getPersistence().clearCache();
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
65          int start, int end) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
71       */
72      public static WebDAVProps remove(WebDAVProps webDAVProps)
73          throws SystemException {
74          return getPersistence().remove(webDAVProps);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge)
81          throws SystemException {
82          return getPersistence().update(webDAVProps, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portal.model.WebDAVProps webDAVProps) {
87          getPersistence().cacheResult(webDAVProps);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses) {
92          getPersistence().cacheResult(webDAVPropses);
93      }
94  
95      public static com.liferay.portal.model.WebDAVProps create(
96          long webDavPropsId) {
97          return getPersistence().create(webDavPropsId);
98      }
99  
100     public static com.liferay.portal.model.WebDAVProps remove(
101         long webDavPropsId)
102         throws com.liferay.portal.NoSuchWebDAVPropsException,
103             com.liferay.portal.SystemException {
104         return getPersistence().remove(webDavPropsId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portal.model.WebDAVProps update(
111         com.liferay.portal.model.WebDAVProps webDAVProps)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(webDAVProps);
114     }
115 
116     public static com.liferay.portal.model.WebDAVProps updateImpl(
117         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(webDAVProps, merge);
120     }
121 
122     public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
123         long webDavPropsId)
124         throws com.liferay.portal.NoSuchWebDAVPropsException,
125             com.liferay.portal.SystemException {
126         return getPersistence().findByPrimaryKey(webDavPropsId);
127     }
128 
129     public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
130         long webDavPropsId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(webDavPropsId);
132     }
133 
134     public static com.liferay.portal.model.WebDAVProps findByC_C(
135         long classNameId, long classPK)
136         throws com.liferay.portal.NoSuchWebDAVPropsException,
137             com.liferay.portal.SystemException {
138         return getPersistence().findByC_C(classNameId, classPK);
139     }
140 
141     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
142         long classNameId, long classPK)
143         throws com.liferay.portal.SystemException {
144         return getPersistence().fetchByC_C(classNameId, classPK);
145     }
146 
147     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
148         long classNameId, long classPK, boolean retrieveFromCache)
149         throws com.liferay.portal.SystemException {
150         return getPersistence()
151                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
152     }
153 
154     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
155         throws com.liferay.portal.SystemException {
156         return getPersistence().findAll();
157     }
158 
159     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
160         int start, int end) throws com.liferay.portal.SystemException {
161         return getPersistence().findAll(start, end);
162     }
163 
164     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
165         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException {
167         return getPersistence().findAll(start, end, obc);
168     }
169 
170     public static void removeByC_C(long classNameId, long classPK)
171         throws com.liferay.portal.NoSuchWebDAVPropsException,
172             com.liferay.portal.SystemException {
173         getPersistence().removeByC_C(classNameId, classPK);
174     }
175 
176     public static void removeAll() throws com.liferay.portal.SystemException {
177         getPersistence().removeAll();
178     }
179 
180     public static int countByC_C(long classNameId, long classPK)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().countByC_C(classNameId, classPK);
183     }
184 
185     public static int countAll() throws com.liferay.portal.SystemException {
186         return getPersistence().countAll();
187     }
188 
189     public static WebDAVPropsPersistence getPersistence() {
190         if (_persistence == null) {
191             _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
192         }
193 
194         return _persistence;
195     }
196 
197     public void setPersistence(WebDAVPropsPersistence persistence) {
198         _persistence = persistence;
199     }
200 
201     private static WebDAVPropsPersistence _persistence;
202 }