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