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.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException {
96          return getPersistence().remove(webDavPropsId);
97      }
98  
99      /**
100      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
101      */
102     public static com.liferay.portal.model.WebDAVProps update(
103         com.liferay.portal.model.WebDAVProps webDAVProps)
104         throws com.liferay.portal.SystemException {
105         return getPersistence().update(webDAVProps);
106     }
107 
108     public static com.liferay.portal.model.WebDAVProps updateImpl(
109         com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().updateImpl(webDAVProps, merge);
112     }
113 
114     public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
115         long webDavPropsId)
116         throws com.liferay.portal.NoSuchWebDAVPropsException,
117             com.liferay.portal.SystemException {
118         return getPersistence().findByPrimaryKey(webDavPropsId);
119     }
120 
121     public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
122         long webDavPropsId) throws com.liferay.portal.SystemException {
123         return getPersistence().fetchByPrimaryKey(webDavPropsId);
124     }
125 
126     public static com.liferay.portal.model.WebDAVProps findByC_C(
127         long classNameId, long classPK)
128         throws com.liferay.portal.NoSuchWebDAVPropsException,
129             com.liferay.portal.SystemException {
130         return getPersistence().findByC_C(classNameId, classPK);
131     }
132 
133     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
134         long classNameId, long classPK)
135         throws com.liferay.portal.SystemException {
136         return getPersistence().fetchByC_C(classNameId, classPK);
137     }
138 
139     public static com.liferay.portal.model.WebDAVProps fetchByC_C(
140         long classNameId, long classPK, boolean retrieveFromCache)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
144     }
145 
146     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
147         throws com.liferay.portal.SystemException {
148         return getPersistence().findAll();
149     }
150 
151     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
152         int start, int end) throws com.liferay.portal.SystemException {
153         return getPersistence().findAll(start, end);
154     }
155 
156     public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
157         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException {
159         return getPersistence().findAll(start, end, obc);
160     }
161 
162     public static void removeByC_C(long classNameId, long classPK)
163         throws com.liferay.portal.NoSuchWebDAVPropsException,
164             com.liferay.portal.SystemException {
165         getPersistence().removeByC_C(classNameId, classPK);
166     }
167 
168     public static void removeAll() throws com.liferay.portal.SystemException {
169         getPersistence().removeAll();
170     }
171 
172     public static int countByC_C(long classNameId, long classPK)
173         throws com.liferay.portal.SystemException {
174         return getPersistence().countByC_C(classNameId, classPK);
175     }
176 
177     public static int countAll() throws com.liferay.portal.SystemException {
178         return getPersistence().countAll();
179     }
180 
181     public static WebDAVPropsPersistence getPersistence() {
182         if (_persistence == null) {
183             _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
184         }
185 
186         return _persistence;
187     }
188 
189     public void setPersistence(WebDAVPropsPersistence persistence) {
190         _persistence = persistence;
191     }
192 
193     private static WebDAVPropsPersistence _persistence;
194 }