001 /** 002 * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.PasswordPolicy; 020 021 /** 022 * The persistence interface for the password policy service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see PasswordPolicyPersistenceImpl 030 * @see PasswordPolicyUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface PasswordPolicyPersistence extends BasePersistence<PasswordPolicy> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link PasswordPolicyUtil} to access the password policy persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the password policies where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching password policies 046 */ 047 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid( 048 java.lang.String uuid); 049 050 /** 051 * Returns a range of all the password policies where uuid = ?. 052 * 053 * <p> 054 * 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.PasswordPolicyModelImpl}. 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. 055 * </p> 056 * 057 * @param uuid the uuid 058 * @param start the lower bound of the range of password policies 059 * @param end the upper bound of the range of password policies (not inclusive) 060 * @return the range of matching password policies 061 */ 062 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid( 063 java.lang.String uuid, int start, int end); 064 065 /** 066 * Returns an ordered range of all the password policies where uuid = ?. 067 * 068 * <p> 069 * 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.PasswordPolicyModelImpl}. 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. 070 * </p> 071 * 072 * @param uuid the uuid 073 * @param start the lower bound of the range of password policies 074 * @param end the upper bound of the range of password policies (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching password policies 077 */ 078 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid( 079 java.lang.String uuid, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 081 082 /** 083 * Returns the first password policy in the ordered set where uuid = ?. 084 * 085 * @param uuid the uuid 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching password policy 088 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 089 */ 090 public com.liferay.portal.model.PasswordPolicy findByUuid_First( 091 java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 093 throws com.liferay.portal.NoSuchPasswordPolicyException; 094 095 /** 096 * Returns the first password policy in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found 101 */ 102 public com.liferay.portal.model.PasswordPolicy fetchByUuid_First( 103 java.lang.String uuid, 104 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 105 106 /** 107 * Returns the last password policy in the ordered set where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 111 * @return the last matching password policy 112 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 113 */ 114 public com.liferay.portal.model.PasswordPolicy findByUuid_Last( 115 java.lang.String uuid, 116 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 117 throws com.liferay.portal.NoSuchPasswordPolicyException; 118 119 /** 120 * Returns the last password policy in the ordered set where uuid = ?. 121 * 122 * @param uuid the uuid 123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 124 * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found 125 */ 126 public com.liferay.portal.model.PasswordPolicy fetchByUuid_Last( 127 java.lang.String uuid, 128 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 129 130 /** 131 * Returns the password policies before and after the current password policy in the ordered set where uuid = ?. 132 * 133 * @param passwordPolicyId the primary key of the current password policy 134 * @param uuid the uuid 135 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 136 * @return the previous, current, and next password policy 137 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 138 */ 139 public com.liferay.portal.model.PasswordPolicy[] findByUuid_PrevAndNext( 140 long passwordPolicyId, java.lang.String uuid, 141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 142 throws com.liferay.portal.NoSuchPasswordPolicyException; 143 144 /** 145 * Returns all the password policies that the user has permission to view where uuid = ?. 146 * 147 * @param uuid the uuid 148 * @return the matching password policies that the user has permission to view 149 */ 150 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid( 151 java.lang.String uuid); 152 153 /** 154 * Returns a range of all the password policies that the user has permission to view where uuid = ?. 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. 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.PasswordPolicyModelImpl}. 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. 158 * </p> 159 * 160 * @param uuid the uuid 161 * @param start the lower bound of the range of password policies 162 * @param end the upper bound of the range of password policies (not inclusive) 163 * @return the range of matching password policies that the user has permission to view 164 */ 165 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid( 166 java.lang.String uuid, int start, int end); 167 168 /** 169 * Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?. 170 * 171 * <p> 172 * 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.PasswordPolicyModelImpl}. 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. 173 * </p> 174 * 175 * @param uuid the uuid 176 * @param start the lower bound of the range of password policies 177 * @param end the upper bound of the range of password policies (not inclusive) 178 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 179 * @return the ordered range of matching password policies that the user has permission to view 180 */ 181 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid( 182 java.lang.String uuid, int start, int end, 183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 184 185 /** 186 * Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ?. 187 * 188 * @param passwordPolicyId the primary key of the current password policy 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the previous, current, and next password policy 192 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 193 */ 194 public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_PrevAndNext( 195 long passwordPolicyId, java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 197 throws com.liferay.portal.NoSuchPasswordPolicyException; 198 199 /** 200 * Removes all the password policies where uuid = ? from the database. 201 * 202 * @param uuid the uuid 203 */ 204 public void removeByUuid(java.lang.String uuid); 205 206 /** 207 * Returns the number of password policies where uuid = ?. 208 * 209 * @param uuid the uuid 210 * @return the number of matching password policies 211 */ 212 public int countByUuid(java.lang.String uuid); 213 214 /** 215 * Returns the number of password policies that the user has permission to view where uuid = ?. 216 * 217 * @param uuid the uuid 218 * @return the number of matching password policies that the user has permission to view 219 */ 220 public int filterCountByUuid(java.lang.String uuid); 221 222 /** 223 * Returns all the password policies where uuid = ? and companyId = ?. 224 * 225 * @param uuid the uuid 226 * @param companyId the company ID 227 * @return the matching password policies 228 */ 229 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C( 230 java.lang.String uuid, long companyId); 231 232 /** 233 * Returns a range of all the password policies where uuid = ? and companyId = ?. 234 * 235 * <p> 236 * 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.PasswordPolicyModelImpl}. 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. 237 * </p> 238 * 239 * @param uuid the uuid 240 * @param companyId the company ID 241 * @param start the lower bound of the range of password policies 242 * @param end the upper bound of the range of password policies (not inclusive) 243 * @return the range of matching password policies 244 */ 245 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C( 246 java.lang.String uuid, long companyId, int start, int end); 247 248 /** 249 * Returns an ordered range of all the password policies where uuid = ? and companyId = ?. 250 * 251 * <p> 252 * 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.PasswordPolicyModelImpl}. 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. 253 * </p> 254 * 255 * @param uuid the uuid 256 * @param companyId the company ID 257 * @param start the lower bound of the range of password policies 258 * @param end the upper bound of the range of password policies (not inclusive) 259 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 260 * @return the ordered range of matching password policies 261 */ 262 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByUuid_C( 263 java.lang.String uuid, long companyId, int start, int end, 264 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 265 266 /** 267 * Returns the first password policy in the ordered set where uuid = ? and companyId = ?. 268 * 269 * @param uuid the uuid 270 * @param companyId the company ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the first matching password policy 273 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 274 */ 275 public com.liferay.portal.model.PasswordPolicy findByUuid_C_First( 276 java.lang.String uuid, long companyId, 277 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 278 throws com.liferay.portal.NoSuchPasswordPolicyException; 279 280 /** 281 * Returns the first password policy in the ordered set where uuid = ? and companyId = ?. 282 * 283 * @param uuid the uuid 284 * @param companyId the company ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found 287 */ 288 public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_First( 289 java.lang.String uuid, long companyId, 290 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 291 292 /** 293 * Returns the last password policy in the ordered set where uuid = ? and companyId = ?. 294 * 295 * @param uuid the uuid 296 * @param companyId the company ID 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the last matching password policy 299 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 300 */ 301 public com.liferay.portal.model.PasswordPolicy findByUuid_C_Last( 302 java.lang.String uuid, long companyId, 303 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 304 throws com.liferay.portal.NoSuchPasswordPolicyException; 305 306 /** 307 * Returns the last password policy in the ordered set where uuid = ? and companyId = ?. 308 * 309 * @param uuid the uuid 310 * @param companyId the company ID 311 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 312 * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found 313 */ 314 public com.liferay.portal.model.PasswordPolicy fetchByUuid_C_Last( 315 java.lang.String uuid, long companyId, 316 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 317 318 /** 319 * Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?. 320 * 321 * @param passwordPolicyId the primary key of the current password policy 322 * @param uuid the uuid 323 * @param companyId the company ID 324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 325 * @return the previous, current, and next password policy 326 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 327 */ 328 public com.liferay.portal.model.PasswordPolicy[] findByUuid_C_PrevAndNext( 329 long passwordPolicyId, java.lang.String uuid, long companyId, 330 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 331 throws com.liferay.portal.NoSuchPasswordPolicyException; 332 333 /** 334 * Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?. 335 * 336 * @param uuid the uuid 337 * @param companyId the company ID 338 * @return the matching password policies that the user has permission to view 339 */ 340 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C( 341 java.lang.String uuid, long companyId); 342 343 /** 344 * Returns a range of all the password policies that the user has permission to view where uuid = ? and companyId = ?. 345 * 346 * <p> 347 * 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.PasswordPolicyModelImpl}. 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. 348 * </p> 349 * 350 * @param uuid the uuid 351 * @param companyId the company ID 352 * @param start the lower bound of the range of password policies 353 * @param end the upper bound of the range of password policies (not inclusive) 354 * @return the range of matching password policies that the user has permission to view 355 */ 356 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C( 357 java.lang.String uuid, long companyId, int start, int end); 358 359 /** 360 * Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?. 361 * 362 * <p> 363 * 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.PasswordPolicyModelImpl}. 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. 364 * </p> 365 * 366 * @param uuid the uuid 367 * @param companyId the company ID 368 * @param start the lower bound of the range of password policies 369 * @param end the upper bound of the range of password policies (not inclusive) 370 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 371 * @return the ordered range of matching password policies that the user has permission to view 372 */ 373 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByUuid_C( 374 java.lang.String uuid, long companyId, int start, int end, 375 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 376 377 /** 378 * Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ? and companyId = ?. 379 * 380 * @param passwordPolicyId the primary key of the current password policy 381 * @param uuid the uuid 382 * @param companyId the company ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the previous, current, and next password policy 385 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 386 */ 387 public com.liferay.portal.model.PasswordPolicy[] filterFindByUuid_C_PrevAndNext( 388 long passwordPolicyId, java.lang.String uuid, long companyId, 389 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 390 throws com.liferay.portal.NoSuchPasswordPolicyException; 391 392 /** 393 * Removes all the password policies where uuid = ? and companyId = ? from the database. 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 */ 398 public void removeByUuid_C(java.lang.String uuid, long companyId); 399 400 /** 401 * Returns the number of password policies where uuid = ? and companyId = ?. 402 * 403 * @param uuid the uuid 404 * @param companyId the company ID 405 * @return the number of matching password policies 406 */ 407 public int countByUuid_C(java.lang.String uuid, long companyId); 408 409 /** 410 * Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?. 411 * 412 * @param uuid the uuid 413 * @param companyId the company ID 414 * @return the number of matching password policies that the user has permission to view 415 */ 416 public int filterCountByUuid_C(java.lang.String uuid, long companyId); 417 418 /** 419 * Returns all the password policies where companyId = ?. 420 * 421 * @param companyId the company ID 422 * @return the matching password policies 423 */ 424 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId( 425 long companyId); 426 427 /** 428 * Returns a range of all the password policies where companyId = ?. 429 * 430 * <p> 431 * 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.PasswordPolicyModelImpl}. 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. 432 * </p> 433 * 434 * @param companyId the company ID 435 * @param start the lower bound of the range of password policies 436 * @param end the upper bound of the range of password policies (not inclusive) 437 * @return the range of matching password policies 438 */ 439 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId( 440 long companyId, int start, int end); 441 442 /** 443 * Returns an ordered range of all the password policies where companyId = ?. 444 * 445 * <p> 446 * 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.PasswordPolicyModelImpl}. 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. 447 * </p> 448 * 449 * @param companyId the company ID 450 * @param start the lower bound of the range of password policies 451 * @param end the upper bound of the range of password policies (not inclusive) 452 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 453 * @return the ordered range of matching password policies 454 */ 455 public java.util.List<com.liferay.portal.model.PasswordPolicy> findByCompanyId( 456 long companyId, int start, int end, 457 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 458 459 /** 460 * Returns the first password policy in the ordered set where companyId = ?. 461 * 462 * @param companyId the company ID 463 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 464 * @return the first matching password policy 465 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 466 */ 467 public com.liferay.portal.model.PasswordPolicy findByCompanyId_First( 468 long companyId, 469 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 470 throws com.liferay.portal.NoSuchPasswordPolicyException; 471 472 /** 473 * Returns the first password policy in the ordered set where companyId = ?. 474 * 475 * @param companyId the company ID 476 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 477 * @return the first matching password policy, or <code>null</code> if a matching password policy could not be found 478 */ 479 public com.liferay.portal.model.PasswordPolicy fetchByCompanyId_First( 480 long companyId, 481 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 482 483 /** 484 * Returns the last password policy in the ordered set where companyId = ?. 485 * 486 * @param companyId the company ID 487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 488 * @return the last matching password policy 489 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 490 */ 491 public com.liferay.portal.model.PasswordPolicy findByCompanyId_Last( 492 long companyId, 493 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 494 throws com.liferay.portal.NoSuchPasswordPolicyException; 495 496 /** 497 * Returns the last password policy in the ordered set where companyId = ?. 498 * 499 * @param companyId the company ID 500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 501 * @return the last matching password policy, or <code>null</code> if a matching password policy could not be found 502 */ 503 public com.liferay.portal.model.PasswordPolicy fetchByCompanyId_Last( 504 long companyId, 505 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 506 507 /** 508 * Returns the password policies before and after the current password policy in the ordered set where companyId = ?. 509 * 510 * @param passwordPolicyId the primary key of the current password policy 511 * @param companyId the company ID 512 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 513 * @return the previous, current, and next password policy 514 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 515 */ 516 public com.liferay.portal.model.PasswordPolicy[] findByCompanyId_PrevAndNext( 517 long passwordPolicyId, long companyId, 518 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 519 throws com.liferay.portal.NoSuchPasswordPolicyException; 520 521 /** 522 * Returns all the password policies that the user has permission to view where companyId = ?. 523 * 524 * @param companyId the company ID 525 * @return the matching password policies that the user has permission to view 526 */ 527 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId( 528 long companyId); 529 530 /** 531 * Returns a range of all the password policies that the user has permission to view where companyId = ?. 532 * 533 * <p> 534 * 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.PasswordPolicyModelImpl}. 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. 535 * </p> 536 * 537 * @param companyId the company ID 538 * @param start the lower bound of the range of password policies 539 * @param end the upper bound of the range of password policies (not inclusive) 540 * @return the range of matching password policies that the user has permission to view 541 */ 542 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId( 543 long companyId, int start, int end); 544 545 /** 546 * Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?. 547 * 548 * <p> 549 * 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.PasswordPolicyModelImpl}. 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. 550 * </p> 551 * 552 * @param companyId the company ID 553 * @param start the lower bound of the range of password policies 554 * @param end the upper bound of the range of password policies (not inclusive) 555 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 556 * @return the ordered range of matching password policies that the user has permission to view 557 */ 558 public java.util.List<com.liferay.portal.model.PasswordPolicy> filterFindByCompanyId( 559 long companyId, int start, int end, 560 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 561 562 /** 563 * Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where companyId = ?. 564 * 565 * @param passwordPolicyId the primary key of the current password policy 566 * @param companyId the company ID 567 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 568 * @return the previous, current, and next password policy 569 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 570 */ 571 public com.liferay.portal.model.PasswordPolicy[] filterFindByCompanyId_PrevAndNext( 572 long passwordPolicyId, long companyId, 573 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator) 574 throws com.liferay.portal.NoSuchPasswordPolicyException; 575 576 /** 577 * Removes all the password policies where companyId = ? from the database. 578 * 579 * @param companyId the company ID 580 */ 581 public void removeByCompanyId(long companyId); 582 583 /** 584 * Returns the number of password policies where companyId = ?. 585 * 586 * @param companyId the company ID 587 * @return the number of matching password policies 588 */ 589 public int countByCompanyId(long companyId); 590 591 /** 592 * Returns the number of password policies that the user has permission to view where companyId = ?. 593 * 594 * @param companyId the company ID 595 * @return the number of matching password policies that the user has permission to view 596 */ 597 public int filterCountByCompanyId(long companyId); 598 599 /** 600 * Returns the password policy where companyId = ? and defaultPolicy = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found. 601 * 602 * @param companyId the company ID 603 * @param defaultPolicy the default policy 604 * @return the matching password policy 605 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 606 */ 607 public com.liferay.portal.model.PasswordPolicy findByC_DP(long companyId, 608 boolean defaultPolicy) 609 throws com.liferay.portal.NoSuchPasswordPolicyException; 610 611 /** 612 * Returns the password policy where companyId = ? and defaultPolicy = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 613 * 614 * @param companyId the company ID 615 * @param defaultPolicy the default policy 616 * @return the matching password policy, or <code>null</code> if a matching password policy could not be found 617 */ 618 public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId, 619 boolean defaultPolicy); 620 621 /** 622 * Returns the password policy where companyId = ? and defaultPolicy = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 623 * 624 * @param companyId the company ID 625 * @param defaultPolicy the default policy 626 * @param retrieveFromCache whether to use the finder cache 627 * @return the matching password policy, or <code>null</code> if a matching password policy could not be found 628 */ 629 public com.liferay.portal.model.PasswordPolicy fetchByC_DP(long companyId, 630 boolean defaultPolicy, boolean retrieveFromCache); 631 632 /** 633 * Removes the password policy where companyId = ? and defaultPolicy = ? from the database. 634 * 635 * @param companyId the company ID 636 * @param defaultPolicy the default policy 637 * @return the password policy that was removed 638 */ 639 public com.liferay.portal.model.PasswordPolicy removeByC_DP( 640 long companyId, boolean defaultPolicy) 641 throws com.liferay.portal.NoSuchPasswordPolicyException; 642 643 /** 644 * Returns the number of password policies where companyId = ? and defaultPolicy = ?. 645 * 646 * @param companyId the company ID 647 * @param defaultPolicy the default policy 648 * @return the number of matching password policies 649 */ 650 public int countByC_DP(long companyId, boolean defaultPolicy); 651 652 /** 653 * Returns the password policy where companyId = ? and name = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found. 654 * 655 * @param companyId the company ID 656 * @param name the name 657 * @return the matching password policy 658 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a matching password policy could not be found 659 */ 660 public com.liferay.portal.model.PasswordPolicy findByC_N(long companyId, 661 java.lang.String name) 662 throws com.liferay.portal.NoSuchPasswordPolicyException; 663 664 /** 665 * Returns the password policy where companyId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 666 * 667 * @param companyId the company ID 668 * @param name the name 669 * @return the matching password policy, or <code>null</code> if a matching password policy could not be found 670 */ 671 public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId, 672 java.lang.String name); 673 674 /** 675 * Returns the password policy where companyId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 676 * 677 * @param companyId the company ID 678 * @param name the name 679 * @param retrieveFromCache whether to use the finder cache 680 * @return the matching password policy, or <code>null</code> if a matching password policy could not be found 681 */ 682 public com.liferay.portal.model.PasswordPolicy fetchByC_N(long companyId, 683 java.lang.String name, boolean retrieveFromCache); 684 685 /** 686 * Removes the password policy where companyId = ? and name = ? from the database. 687 * 688 * @param companyId the company ID 689 * @param name the name 690 * @return the password policy that was removed 691 */ 692 public com.liferay.portal.model.PasswordPolicy removeByC_N(long companyId, 693 java.lang.String name) 694 throws com.liferay.portal.NoSuchPasswordPolicyException; 695 696 /** 697 * Returns the number of password policies where companyId = ? and name = ?. 698 * 699 * @param companyId the company ID 700 * @param name the name 701 * @return the number of matching password policies 702 */ 703 public int countByC_N(long companyId, java.lang.String name); 704 705 /** 706 * Caches the password policy in the entity cache if it is enabled. 707 * 708 * @param passwordPolicy the password policy 709 */ 710 public void cacheResult( 711 com.liferay.portal.model.PasswordPolicy passwordPolicy); 712 713 /** 714 * Caches the password policies in the entity cache if it is enabled. 715 * 716 * @param passwordPolicies the password policies 717 */ 718 public void cacheResult( 719 java.util.List<com.liferay.portal.model.PasswordPolicy> passwordPolicies); 720 721 /** 722 * Creates a new password policy with the primary key. Does not add the password policy to the database. 723 * 724 * @param passwordPolicyId the primary key for the new password policy 725 * @return the new password policy 726 */ 727 public com.liferay.portal.model.PasswordPolicy create(long passwordPolicyId); 728 729 /** 730 * Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners. 731 * 732 * @param passwordPolicyId the primary key of the password policy 733 * @return the password policy that was removed 734 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 735 */ 736 public com.liferay.portal.model.PasswordPolicy remove(long passwordPolicyId) 737 throws com.liferay.portal.NoSuchPasswordPolicyException; 738 739 public com.liferay.portal.model.PasswordPolicy updateImpl( 740 com.liferay.portal.model.PasswordPolicy passwordPolicy); 741 742 /** 743 * Returns the password policy with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyException} if it could not be found. 744 * 745 * @param passwordPolicyId the primary key of the password policy 746 * @return the password policy 747 * @throws com.liferay.portal.NoSuchPasswordPolicyException if a password policy with the primary key could not be found 748 */ 749 public com.liferay.portal.model.PasswordPolicy findByPrimaryKey( 750 long passwordPolicyId) 751 throws com.liferay.portal.NoSuchPasswordPolicyException; 752 753 /** 754 * Returns the password policy with the primary key or returns <code>null</code> if it could not be found. 755 * 756 * @param passwordPolicyId the primary key of the password policy 757 * @return the password policy, or <code>null</code> if a password policy with the primary key could not be found 758 */ 759 public com.liferay.portal.model.PasswordPolicy fetchByPrimaryKey( 760 long passwordPolicyId); 761 762 @Override 763 public java.util.Map<java.io.Serializable, com.liferay.portal.model.PasswordPolicy> fetchByPrimaryKeys( 764 java.util.Set<java.io.Serializable> primaryKeys); 765 766 /** 767 * Returns all the password policies. 768 * 769 * @return the password policies 770 */ 771 public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll(); 772 773 /** 774 * Returns a range of all the password policies. 775 * 776 * <p> 777 * 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.PasswordPolicyModelImpl}. 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. 778 * </p> 779 * 780 * @param start the lower bound of the range of password policies 781 * @param end the upper bound of the range of password policies (not inclusive) 782 * @return the range of password policies 783 */ 784 public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll( 785 int start, int end); 786 787 /** 788 * Returns an ordered range of all the password policies. 789 * 790 * <p> 791 * 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.PasswordPolicyModelImpl}. 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. 792 * </p> 793 * 794 * @param start the lower bound of the range of password policies 795 * @param end the upper bound of the range of password policies (not inclusive) 796 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 797 * @return the ordered range of password policies 798 */ 799 public java.util.List<com.liferay.portal.model.PasswordPolicy> findAll( 800 int start, int end, 801 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.PasswordPolicy> orderByComparator); 802 803 /** 804 * Removes all the password policies from the database. 805 */ 806 public void removeAll(); 807 808 /** 809 * Returns the number of password policies. 810 * 811 * @return the number of password policies 812 */ 813 public int countAll(); 814 }