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 * Returns all the password policy rels where passwordPolicyId = ?. 040 * 041 * @param passwordPolicyId the password policy ID 042 * @return the matching password policy rels 043 * @throws SystemException if a system exception occurred 044 */ 045 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 046 long passwordPolicyId) 047 throws com.liferay.portal.kernel.exception.SystemException; 048 049 /** 050 * Returns a range of all the password policy rels where passwordPolicyId = ?. 051 * 052 * <p> 053 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 054 * </p> 055 * 056 * @param passwordPolicyId the password policy ID 057 * @param start the lower bound of the range of password policy rels 058 * @param end the upper bound of the range of password policy rels (not inclusive) 059 * @return the range of matching password policy rels 060 * @throws SystemException if a system exception occurred 061 */ 062 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 063 long passwordPolicyId, int start, int end) 064 throws com.liferay.portal.kernel.exception.SystemException; 065 066 /** 067 * Returns an ordered range of all the password policy rels where passwordPolicyId = ?. 068 * 069 * <p> 070 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param passwordPolicyId the password policy ID 074 * @param start the lower bound of the range of password policy rels 075 * @param end the upper bound of the range of password policy rels (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching password policy rels 078 * @throws SystemException if a system exception occurred 079 */ 080 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 081 long passwordPolicyId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 083 throws com.liferay.portal.kernel.exception.SystemException; 084 085 /** 086 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 087 * 088 * @param passwordPolicyId the password policy ID 089 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 090 * @return the first matching password policy rel 091 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 092 * @throws SystemException if a system exception occurred 093 */ 094 public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First( 095 long passwordPolicyId, 096 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 097 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 098 com.liferay.portal.kernel.exception.SystemException; 099 100 /** 101 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 102 * 103 * @param passwordPolicyId the password policy ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 106 * @throws SystemException if a system exception occurred 107 */ 108 public com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_First( 109 long passwordPolicyId, 110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 111 throws com.liferay.portal.kernel.exception.SystemException; 112 113 /** 114 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 115 * 116 * @param passwordPolicyId the password policy ID 117 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 118 * @return the last matching password policy rel 119 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 120 * @throws SystemException if a system exception occurred 121 */ 122 public com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last( 123 long passwordPolicyId, 124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 125 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 126 com.liferay.portal.kernel.exception.SystemException; 127 128 /** 129 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 130 * 131 * @param passwordPolicyId the password policy ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the last matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_Last( 137 long passwordPolicyId, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException; 140 141 /** 142 * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. 143 * 144 * @param passwordPolicyRelId the primary key of the current password policy rel 145 * @param passwordPolicyId the password policy ID 146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 147 * @return the previous, current, and next password policy rel 148 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 149 * @throws SystemException if a system exception occurred 150 */ 151 public com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( 152 long passwordPolicyRelId, long passwordPolicyId, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 155 com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Removes all the password policy rels where passwordPolicyId = ? from the database. 159 * 160 * @param passwordPolicyId the password policy ID 161 * @throws SystemException if a system exception occurred 162 */ 163 public void removeByPasswordPolicyId(long passwordPolicyId) 164 throws com.liferay.portal.kernel.exception.SystemException; 165 166 /** 167 * Returns the number of password policy rels where passwordPolicyId = ?. 168 * 169 * @param passwordPolicyId the password policy ID 170 * @return the number of matching password policy rels 171 * @throws SystemException if a system exception occurred 172 */ 173 public int countByPasswordPolicyId(long passwordPolicyId) 174 throws com.liferay.portal.kernel.exception.SystemException; 175 176 /** 177 * Returns the password policy rel where classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 178 * 179 * @param classNameId the class name ID 180 * @param classPK the class p k 181 * @return the 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 findByC_C( 186 long classNameId, long classPK) 187 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 188 com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 192 * 193 * @param classNameId the class name ID 194 * @param classPK the class p k 195 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 199 long classNameId, long classPK) 200 throws com.liferay.portal.kernel.exception.SystemException; 201 202 /** 203 * 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. 204 * 205 * @param classNameId the class name ID 206 * @param classPK the class p k 207 * @param retrieveFromCache whether to use the finder cache 208 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 212 long classNameId, long classPK, boolean retrieveFromCache) 213 throws com.liferay.portal.kernel.exception.SystemException; 214 215 /** 216 * Removes the password policy rel where classNameId = ? and classPK = ? from the database. 217 * 218 * @param classNameId the class name ID 219 * @param classPK the class p k 220 * @return the password policy rel that was removed 221 * @throws SystemException if a system exception occurred 222 */ 223 public com.liferay.portal.model.PasswordPolicyRel removeByC_C( 224 long classNameId, long classPK) 225 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 226 com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns the number of password policy rels where classNameId = ? and classPK = ?. 230 * 231 * @param classNameId the class name ID 232 * @param classPK the class p k 233 * @return the number of matching password policy rels 234 * @throws SystemException if a system exception occurred 235 */ 236 public int countByC_C(long classNameId, long classPK) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Caches the password policy rel in the entity cache if it is enabled. 241 * 242 * @param passwordPolicyRel the password policy rel 243 */ 244 public void cacheResult( 245 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel); 246 247 /** 248 * Caches the password policy rels in the entity cache if it is enabled. 249 * 250 * @param passwordPolicyRels the password policy rels 251 */ 252 public void cacheResult( 253 java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels); 254 255 /** 256 * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. 257 * 258 * @param passwordPolicyRelId the primary key for the new password policy rel 259 * @return the new password policy rel 260 */ 261 public com.liferay.portal.model.PasswordPolicyRel create( 262 long passwordPolicyRelId); 263 264 /** 265 * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 266 * 267 * @param passwordPolicyRelId the primary key of the password policy rel 268 * @return the password policy rel that was removed 269 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public com.liferay.portal.model.PasswordPolicyRel remove( 273 long passwordPolicyRelId) 274 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 275 com.liferay.portal.kernel.exception.SystemException; 276 277 public com.liferay.portal.model.PasswordPolicyRel updateImpl( 278 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) 279 throws com.liferay.portal.kernel.exception.SystemException; 280 281 /** 282 * Returns the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 283 * 284 * @param passwordPolicyRelId the primary key of the password policy rel 285 * @return the password policy rel 286 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey( 290 long passwordPolicyRelId) 291 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 292 com.liferay.portal.kernel.exception.SystemException; 293 294 /** 295 * Returns the password policy rel with the primary key or returns <code>null</code> if it could not be found. 296 * 297 * @param passwordPolicyRelId the primary key of the password policy rel 298 * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey( 302 long passwordPolicyRelId) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns all the password policy rels. 307 * 308 * @return the password policy rels 309 * @throws SystemException if a system exception occurred 310 */ 311 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns a range of all the password policy rels. 316 * 317 * <p> 318 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 319 * </p> 320 * 321 * @param start the lower bound of the range of password policy rels 322 * @param end the upper bound of the range of password policy rels (not inclusive) 323 * @return the range of password policy rels 324 * @throws SystemException if a system exception occurred 325 */ 326 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 327 int start, int end) 328 throws com.liferay.portal.kernel.exception.SystemException; 329 330 /** 331 * Returns an ordered range of all the password policy rels. 332 * 333 * <p> 334 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 335 * </p> 336 * 337 * @param start the lower bound of the range of password policy rels 338 * @param end the upper bound of the range of password policy rels (not inclusive) 339 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 340 * @return the ordered range of password policy rels 341 * @throws SystemException if a system exception occurred 342 */ 343 public java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 344 int start, int end, 345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 346 throws com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Removes all the password policy rels from the database. 350 * 351 * @throws SystemException if a system exception occurred 352 */ 353 public void removeAll() 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns the number of password policy rels. 358 * 359 * @return the number of password policy rels 360 * @throws SystemException if a system exception occurred 361 */ 362 public int countAll() 363 throws com.liferay.portal.kernel.exception.SystemException; 364 }