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.model.WebDAVProps; 020 021 /** 022 * The persistence interface for the web d a v props service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see com.liferay.portal.service.persistence.impl.WebDAVPropsPersistenceImpl 030 * @see WebDAVPropsUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface WebDAVPropsPersistence extends BasePersistence<WebDAVProps> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link WebDAVPropsUtil} to access the web d a v props persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns the web d a v props where classNameId = ? and classPK = ? or throws a {@link NoSuchWebDAVPropsException} if it could not be found. 043 * 044 * @param classNameId the class name ID 045 * @param classPK the class p k 046 * @return the matching web d a v props 047 * @throws NoSuchWebDAVPropsException if a matching web d a v props could not be found 048 */ 049 public WebDAVProps findByC_C(long classNameId, long classPK) 050 throws com.liferay.portal.exception.NoSuchWebDAVPropsException; 051 052 /** 053 * 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. 054 * 055 * @param classNameId the class name ID 056 * @param classPK the class p k 057 * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found 058 */ 059 public WebDAVProps fetchByC_C(long classNameId, long classPK); 060 061 /** 062 * 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. 063 * 064 * @param classNameId the class name ID 065 * @param classPK the class p k 066 * @param retrieveFromCache whether to retrieve from the finder cache 067 * @return the matching web d a v props, or <code>null</code> if a matching web d a v props could not be found 068 */ 069 public WebDAVProps fetchByC_C(long classNameId, long classPK, 070 boolean retrieveFromCache); 071 072 /** 073 * Removes the web d a v props where classNameId = ? and classPK = ? from the database. 074 * 075 * @param classNameId the class name ID 076 * @param classPK the class p k 077 * @return the web d a v props that was removed 078 */ 079 public WebDAVProps removeByC_C(long classNameId, long classPK) 080 throws com.liferay.portal.exception.NoSuchWebDAVPropsException; 081 082 /** 083 * Returns the number of web d a v propses where classNameId = ? and classPK = ?. 084 * 085 * @param classNameId the class name ID 086 * @param classPK the class p k 087 * @return the number of matching web d a v propses 088 */ 089 public int countByC_C(long classNameId, long classPK); 090 091 /** 092 * Caches the web d a v props in the entity cache if it is enabled. 093 * 094 * @param webDAVProps the web d a v props 095 */ 096 public void cacheResult(WebDAVProps webDAVProps); 097 098 /** 099 * Caches the web d a v propses in the entity cache if it is enabled. 100 * 101 * @param webDAVPropses the web d a v propses 102 */ 103 public void cacheResult(java.util.List<WebDAVProps> webDAVPropses); 104 105 /** 106 * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database. 107 * 108 * @param webDavPropsId the primary key for the new web d a v props 109 * @return the new web d a v props 110 */ 111 public WebDAVProps create(long webDavPropsId); 112 113 /** 114 * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners. 115 * 116 * @param webDavPropsId the primary key of the web d a v props 117 * @return the web d a v props that was removed 118 * @throws NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 119 */ 120 public WebDAVProps remove(long webDavPropsId) 121 throws com.liferay.portal.exception.NoSuchWebDAVPropsException; 122 123 public WebDAVProps updateImpl(WebDAVProps webDAVProps); 124 125 /** 126 * Returns the web d a v props with the primary key or throws a {@link NoSuchWebDAVPropsException} if it could not be found. 127 * 128 * @param webDavPropsId the primary key of the web d a v props 129 * @return the web d a v props 130 * @throws NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 131 */ 132 public WebDAVProps findByPrimaryKey(long webDavPropsId) 133 throws com.liferay.portal.exception.NoSuchWebDAVPropsException; 134 135 /** 136 * Returns the web d a v props with the primary key or returns <code>null</code> if it could not be found. 137 * 138 * @param webDavPropsId the primary key of the web d a v props 139 * @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 140 */ 141 public WebDAVProps fetchByPrimaryKey(long webDavPropsId); 142 143 @Override 144 public java.util.Map<java.io.Serializable, WebDAVProps> fetchByPrimaryKeys( 145 java.util.Set<java.io.Serializable> primaryKeys); 146 147 /** 148 * Returns all the web d a v propses. 149 * 150 * @return the web d a v propses 151 */ 152 public java.util.List<WebDAVProps> findAll(); 153 154 /** 155 * Returns a range of all the web d a v propses. 156 * 157 * <p> 158 * 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. 159 * </p> 160 * 161 * @param start the lower bound of the range of web d a v propses 162 * @param end the upper bound of the range of web d a v propses (not inclusive) 163 * @return the range of web d a v propses 164 */ 165 public java.util.List<WebDAVProps> findAll(int start, int end); 166 167 /** 168 * Returns an ordered range of all the web d a v propses. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param start the lower bound of the range of web d a v propses 175 * @param end the upper bound of the range of web d a v propses (not inclusive) 176 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 177 * @return the ordered range of web d a v propses 178 */ 179 public java.util.List<WebDAVProps> findAll(int start, int end, 180 com.liferay.portal.kernel.util.OrderByComparator<WebDAVProps> orderByComparator); 181 182 /** 183 * Returns an ordered range of all the web d a v propses. 184 * 185 * <p> 186 * 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. 187 * </p> 188 * 189 * @param start the lower bound of the range of web d a v propses 190 * @param end the upper bound of the range of web d a v propses (not inclusive) 191 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 192 * @param retrieveFromCache whether to retrieve from the finder cache 193 * @return the ordered range of web d a v propses 194 */ 195 public java.util.List<WebDAVProps> findAll(int start, int end, 196 com.liferay.portal.kernel.util.OrderByComparator<WebDAVProps> orderByComparator, 197 boolean retrieveFromCache); 198 199 /** 200 * Removes all the web d a v propses from the database. 201 */ 202 public void removeAll(); 203 204 /** 205 * Returns the number of web d a v propses. 206 * 207 * @return the number of web d a v propses 208 */ 209 public int countAll(); 210 }