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