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#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static WebDAVProps remove(WebDAVProps webDAVProps)
65          throws SystemException {
66          return getPersistence().remove(webDAVProps);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge)
73          throws SystemException {
74          return getPersistence().update(webDAVProps, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portal.model.WebDAVProps webDAVProps) {
79          getPersistence().cacheResult(webDAVProps);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses) {
84          getPersistence().cacheResult(webDAVPropses);
85      }
86  
87      public static com.liferay.portal.model.WebDAVProps create(
88          long webDavPropsId) {
89          return getPersistence().create(webDavPropsId);
90      }
91  
92      public static com.liferay.portal.model.WebDAVProps remove(
93          long webDavPropsId)
94          throws com.liferay.portal.NoSuchWebDAVPropsException,
95              com.liferay.portal.kernel.exception.SystemException {
96          return getPersistence().remove(webDavPropsId);
97      }
98  
99      public static com.liferay.portal.model.WebDAVProps updateImpl(
100         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(webDAVProps, merge);
103     }
104 
105     public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
106         long webDavPropsId)
107         throws com.liferay.portal.NoSuchWebDAVPropsException,
108             com.liferay.portal.kernel.exception.SystemException {
109         return getPersistence().findByPrimaryKey(webDavPropsId);
110     }
111 
112     public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
113         long webDavPropsId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(webDavPropsId);
116     }
117 
118     public static com.liferay.portal.model.WebDAVProps findByC_C(
119         long classNameId, long classPK)
120         throws com.liferay.portal.NoSuchWebDAVPropsException,
121             com.liferay.portal.kernel.exception.SystemException {
122         return getPersistence().findByC_C(classNameId, classPK);
123     }
124 
125     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
126         long classNameId, long classPK)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getPersistence().fetchByC_C(classNameId, classPK);
129     }
130 
131     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
132         long classNameId, long classPK, boolean retrieveFromCache)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence()
135                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
136     }
137 
138     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return getPersistence().findAll();
141     }
142 
143     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
144         int start, int end)
145         throws com.liferay.portal.kernel.exception.SystemException {
146         return getPersistence().findAll(start, end);
147     }
148 
149     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
150         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findAll(start, end, obc);
153     }
154 
155     public static void removeByC_C(long classNameId, long classPK)
156         throws com.liferay.portal.NoSuchWebDAVPropsException,
157             com.liferay.portal.kernel.exception.SystemException {
158         getPersistence().removeByC_C(classNameId, classPK);
159     }
160 
161     public static void removeAll()
162         throws com.liferay.portal.kernel.exception.SystemException {
163         getPersistence().removeAll();
164     }
165 
166     public static int countByC_C(long classNameId, long classPK)
167         throws com.liferay.portal.kernel.exception.SystemException {
168         return getPersistence().countByC_C(classNameId, classPK);
169     }
170 
171     public static int countAll()
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().countAll();
174     }
175 
176     public static WebDAVPropsPersistence getPersistence() {
177         if (_persistence == null) {
178             _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
179         }
180 
181         return _persistence;
182     }
183 
184     public void setPersistence(WebDAVPropsPersistence persistence) {
185         _persistence = persistence;
186     }
187 
188     private static WebDAVPropsPersistence _persistence;
189 }