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