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 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 com.liferay.portal.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 com.liferay.portal.NoSuchWebDAVPropsException if a matching web d a v props could not be found 048 */ 049 public com.liferay.portal.model.WebDAVProps findByC_C(long classNameId, 050 long classPK) throws com.liferay.portal.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 com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId, 060 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 use 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 com.liferay.portal.model.WebDAVProps fetchByC_C(long classNameId, 071 long classPK, 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 com.liferay.portal.model.WebDAVProps removeByC_C(long classNameId, 081 long classPK) throws com.liferay.portal.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(com.liferay.portal.model.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( 105 java.util.List<com.liferay.portal.model.WebDAVProps> webDAVPropses); 106 107 /** 108 * Creates a new web d a v props with the primary key. Does not add the web d a v props to the database. 109 * 110 * @param webDavPropsId the primary key for the new web d a v props 111 * @return the new web d a v props 112 */ 113 public com.liferay.portal.model.WebDAVProps create(long webDavPropsId); 114 115 /** 116 * Removes the web d a v props with the primary key from the database. Also notifies the appropriate model listeners. 117 * 118 * @param webDavPropsId the primary key of the web d a v props 119 * @return the web d a v props that was removed 120 * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 121 */ 122 public com.liferay.portal.model.WebDAVProps remove(long webDavPropsId) 123 throws com.liferay.portal.NoSuchWebDAVPropsException; 124 125 public com.liferay.portal.model.WebDAVProps updateImpl( 126 com.liferay.portal.model.WebDAVProps webDAVProps); 127 128 /** 129 * Returns the web d a v props with the primary key or throws a {@link com.liferay.portal.NoSuchWebDAVPropsException} if it could not be found. 130 * 131 * @param webDavPropsId the primary key of the web d a v props 132 * @return the web d a v props 133 * @throws com.liferay.portal.NoSuchWebDAVPropsException if a web d a v props with the primary key could not be found 134 */ 135 public com.liferay.portal.model.WebDAVProps findByPrimaryKey( 136 long webDavPropsId) 137 throws com.liferay.portal.NoSuchWebDAVPropsException; 138 139 /** 140 * Returns the web d a v props with the primary key or returns <code>null</code> if it could not be found. 141 * 142 * @param webDavPropsId the primary key of the web d a v props 143 * @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 144 */ 145 public com.liferay.portal.model.WebDAVProps fetchByPrimaryKey( 146 long webDavPropsId); 147 148 @Override 149 public java.util.Map<java.io.Serializable, com.liferay.portal.model.WebDAVProps> fetchByPrimaryKeys( 150 java.util.Set<java.io.Serializable> primaryKeys); 151 152 /** 153 * Returns all the web d a v propses. 154 * 155 * @return the web d a v propses 156 */ 157 public java.util.List<com.liferay.portal.model.WebDAVProps> findAll(); 158 159 /** 160 * Returns a range of all the web d a v propses. 161 * 162 * <p> 163 * 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 164 * </p> 165 * 166 * @param start the lower bound of the range of web d a v propses 167 * @param end the upper bound of the range of web d a v propses (not inclusive) 168 * @return the range of web d a v propses 169 */ 170 public java.util.List<com.liferay.portal.model.WebDAVProps> findAll( 171 int start, int end); 172 173 /** 174 * Returns an ordered range of all the web d a v propses. 175 * 176 * <p> 177 * 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.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. 178 * </p> 179 * 180 * @param start the lower bound of the range of web d a v propses 181 * @param end the upper bound of the range of web d a v propses (not inclusive) 182 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 183 * @return the ordered range of web d a v propses 184 */ 185 public java.util.List<com.liferay.portal.model.WebDAVProps> findAll( 186 int start, int end, 187 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.WebDAVProps> orderByComparator); 188 189 /** 190 * Removes all the web d a v propses from the database. 191 */ 192 public void removeAll(); 193 194 /** 195 * Returns the number of web d a v propses. 196 * 197 * @return the number of web d a v propses 198 */ 199 public int countAll(); 200 }