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