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.PasswordPolicyRel; 018 019 /** 020 * The persistence interface for the password policy rel 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 PasswordPolicyRelPersistenceImpl 028 * @see PasswordPolicyRelUtil 029 * @generated 030 */ 031 public interface PasswordPolicyRelPersistence extends BasePersistence<PasswordPolicyRel> { 032 /** 033 * Caches the password policy rel in the entity cache if it is enabled. 034 * 035 * @param passwordPolicyRel the password policy rel to cache 036 */ 037 public void cacheResult( 038 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel); 039 040 /** 041 * Caches the password policy rels in the entity cache if it is enabled. 042 * 043 * @param passwordPolicyRels the password policy rels to cache 044 */ 045 public void cacheResult( 046 java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels); 047 048 /** 049 * Creates a new password policy rel with the primary key. 050 * 051 * @param passwordPolicyRelId the primary key for the new password policy rel 052 * @return the new password policy rel 053 */ 054 public com.liferay.portal.model.PasswordPolicyRel create( 055 long passwordPolicyRelId); 056 057 /** 058 * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param passwordPolicyRelId the primary key of the password policy rel to remove 061 * @return the password policy rel that was removed 062 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public com.liferay.portal.model.PasswordPolicyRel remove( 066 long passwordPolicyRelId) 067 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 068 com.liferay.portal.kernel.exception.SystemException; 069 070 public com.liferay.portal.model.PasswordPolicyRel updateImpl( 071 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 077 * 078 * @param passwordPolicyRelId the primary key of the password policy rel to find 079 * @return the password policy rel 080 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey( 084 long passwordPolicyRelId) 085 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Finds the password policy rel with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param passwordPolicyRelId the primary key of the password policy rel to find 092 * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey( 096 long passwordPolicyRelId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the password policy rels where passwordPolicyId = ?. 101 * 102 * @param passwordPolicyId the password policy id to search with 103 * @return the matching password policy rels 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 107 long passwordPolicyId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the password policy rels where passwordPolicyId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param passwordPolicyId the password policy id to search with 118 * @param start the lower bound of the range of password policy rels to return 119 * @param end the upper bound of the range of password policy rels to return (not inclusive) 120 * @return the range of matching password policy rels 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 124 long passwordPolicyId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the password policy rels where passwordPolicyId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param passwordPolicyId the password policy id to search with 135 * @param start the lower bound of the range of password policy rels to return 136 * @param end the upper bound of the range of password policy rels to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching password policy rels 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 142 long passwordPolicyId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first password policy rel in the ordered set where passwordPolicyId = ?. 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 passwordPolicyId the password policy id to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching password policy rel 156 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First( 160 long passwordPolicyId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Finds the last password policy rel in the ordered set where passwordPolicyId = ?. 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 passwordPolicyId the password policy id to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching password policy rel 175 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last( 179 long passwordPolicyId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 182 com.liferay.portal.kernel.exception.SystemException; 183 184 /** 185 * Finds the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param passwordPolicyRelId the primary key of the current password policy rel 192 * @param passwordPolicyId the password policy id to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next password policy rel 195 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( 199 long passwordPolicyRelId, long passwordPolicyId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 202 com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Finds the password policy rel where classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 206 * 207 * @param classNameId the class name id to search with 208 * @param classPK the class p k to search with 209 * @return the matching password policy rel 210 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 public com.liferay.portal.model.PasswordPolicyRel findByC_C( 214 long classNameId, long classPK) 215 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 216 com.liferay.portal.kernel.exception.SystemException; 217 218 /** 219 * Finds the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 220 * 221 * @param classNameId the class name id to search with 222 * @param classPK the class p k to search with 223 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 224 * @throws SystemException if a system exception occurred 225 */ 226 public com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 227 long classNameId, long classPK) 228 throws com.liferay.portal.kernel.exception.SystemException; 229 230 /** 231 * Finds the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 232 * 233 * @param classNameId the class name id to search with 234 * @param classPK the class p k to search with 235 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 236 * @throws SystemException if a system exception occurred 237 */ 238 public com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 239 long classNameId, long classPK, boolean retrieveFromCache) 240 throws com.liferay.portal.kernel.exception.SystemException; 241 242 /** 243 * Finds the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 244 * 245 * @param passwordPolicyId the password policy id to search with 246 * @param classNameId the class name id to search with 247 * @param classPK the class p k to search with 248 * @return the matching password policy rel 249 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 250 * @throws SystemException if a system exception occurred 251 */ 252 public com.liferay.portal.model.PasswordPolicyRel findByP_C_C( 253 long passwordPolicyId, long classNameId, long classPK) 254 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 255 com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Finds the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 259 * 260 * @param passwordPolicyId the password policy id to search with 261 * @param classNameId the class name id to search with 262 * @param classPK the class p k to search with 263 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 264 * @throws SystemException if a system exception occurred 265 */ 266 public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 267 long passwordPolicyId, long classNameId, long classPK) 268 throws com.liferay.portal.kernel.exception.SystemException; 269 270 /** 271 * Finds the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 272 * 273 * @param passwordPolicyId the password policy id to search with 274 * @param classNameId the class name id to search with 275 * @param classPK the class p k to search with 276 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 277 * @throws SystemException if a system exception occurred 278 */ 279 public com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 280 long passwordPolicyId, long classNameId, long classPK, 281 boolean retrieveFromCache) 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Finds all the password policy rels. 286 * 287 * @return the password policy rels 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Finds a range of all the password policy rels. 295 * 296 * <p> 297 * 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. 298 * </p> 299 * 300 * @param start the lower bound of the range of password policy rels to return 301 * @param end the upper bound of the range of password policy rels to return (not inclusive) 302 * @return the range of password policy rels 303 * @throws SystemException if a system exception occurred 304 */ 305 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 306 int start, int end) 307 throws com.liferay.portal.kernel.exception.SystemException; 308 309 /** 310 * Finds an ordered range of all the password policy rels. 311 * 312 * <p> 313 * 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. 314 * </p> 315 * 316 * @param start the lower bound of the range of password policy rels to return 317 * @param end the upper bound of the range of password policy rels to return (not inclusive) 318 * @param orderByComparator the comparator to order the results by 319 * @return the ordered range of password policy rels 320 * @throws SystemException if a system exception occurred 321 */ 322 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 323 int start, int end, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Removes all the password policy rels where passwordPolicyId = ? from the database. 329 * 330 * @param passwordPolicyId the password policy id to search with 331 * @throws SystemException if a system exception occurred 332 */ 333 public void removeByPasswordPolicyId(long passwordPolicyId) 334 throws com.liferay.portal.kernel.exception.SystemException; 335 336 /** 337 * Removes the password policy rel where classNameId = ? and classPK = ? from the database. 338 * 339 * @param classNameId the class name id to search with 340 * @param classPK the class p k to search with 341 * @throws SystemException if a system exception occurred 342 */ 343 public void removeByC_C(long classNameId, long classPK) 344 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 345 com.liferay.portal.kernel.exception.SystemException; 346 347 /** 348 * Removes the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? from the database. 349 * 350 * @param passwordPolicyId the password policy id to search with 351 * @param classNameId the class name id to search with 352 * @param classPK the class p k to search with 353 * @throws SystemException if a system exception occurred 354 */ 355 public void removeByP_C_C(long passwordPolicyId, long classNameId, 356 long classPK) 357 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 358 com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Removes all the password policy rels from the database. 362 * 363 * @throws SystemException if a system exception occurred 364 */ 365 public void removeAll() 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Counts all the password policy rels where passwordPolicyId = ?. 370 * 371 * @param passwordPolicyId the password policy id to search with 372 * @return the number of matching password policy rels 373 * @throws SystemException if a system exception occurred 374 */ 375 public int countByPasswordPolicyId(long passwordPolicyId) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Counts all the password policy rels where classNameId = ? and classPK = ?. 380 * 381 * @param classNameId the class name id to search with 382 * @param classPK the class p k to search with 383 * @return the number of matching password policy rels 384 * @throws SystemException if a system exception occurred 385 */ 386 public int countByC_C(long classNameId, long classPK) 387 throws com.liferay.portal.kernel.exception.SystemException; 388 389 /** 390 * Counts all the password policy rels where passwordPolicyId = ? and classNameId = ? and classPK = ?. 391 * 392 * @param passwordPolicyId the password policy id to search with 393 * @param classNameId the class name id to search with 394 * @param classPK the class p k to search with 395 * @return the number of matching password policy rels 396 * @throws SystemException if a system exception occurred 397 */ 398 public int countByP_C_C(long passwordPolicyId, long classNameId, 399 long classPK) 400 throws com.liferay.portal.kernel.exception.SystemException; 401 402 /** 403 * Counts all the password policy rels. 404 * 405 * @return the number of password policy rels 406 * @throws SystemException if a system exception occurred 407 */ 408 public int countAll() 409 throws com.liferay.portal.kernel.exception.SystemException; 410 }