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