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