001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.WebDAVProps;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class WebDAVPropsUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(WebDAVProps webDAVProps) {
044 getPersistence().clearCache(webDAVProps);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<WebDAVProps> findWithDynamicQuery(
059 DynamicQuery dynamicQuery) throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<WebDAVProps> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<WebDAVProps> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static WebDAVProps remove(WebDAVProps webDAVProps)
087 throws SystemException {
088 return getPersistence().remove(webDAVProps);
089 }
090
091
094 public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge)
095 throws SystemException {
096 return getPersistence().update(webDAVProps, merge);
097 }
098
099
102 public static WebDAVProps update(WebDAVProps webDAVProps, boolean merge,
103 ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(webDAVProps, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portal.model.WebDAVProps webDAVProps) {
109 getPersistence().cacheResult(webDAVProps);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses) {
114 getPersistence().cacheResult(webDAVPropses);
115 }
116
117 public static com.liferay.portal.model.WebDAVProps create(
118 long webDavPropsId) {
119 return getPersistence().create(webDavPropsId);
120 }
121
122 public static com.liferay.portal.model.WebDAVProps remove(
123 long webDavPropsId)
124 throws com.liferay.portal.NoSuchWebDAVPropsException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getPersistence().remove(webDavPropsId);
127 }
128
129 public static com.liferay.portal.model.WebDAVProps updateImpl(
130 com.liferay.portal.model.WebDAVProps webDAVProps, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(webDAVProps, merge);
133 }
134
135 public static com.liferay.portal.model.WebDAVProps findByPrimaryKey(
136 long webDavPropsId)
137 throws com.liferay.portal.NoSuchWebDAVPropsException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByPrimaryKey(webDavPropsId);
140 }
141
142 public static com.liferay.portal.model.WebDAVProps fetchByPrimaryKey(
143 long webDavPropsId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(webDavPropsId);
146 }
147
148 public static com.liferay.portal.model.WebDAVProps findByC_C(
149 long classNameId, long classPK)
150 throws com.liferay.portal.NoSuchWebDAVPropsException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByC_C(classNameId, classPK);
153 }
154
155 public static com.liferay.portal.model.WebDAVProps fetchByC_C(
156 long classNameId, long classPK)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence().fetchByC_C(classNameId, classPK);
159 }
160
161 public static com.liferay.portal.model.WebDAVProps fetchByC_C(
162 long classNameId, long classPK, boolean retrieveFromCache)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence()
165 .fetchByC_C(classNameId, classPK, retrieveFromCache);
166 }
167
168 public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll()
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence().findAll();
171 }
172
173 public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().findAll(start, end);
177 }
178
179 public static java.util.List<com.liferay.portal.model.WebDAVProps> findAll(
180 int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findAll(start, end, orderByComparator);
184 }
185
186 public static void removeByC_C(long classNameId, long classPK)
187 throws com.liferay.portal.NoSuchWebDAVPropsException,
188 com.liferay.portal.kernel.exception.SystemException {
189 getPersistence().removeByC_C(classNameId, classPK);
190 }
191
192 public static void removeAll()
193 throws com.liferay.portal.kernel.exception.SystemException {
194 getPersistence().removeAll();
195 }
196
197 public static int countByC_C(long classNameId, long classPK)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence().countByC_C(classNameId, classPK);
200 }
201
202 public static int countAll()
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().countAll();
205 }
206
207 public static WebDAVPropsPersistence getPersistence() {
208 if (_persistence == null) {
209 _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName());
210 }
211
212 return _persistence;
213 }
214
215 public void setPersistence(WebDAVPropsPersistence persistence) {
216 _persistence = persistence;
217 }
218
219 private static WebDAVPropsPersistence _persistence;
220 }