1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  import com.liferay.portal.model.WebDAVProps;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="WebDAVPropsUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       WebDAVPropsPersistence
35   * @see       WebDAVPropsPersistenceImpl
36   * @generated
37   */
38  public class WebDAVPropsUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(WebDAVProps)
48       */
49      public static void clearCache(WebDAVProps webDAVProps) {
50          getPersistence().clearCache(webDAVProps);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65          throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73          int start, int end) throws SystemException {
74          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
79       */
80      public static WebDAVProps remove(WebDAVProps webDAVProps)
81          throws SystemException {
82          return getPersistence().remove(webDAVProps);
83      }
84  
85      /**
86       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
87       */
88      public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge)
89          throws SystemException {
90          return getPersistence().update(webDAVProps, merge);
91      }
92  
93      public static void cacheResult(
94          com.liferay.portal.model.WebDAVProps webDAVProps) {
95          getPersistence().cacheResult(webDAVProps);
96      }
97  
98      public static void cacheResult(
99          java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses) {
100         getPersistence().cacheResult(webDAVPropses);
101     }
102 
103     public static com.liferay.portal.model.WebDAVProps create(
104         long webDavPropsId) {
105         return getPersistence().create(webDavPropsId);
106     }
107 
108     public static com.liferay.portal.model.WebDAVProps remove(
109         long webDavPropsId)
110         throws com.liferay.portal.NoSuchWebDAVPropsException,
111             com.liferay.portal.SystemException {
112         return getPersistence().remove(webDavPropsId);
113     }
114 
115     /**
116      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
117      */
118     public static com.liferay.portal.model.WebDAVProps update(
119         com.liferay.portal.model.WebDAVProps webDAVProps)
120         throws com.liferay.portal.SystemException {
121         return getPersistence().update(webDAVProps);
122     }
123 
124     public static com.liferay.portal.model.WebDAVProps updateImpl(
125         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
126         throws com.liferay.portal.SystemException {
127         return getPersistence().updateImpl(webDAVProps, merge);
128     }
129 
130     public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
131         long webDavPropsId)
132         throws com.liferay.portal.NoSuchWebDAVPropsException,
133             com.liferay.portal.SystemException {
134         return getPersistence().findByPrimaryKey(webDavPropsId);
135     }
136 
137     public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
138         long webDavPropsId) throws com.liferay.portal.SystemException {
139         return getPersistence().fetchByPrimaryKey(webDavPropsId);
140     }
141 
142     public static com.liferay.portal.model.WebDAVProps findByC_C(
143         long classNameId, long classPK)
144         throws com.liferay.portal.NoSuchWebDAVPropsException,
145             com.liferay.portal.SystemException {
146         return getPersistence().findByC_C(classNameId, classPK);
147     }
148 
149     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
150         long classNameId, long classPK)
151         throws com.liferay.portal.SystemException {
152         return getPersistence().fetchByC_C(classNameId, classPK);
153     }
154 
155     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
156         long classNameId, long classPK, boolean retrieveFromCache)
157         throws com.liferay.portal.SystemException {
158         return getPersistence()
159                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
160     }
161 
162     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
163         throws com.liferay.portal.SystemException {
164         return getPersistence().findAll();
165     }
166 
167     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
168         int start, int end) throws com.liferay.portal.SystemException {
169         return getPersistence().findAll(start, end);
170     }
171 
172     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
173         int start, int end,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findAll(start, end, orderByComparator);
177     }
178 
179     public static void removeByC_C(long classNameId, long classPK)
180         throws com.liferay.portal.NoSuchWebDAVPropsException,
181             com.liferay.portal.SystemException {
182         getPersistence().removeByC_C(classNameId, classPK);
183     }
184 
185     public static void removeAll() throws com.liferay.portal.SystemException {
186         getPersistence().removeAll();
187     }
188 
189     public static int countByC_C(long classNameId, long classPK)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().countByC_C(classNameId, classPK);
192     }
193 
194     public static int countAll() throws com.liferay.portal.SystemException {
195         return getPersistence().countAll();
196     }
197 
198     public static WebDAVPropsPersistence getPersistence() {
199         if (_persistence == null) {
200             _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
201 
202             ReferenceRegistry.registerReference(WebDAVPropsUtil.class,
203                 "_persistence");
204         }
205 
206         return _persistence;
207     }
208 
209     public void setPersistence(WebDAVPropsPersistence persistence) {
210         _persistence = persistence;
211 
212         ReferenceRegistry.registerReference(WebDAVPropsUtil.class,
213             "_persistence");
214     }
215 
216     private static WebDAVPropsPersistence _persistence;
217 }