001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.model.WebDAVProps; 024 import com.liferay.portal.service.ServiceContext; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the web d a v props service. This utility wraps {@link com.liferay.portal.service.persistence.impl.WebDAVPropsPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see WebDAVPropsPersistence 037 * @see com.liferay.portal.service.persistence.impl.WebDAVPropsPersistenceImpl 038 * @generated 039 */ 040 @ProviderType 041 public class WebDAVPropsUtil { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 046 */ 047 048 /** 049 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 050 */ 051 public static void clearCache() { 052 getPersistence().clearCache(); 053 } 054 055 /** 056 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 057 */ 058 public static void clearCache(WebDAVProps webDAVProps) { 059 getPersistence().clearCache(webDAVProps); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 064 */ 065 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<WebDAVProps> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<WebDAVProps> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<WebDAVProps> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator<WebDAVProps> orderByComparator) { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static WebDAVProps update(WebDAVProps webDAVProps) { 100 return getPersistence().update(webDAVProps); 101 } 102 103 /** 104 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 105 */ 106 public static WebDAVProps update(WebDAVProps webDAVProps, 107 ServiceContext serviceContext) { 108 return getPersistence().update(webDAVProps, serviceContext); 109 } 110 111 /** 112 * Returns the web d a v props where classNameId = ? and classPK = ? or throws a {@link NoSuchWebDAVPropsException} if it could not be found. 113 * 114 * @param classNameId the class name ID 115 * @param classPK the class p k 116 * @return the matching web d a v props 117 * @throws NoSuchWebDAVPropsException if a matching web d a v props could not be found 118 */ 119 public static WebDAVProps findByC_C(long classNameId, long classPK) 120 throws com.liferay.portal.exception.NoSuchWebDAVPropsException { 121 return getPersistence().findByC_C(classNameId, classPK); 122 } 123 124 /** 125 * Returns the web d a v props where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 126 * 127 * @param classNameId the class name ID 128 * @param classPK the class p k 129 * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found 130 */ 131 public static WebDAVProps fetchByC_C(long classNameId, long classPK) { 132 return getPersistence().fetchByC_C(classNameId, classPK); 133 } 134 135 /** 136 * Returns the web d a v props where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 137 * 138 * @param classNameId the class name ID 139 * @param classPK the class p k 140 * @param retrieveFromCache whether to retrieve from the finder cache 141 * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found 142 */ 143 public static WebDAVProps fetchByC_C(long classNameId, long classPK, 144 boolean retrieveFromCache) { 145 return getPersistence() 146 .fetchByC_C(classNameId, classPK, retrieveFromCache); 147 } 148 149 /** 150 * Removes the web d a v props where classNameId = ? and classPK = ? from the database. 151 * 152 * @param classNameId the class name ID 153 * @param classPK the class p k 154 * @return the web d a v props that was removed 155 */ 156 public static WebDAVProps removeByC_C(long classNameId, long classPK) 157 throws com.liferay.portal.exception.NoSuchWebDAVPropsException { 158 return getPersistence().removeByC_C(classNameId, classPK); 159 } 160 161 /** 162 * Returns the number of web d a v propses where classNameId = ? and classPK = ?. 163 * 164 * @param classNameId the class name ID 165 * @param classPK the class p k 166 * @return the number of matching web d a v propses 167 */ 168 public static int countByC_C(long classNameId, long classPK) { 169 return getPersistence().countByC_C(classNameId, classPK); 170 } 171 172 /** 173 * Caches the web d a v props in the entity cache if it is enabled. 174 * 175 * @param webDAVProps the web d a v props 176 */ 177 public static void cacheResult(WebDAVProps webDAVProps) { 178 getPersistence().cacheResult(webDAVProps); 179 } 180 181 /** 182 * Caches the web d a v propses in the entity cache if it is enabled. 183 * 184 * @param webDAVPropses the web d a v propses 185 */ 186 public static void cacheResult(List<WebDAVProps> webDAVPropses) { 187 getPersistence().cacheResult(webDAVPropses); 188 } 189 190 /** 191 * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database. 192 * 193 * @param webDavPropsId the primary key for the new web d a v props 194 * @return the new web d a v props 195 */ 196 public static WebDAVProps create(long webDavPropsId) { 197 return getPersistence().create(webDavPropsId); 198 } 199 200 /** 201 * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners. 202 * 203 * @param webDavPropsId the primary key of the web d a v props 204 * @return the web d a v props that was removed 205 * @throws NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 206 */ 207 public static WebDAVProps remove(long webDavPropsId) 208 throws com.liferay.portal.exception.NoSuchWebDAVPropsException { 209 return getPersistence().remove(webDavPropsId); 210 } 211 212 public static WebDAVProps updateImpl(WebDAVProps webDAVProps) { 213 return getPersistence().updateImpl(webDAVProps); 214 } 215 216 /** 217 * Returns the web d a v props with the primary key or throws a {@link NoSuchWebDAVPropsException} if it could not be found. 218 * 219 * @param webDavPropsId the primary key of the web d a v props 220 * @return the web d a v props 221 * @throws NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 222 */ 223 public static WebDAVProps findByPrimaryKey(long webDavPropsId) 224 throws com.liferay.portal.exception.NoSuchWebDAVPropsException { 225 return getPersistence().findByPrimaryKey(webDavPropsId); 226 } 227 228 /** 229 * Returns the web d a v props with the primary key or returns <code>null</code> if it could not be found. 230 * 231 * @param webDavPropsId the primary key of the web d a v props 232 * @return the web d a v props, or <code>null</code> if a web d a v props with the primary key could not be found 233 */ 234 public static WebDAVProps fetchByPrimaryKey(long webDavPropsId) { 235 return getPersistence().fetchByPrimaryKey(webDavPropsId); 236 } 237 238 public static java.util.Map<java.io.Serializable, WebDAVProps> fetchByPrimaryKeys( 239 java.util.Set<java.io.Serializable> primaryKeys) { 240 return getPersistence().fetchByPrimaryKeys(primaryKeys); 241 } 242 243 /** 244 * Returns all the web d a v propses. 245 * 246 * @return the web d a v propses 247 */ 248 public static List<WebDAVProps> findAll() { 249 return getPersistence().findAll(); 250 } 251 252 /** 253 * Returns a range of all the web d a v propses. 254 * 255 * <p> 256 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 257 * </p> 258 * 259 * @param start the lower bound of the range of web d a v propses 260 * @param end the upper bound of the range of web d a v propses (not inclusive) 261 * @return the range of web d a v propses 262 */ 263 public static List<WebDAVProps> findAll(int start, int end) { 264 return getPersistence().findAll(start, end); 265 } 266 267 /** 268 * Returns an ordered range of all the web d a v propses. 269 * 270 * <p> 271 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 272 * </p> 273 * 274 * @param start the lower bound of the range of web d a v propses 275 * @param end the upper bound of the range of web d a v propses (not inclusive) 276 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 277 * @return the ordered range of web d a v propses 278 */ 279 public static List<WebDAVProps> findAll(int start, int end, 280 OrderByComparator<WebDAVProps> orderByComparator) { 281 return getPersistence().findAll(start, end, orderByComparator); 282 } 283 284 /** 285 * Returns an ordered range of all the web d a v propses. 286 * 287 * <p> 288 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link WebDAVPropsModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 289 * </p> 290 * 291 * @param start the lower bound of the range of web d a v propses 292 * @param end the upper bound of the range of web d a v propses (not inclusive) 293 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 294 * @param retrieveFromCache whether to retrieve from the finder cache 295 * @return the ordered range of web d a v propses 296 */ 297 public static List<WebDAVProps> findAll(int start, int end, 298 OrderByComparator<WebDAVProps> orderByComparator, 299 boolean retrieveFromCache) { 300 return getPersistence() 301 .findAll(start, end, orderByComparator, retrieveFromCache); 302 } 303 304 /** 305 * Removes all the web d a v propses from the database. 306 */ 307 public static void removeAll() { 308 getPersistence().removeAll(); 309 } 310 311 /** 312 * Returns the number of web d a v propses. 313 * 314 * @return the number of web d a v propses 315 */ 316 public static int countAll() { 317 return getPersistence().countAll(); 318 } 319 320 public static WebDAVPropsPersistence getPersistence() { 321 if (_persistence == null) { 322 _persistence = (WebDAVPropsPersistence)PortalBeanLocatorUtil.locate(WebDAVPropsPersistence.class.getName()); 323 324 ReferenceRegistry.registerReference(WebDAVPropsUtil.class, 325 "_persistence"); 326 } 327 328 return _persistence; 329 } 330 331 private static WebDAVPropsPersistence _persistence; 332 }