1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.WebDAVProps;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="WebDAVPropsUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       WebDAVPropsPersistence
34   * @see       WebDAVPropsPersistenceImpl
35   * @generated
36   */
37  public class WebDAVPropsUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(WebDAVProps)
47       */
48      public static void clearCache(WebDAVProps webDAVProps) {
49          getPersistence().clearCache(webDAVProps);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<WebDAVProps> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<WebDAVProps> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          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.kernel.exception.SystemException {
112         return getPersistence().remove(webDavPropsId);
113     }
114 
115     public static com.liferay.portal.model.WebDAVProps updateImpl(
116         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().updateImpl(webDAVProps, merge);
119     }
120 
121     public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
122         long webDavPropsId)
123         throws com.liferay.portal.NoSuchWebDAVPropsException,
124             com.liferay.portal.kernel.exception.SystemException {
125         return getPersistence().findByPrimaryKey(webDavPropsId);
126     }
127 
128     public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
129         long webDavPropsId)
130         throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
156         return getPersistence().findAll();
157     }
158 
159     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
160         int start, int end)
161         throws com.liferay.portal.kernel.exception.SystemException {
162         return getPersistence().findAll(start, end);
163     }
164 
165     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
166         int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168         throws com.liferay.portal.kernel.exception.SystemException {
169         return getPersistence().findAll(start, end, orderByComparator);
170     }
171 
172     public static void removeByC_C(long classNameId, long classPK)
173         throws com.liferay.portal.NoSuchWebDAVPropsException,
174             com.liferay.portal.kernel.exception.SystemException {
175         getPersistence().removeByC_C(classNameId, classPK);
176     }
177 
178     public static void removeAll()
179         throws com.liferay.portal.kernel.exception.SystemException {
180         getPersistence().removeAll();
181     }
182 
183     public static int countByC_C(long classNameId, long classPK)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().countByC_C(classNameId, classPK);
186     }
187 
188     public static int countAll()
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().countAll();
191     }
192 
193     public static WebDAVPropsPersistence getPersistence() {
194         if (_persistence == null) {
195             _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
196         }
197 
198         return _persistence;
199     }
200 
201     public void setPersistence(WebDAVPropsPersistence persistence) {
202         _persistence = persistence;
203     }
204 
205     private static WebDAVPropsPersistence _persistence;
206 }