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.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.model.LayoutFriendlyURL; 024 import com.liferay.portal.service.ServiceContext; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the layout friendly u r l service. This utility wraps {@link LayoutFriendlyURLPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see LayoutFriendlyURLPersistence 037 * @see LayoutFriendlyURLPersistenceImpl 038 * @generated 039 */ 040 @ProviderType 041 public class LayoutFriendlyURLUtil { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 046 */ 047 048 /** 049 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 050 */ 051 public static void clearCache() { 052 getPersistence().clearCache(); 053 } 054 055 /** 056 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 057 */ 058 public static void clearCache(LayoutFriendlyURL layoutFriendlyURL) { 059 getPersistence().clearCache(layoutFriendlyURL); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 064 */ 065 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<LayoutFriendlyURL> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<LayoutFriendlyURL> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<LayoutFriendlyURL> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator<LayoutFriendlyURL> orderByComparator) { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static LayoutFriendlyURL update(LayoutFriendlyURL layoutFriendlyURL) { 100 return getPersistence().update(layoutFriendlyURL); 101 } 102 103 /** 104 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 105 */ 106 public static LayoutFriendlyURL update( 107 LayoutFriendlyURL layoutFriendlyURL, ServiceContext serviceContext) { 108 return getPersistence().update(layoutFriendlyURL, serviceContext); 109 } 110 111 /** 112 * Returns all the layout friendly u r ls where uuid = ?. 113 * 114 * @param uuid the uuid 115 * @return the matching layout friendly u r ls 116 */ 117 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid( 118 java.lang.String uuid) { 119 return getPersistence().findByUuid(uuid); 120 } 121 122 /** 123 * Returns a range of all the layout friendly u r ls where uuid = ?. 124 * 125 * <p> 126 * 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.LayoutFriendlyURLModelImpl}. 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. 127 * </p> 128 * 129 * @param uuid the uuid 130 * @param start the lower bound of the range of layout friendly u r ls 131 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 132 * @return the range of matching layout friendly u r ls 133 */ 134 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid( 135 java.lang.String uuid, int start, int end) { 136 return getPersistence().findByUuid(uuid, start, end); 137 } 138 139 /** 140 * Returns an ordered range of all the layout friendly u r ls where uuid = ?. 141 * 142 * <p> 143 * 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.LayoutFriendlyURLModelImpl}. 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. 144 * </p> 145 * 146 * @param uuid the uuid 147 * @param start the lower bound of the range of layout friendly u r ls 148 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 149 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 150 * @return the ordered range of matching layout friendly u r ls 151 */ 152 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid( 153 java.lang.String uuid, int start, int end, 154 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 155 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 156 } 157 158 /** 159 * Returns the first layout friendly u r l in the ordered set where uuid = ?. 160 * 161 * @param uuid the uuid 162 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 163 * @return the first matching layout friendly u r l 164 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 165 */ 166 public static com.liferay.portal.model.LayoutFriendlyURL findByUuid_First( 167 java.lang.String uuid, 168 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 169 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 170 return getPersistence().findByUuid_First(uuid, orderByComparator); 171 } 172 173 /** 174 * Returns the first layout friendly u r l in the ordered set where uuid = ?. 175 * 176 * @param uuid the uuid 177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 178 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 179 */ 180 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUuid_First( 181 java.lang.String uuid, 182 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 183 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 184 } 185 186 /** 187 * Returns the last layout friendly u r l in the ordered set where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the last matching layout friendly u r l 192 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 193 */ 194 public static com.liferay.portal.model.LayoutFriendlyURL findByUuid_Last( 195 java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 197 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 198 return getPersistence().findByUuid_Last(uuid, orderByComparator); 199 } 200 201 /** 202 * Returns the last layout friendly u r l in the ordered set where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 207 */ 208 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUuid_Last( 209 java.lang.String uuid, 210 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 211 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 212 } 213 214 /** 215 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where uuid = ?. 216 * 217 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 218 * @param uuid the uuid 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the previous, current, and next layout friendly u r l 221 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 222 */ 223 public static com.liferay.portal.model.LayoutFriendlyURL[] findByUuid_PrevAndNext( 224 long layoutFriendlyURLId, java.lang.String uuid, 225 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 226 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 227 return getPersistence() 228 .findByUuid_PrevAndNext(layoutFriendlyURLId, uuid, 229 orderByComparator); 230 } 231 232 /** 233 * Removes all the layout friendly u r ls where uuid = ? from the database. 234 * 235 * @param uuid the uuid 236 */ 237 public static void removeByUuid(java.lang.String uuid) { 238 getPersistence().removeByUuid(uuid); 239 } 240 241 /** 242 * Returns the number of layout friendly u r ls where uuid = ?. 243 * 244 * @param uuid the uuid 245 * @return the number of matching layout friendly u r ls 246 */ 247 public static int countByUuid(java.lang.String uuid) { 248 return getPersistence().countByUuid(uuid); 249 } 250 251 /** 252 * Returns the layout friendly u r l where uuid = ? and groupId = ? or throws a {@link com.liferay.portal.NoSuchLayoutFriendlyURLException} if it could not be found. 253 * 254 * @param uuid the uuid 255 * @param groupId the group ID 256 * @return the matching layout friendly u r l 257 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 258 */ 259 public static com.liferay.portal.model.LayoutFriendlyURL findByUUID_G( 260 java.lang.String uuid, long groupId) 261 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 262 return getPersistence().findByUUID_G(uuid, groupId); 263 } 264 265 /** 266 * Returns the layout friendly u r l where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 267 * 268 * @param uuid the uuid 269 * @param groupId the group ID 270 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 271 */ 272 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUUID_G( 273 java.lang.String uuid, long groupId) { 274 return getPersistence().fetchByUUID_G(uuid, groupId); 275 } 276 277 /** 278 * Returns the layout friendly u r l where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 279 * 280 * @param uuid the uuid 281 * @param groupId the group ID 282 * @param retrieveFromCache whether to use the finder cache 283 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 284 */ 285 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUUID_G( 286 java.lang.String uuid, long groupId, boolean retrieveFromCache) { 287 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 288 } 289 290 /** 291 * Removes the layout friendly u r l where uuid = ? and groupId = ? from the database. 292 * 293 * @param uuid the uuid 294 * @param groupId the group ID 295 * @return the layout friendly u r l that was removed 296 */ 297 public static com.liferay.portal.model.LayoutFriendlyURL removeByUUID_G( 298 java.lang.String uuid, long groupId) 299 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 300 return getPersistence().removeByUUID_G(uuid, groupId); 301 } 302 303 /** 304 * Returns the number of layout friendly u r ls where uuid = ? and groupId = ?. 305 * 306 * @param uuid the uuid 307 * @param groupId the group ID 308 * @return the number of matching layout friendly u r ls 309 */ 310 public static int countByUUID_G(java.lang.String uuid, long groupId) { 311 return getPersistence().countByUUID_G(uuid, groupId); 312 } 313 314 /** 315 * Returns all the layout friendly u r ls where uuid = ? and companyId = ?. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @return the matching layout friendly u r ls 320 */ 321 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid_C( 322 java.lang.String uuid, long companyId) { 323 return getPersistence().findByUuid_C(uuid, companyId); 324 } 325 326 /** 327 * Returns a range of all the layout friendly u r ls where uuid = ? and companyId = ?. 328 * 329 * <p> 330 * 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.LayoutFriendlyURLModelImpl}. 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. 331 * </p> 332 * 333 * @param uuid the uuid 334 * @param companyId the company ID 335 * @param start the lower bound of the range of layout friendly u r ls 336 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 337 * @return the range of matching layout friendly u r ls 338 */ 339 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid_C( 340 java.lang.String uuid, long companyId, int start, int end) { 341 return getPersistence().findByUuid_C(uuid, companyId, start, end); 342 } 343 344 /** 345 * Returns an ordered range of all the layout friendly u r ls where uuid = ? and companyId = ?. 346 * 347 * <p> 348 * 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.LayoutFriendlyURLModelImpl}. 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. 349 * </p> 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @param start the lower bound of the range of layout friendly u r ls 354 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 355 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 356 * @return the ordered range of matching layout friendly u r ls 357 */ 358 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByUuid_C( 359 java.lang.String uuid, long companyId, int start, int end, 360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 361 return getPersistence() 362 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 363 } 364 365 /** 366 * Returns the first layout friendly u r l in the ordered set where uuid = ? and companyId = ?. 367 * 368 * @param uuid the uuid 369 * @param companyId the company ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching layout friendly u r l 372 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 373 */ 374 public static com.liferay.portal.model.LayoutFriendlyURL findByUuid_C_First( 375 java.lang.String uuid, long companyId, 376 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 377 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 378 return getPersistence() 379 .findByUuid_C_First(uuid, companyId, orderByComparator); 380 } 381 382 /** 383 * Returns the first layout friendly u r l in the ordered set where uuid = ? and companyId = ?. 384 * 385 * @param uuid the uuid 386 * @param companyId the company ID 387 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 388 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 389 */ 390 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUuid_C_First( 391 java.lang.String uuid, long companyId, 392 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 393 return getPersistence() 394 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 395 } 396 397 /** 398 * Returns the last layout friendly u r l in the ordered set where uuid = ? and companyId = ?. 399 * 400 * @param uuid the uuid 401 * @param companyId the company ID 402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 403 * @return the last matching layout friendly u r l 404 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 405 */ 406 public static com.liferay.portal.model.LayoutFriendlyURL findByUuid_C_Last( 407 java.lang.String uuid, long companyId, 408 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 409 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 410 return getPersistence() 411 .findByUuid_C_Last(uuid, companyId, orderByComparator); 412 } 413 414 /** 415 * Returns the last layout friendly u r l in the ordered set where uuid = ? and companyId = ?. 416 * 417 * @param uuid the uuid 418 * @param companyId the company ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 421 */ 422 public static com.liferay.portal.model.LayoutFriendlyURL fetchByUuid_C_Last( 423 java.lang.String uuid, long companyId, 424 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 425 return getPersistence() 426 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 427 } 428 429 /** 430 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where uuid = ? and companyId = ?. 431 * 432 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 433 * @param uuid the uuid 434 * @param companyId the company ID 435 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 436 * @return the previous, current, and next layout friendly u r l 437 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 438 */ 439 public static com.liferay.portal.model.LayoutFriendlyURL[] findByUuid_C_PrevAndNext( 440 long layoutFriendlyURLId, java.lang.String uuid, long companyId, 441 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 442 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 443 return getPersistence() 444 .findByUuid_C_PrevAndNext(layoutFriendlyURLId, uuid, 445 companyId, orderByComparator); 446 } 447 448 /** 449 * Removes all the layout friendly u r ls where uuid = ? and companyId = ? from the database. 450 * 451 * @param uuid the uuid 452 * @param companyId the company ID 453 */ 454 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 455 getPersistence().removeByUuid_C(uuid, companyId); 456 } 457 458 /** 459 * Returns the number of layout friendly u r ls where uuid = ? and companyId = ?. 460 * 461 * @param uuid the uuid 462 * @param companyId the company ID 463 * @return the number of matching layout friendly u r ls 464 */ 465 public static int countByUuid_C(java.lang.String uuid, long companyId) { 466 return getPersistence().countByUuid_C(uuid, companyId); 467 } 468 469 /** 470 * Returns all the layout friendly u r ls where groupId = ?. 471 * 472 * @param groupId the group ID 473 * @return the matching layout friendly u r ls 474 */ 475 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByGroupId( 476 long groupId) { 477 return getPersistence().findByGroupId(groupId); 478 } 479 480 /** 481 * Returns a range of all the layout friendly u r ls where groupId = ?. 482 * 483 * <p> 484 * 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.LayoutFriendlyURLModelImpl}. 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. 485 * </p> 486 * 487 * @param groupId the group ID 488 * @param start the lower bound of the range of layout friendly u r ls 489 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 490 * @return the range of matching layout friendly u r ls 491 */ 492 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByGroupId( 493 long groupId, int start, int end) { 494 return getPersistence().findByGroupId(groupId, start, end); 495 } 496 497 /** 498 * Returns an ordered range of all the layout friendly u r ls where groupId = ?. 499 * 500 * <p> 501 * 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.LayoutFriendlyURLModelImpl}. 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. 502 * </p> 503 * 504 * @param groupId the group ID 505 * @param start the lower bound of the range of layout friendly u r ls 506 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 507 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 508 * @return the ordered range of matching layout friendly u r ls 509 */ 510 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByGroupId( 511 long groupId, int start, int end, 512 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 513 return getPersistence() 514 .findByGroupId(groupId, start, end, orderByComparator); 515 } 516 517 /** 518 * Returns the first layout friendly u r l in the ordered set where groupId = ?. 519 * 520 * @param groupId the group ID 521 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 522 * @return the first matching layout friendly u r l 523 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 524 */ 525 public static com.liferay.portal.model.LayoutFriendlyURL findByGroupId_First( 526 long groupId, 527 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 528 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 529 return getPersistence().findByGroupId_First(groupId, orderByComparator); 530 } 531 532 /** 533 * Returns the first layout friendly u r l in the ordered set where groupId = ?. 534 * 535 * @param groupId the group ID 536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 537 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 538 */ 539 public static com.liferay.portal.model.LayoutFriendlyURL fetchByGroupId_First( 540 long groupId, 541 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 542 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 543 } 544 545 /** 546 * Returns the last layout friendly u r l in the ordered set where groupId = ?. 547 * 548 * @param groupId the group ID 549 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 550 * @return the last matching layout friendly u r l 551 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 552 */ 553 public static com.liferay.portal.model.LayoutFriendlyURL findByGroupId_Last( 554 long groupId, 555 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 556 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 557 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 558 } 559 560 /** 561 * Returns the last layout friendly u r l in the ordered set where groupId = ?. 562 * 563 * @param groupId the group ID 564 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 565 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 566 */ 567 public static com.liferay.portal.model.LayoutFriendlyURL fetchByGroupId_Last( 568 long groupId, 569 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 570 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 571 } 572 573 /** 574 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where groupId = ?. 575 * 576 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 577 * @param groupId the group ID 578 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 579 * @return the previous, current, and next layout friendly u r l 580 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 581 */ 582 public static com.liferay.portal.model.LayoutFriendlyURL[] findByGroupId_PrevAndNext( 583 long layoutFriendlyURLId, long groupId, 584 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 585 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 586 return getPersistence() 587 .findByGroupId_PrevAndNext(layoutFriendlyURLId, groupId, 588 orderByComparator); 589 } 590 591 /** 592 * Removes all the layout friendly u r ls where groupId = ? from the database. 593 * 594 * @param groupId the group ID 595 */ 596 public static void removeByGroupId(long groupId) { 597 getPersistence().removeByGroupId(groupId); 598 } 599 600 /** 601 * Returns the number of layout friendly u r ls where groupId = ?. 602 * 603 * @param groupId the group ID 604 * @return the number of matching layout friendly u r ls 605 */ 606 public static int countByGroupId(long groupId) { 607 return getPersistence().countByGroupId(groupId); 608 } 609 610 /** 611 * Returns all the layout friendly u r ls where companyId = ?. 612 * 613 * @param companyId the company ID 614 * @return the matching layout friendly u r ls 615 */ 616 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByCompanyId( 617 long companyId) { 618 return getPersistence().findByCompanyId(companyId); 619 } 620 621 /** 622 * Returns a range of all the layout friendly u r ls where companyId = ?. 623 * 624 * <p> 625 * 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.LayoutFriendlyURLModelImpl}. 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. 626 * </p> 627 * 628 * @param companyId the company ID 629 * @param start the lower bound of the range of layout friendly u r ls 630 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 631 * @return the range of matching layout friendly u r ls 632 */ 633 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByCompanyId( 634 long companyId, int start, int end) { 635 return getPersistence().findByCompanyId(companyId, start, end); 636 } 637 638 /** 639 * Returns an ordered range of all the layout friendly u r ls where companyId = ?. 640 * 641 * <p> 642 * 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.LayoutFriendlyURLModelImpl}. 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. 643 * </p> 644 * 645 * @param companyId the company ID 646 * @param start the lower bound of the range of layout friendly u r ls 647 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 648 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 649 * @return the ordered range of matching layout friendly u r ls 650 */ 651 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByCompanyId( 652 long companyId, int start, int end, 653 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 654 return getPersistence() 655 .findByCompanyId(companyId, start, end, orderByComparator); 656 } 657 658 /** 659 * Returns the first layout friendly u r l in the ordered set where companyId = ?. 660 * 661 * @param companyId the company ID 662 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 663 * @return the first matching layout friendly u r l 664 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 665 */ 666 public static com.liferay.portal.model.LayoutFriendlyURL findByCompanyId_First( 667 long companyId, 668 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 669 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 670 return getPersistence() 671 .findByCompanyId_First(companyId, orderByComparator); 672 } 673 674 /** 675 * Returns the first layout friendly u r l in the ordered set where companyId = ?. 676 * 677 * @param companyId the company ID 678 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 679 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 680 */ 681 public static com.liferay.portal.model.LayoutFriendlyURL fetchByCompanyId_First( 682 long companyId, 683 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 684 return getPersistence() 685 .fetchByCompanyId_First(companyId, orderByComparator); 686 } 687 688 /** 689 * Returns the last layout friendly u r l in the ordered set where companyId = ?. 690 * 691 * @param companyId the company ID 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the last matching layout friendly u r l 694 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 695 */ 696 public static com.liferay.portal.model.LayoutFriendlyURL findByCompanyId_Last( 697 long companyId, 698 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 699 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 700 return getPersistence() 701 .findByCompanyId_Last(companyId, orderByComparator); 702 } 703 704 /** 705 * Returns the last layout friendly u r l in the ordered set where companyId = ?. 706 * 707 * @param companyId the company ID 708 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 709 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 710 */ 711 public static com.liferay.portal.model.LayoutFriendlyURL fetchByCompanyId_Last( 712 long companyId, 713 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 714 return getPersistence() 715 .fetchByCompanyId_Last(companyId, orderByComparator); 716 } 717 718 /** 719 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where companyId = ?. 720 * 721 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 722 * @param companyId the company ID 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the previous, current, and next layout friendly u r l 725 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 726 */ 727 public static com.liferay.portal.model.LayoutFriendlyURL[] findByCompanyId_PrevAndNext( 728 long layoutFriendlyURLId, long companyId, 729 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 730 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 731 return getPersistence() 732 .findByCompanyId_PrevAndNext(layoutFriendlyURLId, companyId, 733 orderByComparator); 734 } 735 736 /** 737 * Removes all the layout friendly u r ls where companyId = ? from the database. 738 * 739 * @param companyId the company ID 740 */ 741 public static void removeByCompanyId(long companyId) { 742 getPersistence().removeByCompanyId(companyId); 743 } 744 745 /** 746 * Returns the number of layout friendly u r ls where companyId = ?. 747 * 748 * @param companyId the company ID 749 * @return the number of matching layout friendly u r ls 750 */ 751 public static int countByCompanyId(long companyId) { 752 return getPersistence().countByCompanyId(companyId); 753 } 754 755 /** 756 * Returns all the layout friendly u r ls where plid = ?. 757 * 758 * @param plid the plid 759 * @return the matching layout friendly u r ls 760 */ 761 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByPlid( 762 long plid) { 763 return getPersistence().findByPlid(plid); 764 } 765 766 /** 767 * Returns a range of all the layout friendly u r ls where plid = ?. 768 * 769 * <p> 770 * 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.LayoutFriendlyURLModelImpl}. 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. 771 * </p> 772 * 773 * @param plid the plid 774 * @param start the lower bound of the range of layout friendly u r ls 775 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 776 * @return the range of matching layout friendly u r ls 777 */ 778 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByPlid( 779 long plid, int start, int end) { 780 return getPersistence().findByPlid(plid, start, end); 781 } 782 783 /** 784 * Returns an ordered range of all the layout friendly u r ls where plid = ?. 785 * 786 * <p> 787 * 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.LayoutFriendlyURLModelImpl}. 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. 788 * </p> 789 * 790 * @param plid the plid 791 * @param start the lower bound of the range of layout friendly u r ls 792 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 793 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 794 * @return the ordered range of matching layout friendly u r ls 795 */ 796 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByPlid( 797 long plid, int start, int end, 798 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 799 return getPersistence().findByPlid(plid, start, end, orderByComparator); 800 } 801 802 /** 803 * Returns the first layout friendly u r l in the ordered set where plid = ?. 804 * 805 * @param plid the plid 806 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 807 * @return the first matching layout friendly u r l 808 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 809 */ 810 public static com.liferay.portal.model.LayoutFriendlyURL findByPlid_First( 811 long plid, 812 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 813 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 814 return getPersistence().findByPlid_First(plid, orderByComparator); 815 } 816 817 /** 818 * Returns the first layout friendly u r l in the ordered set where plid = ?. 819 * 820 * @param plid the plid 821 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 822 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 823 */ 824 public static com.liferay.portal.model.LayoutFriendlyURL fetchByPlid_First( 825 long plid, 826 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 827 return getPersistence().fetchByPlid_First(plid, orderByComparator); 828 } 829 830 /** 831 * Returns the last layout friendly u r l in the ordered set where plid = ?. 832 * 833 * @param plid the plid 834 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 835 * @return the last matching layout friendly u r l 836 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 837 */ 838 public static com.liferay.portal.model.LayoutFriendlyURL findByPlid_Last( 839 long plid, 840 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 841 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 842 return getPersistence().findByPlid_Last(plid, orderByComparator); 843 } 844 845 /** 846 * Returns the last layout friendly u r l in the ordered set where plid = ?. 847 * 848 * @param plid the plid 849 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 850 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 851 */ 852 public static com.liferay.portal.model.LayoutFriendlyURL fetchByPlid_Last( 853 long plid, 854 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 855 return getPersistence().fetchByPlid_Last(plid, orderByComparator); 856 } 857 858 /** 859 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where plid = ?. 860 * 861 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 862 * @param plid the plid 863 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 864 * @return the previous, current, and next layout friendly u r l 865 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 866 */ 867 public static com.liferay.portal.model.LayoutFriendlyURL[] findByPlid_PrevAndNext( 868 long layoutFriendlyURLId, long plid, 869 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 870 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 871 return getPersistence() 872 .findByPlid_PrevAndNext(layoutFriendlyURLId, plid, 873 orderByComparator); 874 } 875 876 /** 877 * Removes all the layout friendly u r ls where plid = ? from the database. 878 * 879 * @param plid the plid 880 */ 881 public static void removeByPlid(long plid) { 882 getPersistence().removeByPlid(plid); 883 } 884 885 /** 886 * Returns the number of layout friendly u r ls where plid = ?. 887 * 888 * @param plid the plid 889 * @return the number of matching layout friendly u r ls 890 */ 891 public static int countByPlid(long plid) { 892 return getPersistence().countByPlid(plid); 893 } 894 895 /** 896 * Returns all the layout friendly u r ls where plid = ? and friendlyURL = ?. 897 * 898 * @param plid the plid 899 * @param friendlyURL the friendly u r l 900 * @return the matching layout friendly u r ls 901 */ 902 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByP_F( 903 long plid, java.lang.String friendlyURL) { 904 return getPersistence().findByP_F(plid, friendlyURL); 905 } 906 907 /** 908 * Returns a range of all the layout friendly u r ls where plid = ? and friendlyURL = ?. 909 * 910 * <p> 911 * 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.LayoutFriendlyURLModelImpl}. 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. 912 * </p> 913 * 914 * @param plid the plid 915 * @param friendlyURL the friendly u r l 916 * @param start the lower bound of the range of layout friendly u r ls 917 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 918 * @return the range of matching layout friendly u r ls 919 */ 920 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByP_F( 921 long plid, java.lang.String friendlyURL, int start, int end) { 922 return getPersistence().findByP_F(plid, friendlyURL, start, end); 923 } 924 925 /** 926 * Returns an ordered range of all the layout friendly u r ls where plid = ? and friendlyURL = ?. 927 * 928 * <p> 929 * 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.LayoutFriendlyURLModelImpl}. 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. 930 * </p> 931 * 932 * @param plid the plid 933 * @param friendlyURL the friendly u r l 934 * @param start the lower bound of the range of layout friendly u r ls 935 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 936 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 937 * @return the ordered range of matching layout friendly u r ls 938 */ 939 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByP_F( 940 long plid, java.lang.String friendlyURL, int start, int end, 941 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 942 return getPersistence() 943 .findByP_F(plid, friendlyURL, start, end, orderByComparator); 944 } 945 946 /** 947 * Returns the first layout friendly u r l in the ordered set where plid = ? and friendlyURL = ?. 948 * 949 * @param plid the plid 950 * @param friendlyURL the friendly u r l 951 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 952 * @return the first matching layout friendly u r l 953 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 954 */ 955 public static com.liferay.portal.model.LayoutFriendlyURL findByP_F_First( 956 long plid, java.lang.String friendlyURL, 957 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 958 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 959 return getPersistence() 960 .findByP_F_First(plid, friendlyURL, orderByComparator); 961 } 962 963 /** 964 * Returns the first layout friendly u r l in the ordered set where plid = ? and friendlyURL = ?. 965 * 966 * @param plid the plid 967 * @param friendlyURL the friendly u r l 968 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 969 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 970 */ 971 public static com.liferay.portal.model.LayoutFriendlyURL fetchByP_F_First( 972 long plid, java.lang.String friendlyURL, 973 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 974 return getPersistence() 975 .fetchByP_F_First(plid, friendlyURL, orderByComparator); 976 } 977 978 /** 979 * Returns the last layout friendly u r l in the ordered set where plid = ? and friendlyURL = ?. 980 * 981 * @param plid the plid 982 * @param friendlyURL the friendly u r l 983 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 984 * @return the last matching layout friendly u r l 985 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 986 */ 987 public static com.liferay.portal.model.LayoutFriendlyURL findByP_F_Last( 988 long plid, java.lang.String friendlyURL, 989 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 990 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 991 return getPersistence() 992 .findByP_F_Last(plid, friendlyURL, orderByComparator); 993 } 994 995 /** 996 * Returns the last layout friendly u r l in the ordered set where plid = ? and friendlyURL = ?. 997 * 998 * @param plid the plid 999 * @param friendlyURL the friendly u r l 1000 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1001 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1002 */ 1003 public static com.liferay.portal.model.LayoutFriendlyURL fetchByP_F_Last( 1004 long plid, java.lang.String friendlyURL, 1005 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 1006 return getPersistence() 1007 .fetchByP_F_Last(plid, friendlyURL, orderByComparator); 1008 } 1009 1010 /** 1011 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where plid = ? and friendlyURL = ?. 1012 * 1013 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 1014 * @param plid the plid 1015 * @param friendlyURL the friendly u r l 1016 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1017 * @return the previous, current, and next layout friendly u r l 1018 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 1019 */ 1020 public static com.liferay.portal.model.LayoutFriendlyURL[] findByP_F_PrevAndNext( 1021 long layoutFriendlyURLId, long plid, java.lang.String friendlyURL, 1022 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 1023 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1024 return getPersistence() 1025 .findByP_F_PrevAndNext(layoutFriendlyURLId, plid, 1026 friendlyURL, orderByComparator); 1027 } 1028 1029 /** 1030 * Removes all the layout friendly u r ls where plid = ? and friendlyURL = ? from the database. 1031 * 1032 * @param plid the plid 1033 * @param friendlyURL the friendly u r l 1034 */ 1035 public static void removeByP_F(long plid, java.lang.String friendlyURL) { 1036 getPersistence().removeByP_F(plid, friendlyURL); 1037 } 1038 1039 /** 1040 * Returns the number of layout friendly u r ls where plid = ? and friendlyURL = ?. 1041 * 1042 * @param plid the plid 1043 * @param friendlyURL the friendly u r l 1044 * @return the number of matching layout friendly u r ls 1045 */ 1046 public static int countByP_F(long plid, java.lang.String friendlyURL) { 1047 return getPersistence().countByP_F(plid, friendlyURL); 1048 } 1049 1050 /** 1051 * Returns the layout friendly u r l where plid = ? and languageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutFriendlyURLException} if it could not be found. 1052 * 1053 * @param plid the plid 1054 * @param languageId the language ID 1055 * @return the matching layout friendly u r l 1056 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 1057 */ 1058 public static com.liferay.portal.model.LayoutFriendlyURL findByP_L( 1059 long plid, java.lang.String languageId) 1060 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1061 return getPersistence().findByP_L(plid, languageId); 1062 } 1063 1064 /** 1065 * Returns the layout friendly u r l where plid = ? and languageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1066 * 1067 * @param plid the plid 1068 * @param languageId the language ID 1069 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1070 */ 1071 public static com.liferay.portal.model.LayoutFriendlyURL fetchByP_L( 1072 long plid, java.lang.String languageId) { 1073 return getPersistence().fetchByP_L(plid, languageId); 1074 } 1075 1076 /** 1077 * Returns the layout friendly u r l where plid = ? and languageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1078 * 1079 * @param plid the plid 1080 * @param languageId the language ID 1081 * @param retrieveFromCache whether to use the finder cache 1082 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1083 */ 1084 public static com.liferay.portal.model.LayoutFriendlyURL fetchByP_L( 1085 long plid, java.lang.String languageId, boolean retrieveFromCache) { 1086 return getPersistence().fetchByP_L(plid, languageId, retrieveFromCache); 1087 } 1088 1089 /** 1090 * Removes the layout friendly u r l where plid = ? and languageId = ? from the database. 1091 * 1092 * @param plid the plid 1093 * @param languageId the language ID 1094 * @return the layout friendly u r l that was removed 1095 */ 1096 public static com.liferay.portal.model.LayoutFriendlyURL removeByP_L( 1097 long plid, java.lang.String languageId) 1098 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1099 return getPersistence().removeByP_L(plid, languageId); 1100 } 1101 1102 /** 1103 * Returns the number of layout friendly u r ls where plid = ? and languageId = ?. 1104 * 1105 * @param plid the plid 1106 * @param languageId the language ID 1107 * @return the number of matching layout friendly u r ls 1108 */ 1109 public static int countByP_L(long plid, java.lang.String languageId) { 1110 return getPersistence().countByP_L(plid, languageId); 1111 } 1112 1113 /** 1114 * Returns all the layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ?. 1115 * 1116 * @param groupId the group ID 1117 * @param privateLayout the private layout 1118 * @param friendlyURL the friendly u r l 1119 * @return the matching layout friendly u r ls 1120 */ 1121 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByG_P_F( 1122 long groupId, boolean privateLayout, java.lang.String friendlyURL) { 1123 return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL); 1124 } 1125 1126 /** 1127 * Returns a range of all the layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ?. 1128 * 1129 * <p> 1130 * 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.LayoutFriendlyURLModelImpl}. 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. 1131 * </p> 1132 * 1133 * @param groupId the group ID 1134 * @param privateLayout the private layout 1135 * @param friendlyURL the friendly u r l 1136 * @param start the lower bound of the range of layout friendly u r ls 1137 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 1138 * @return the range of matching layout friendly u r ls 1139 */ 1140 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByG_P_F( 1141 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1142 int start, int end) { 1143 return getPersistence() 1144 .findByG_P_F(groupId, privateLayout, friendlyURL, start, end); 1145 } 1146 1147 /** 1148 * Returns an ordered range of all the layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ?. 1149 * 1150 * <p> 1151 * 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.LayoutFriendlyURLModelImpl}. 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. 1152 * </p> 1153 * 1154 * @param groupId the group ID 1155 * @param privateLayout the private layout 1156 * @param friendlyURL the friendly u r l 1157 * @param start the lower bound of the range of layout friendly u r ls 1158 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 1159 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1160 * @return the ordered range of matching layout friendly u r ls 1161 */ 1162 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findByG_P_F( 1163 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1164 int start, int end, 1165 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 1166 return getPersistence() 1167 .findByG_P_F(groupId, privateLayout, friendlyURL, start, 1168 end, orderByComparator); 1169 } 1170 1171 /** 1172 * Returns the first layout friendly u r l in the ordered set where groupId = ? and privateLayout = ? and friendlyURL = ?. 1173 * 1174 * @param groupId the group ID 1175 * @param privateLayout the private layout 1176 * @param friendlyURL the friendly u r l 1177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1178 * @return the first matching layout friendly u r l 1179 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 1180 */ 1181 public static com.liferay.portal.model.LayoutFriendlyURL findByG_P_F_First( 1182 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 1184 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1185 return getPersistence() 1186 .findByG_P_F_First(groupId, privateLayout, friendlyURL, 1187 orderByComparator); 1188 } 1189 1190 /** 1191 * Returns the first layout friendly u r l in the ordered set where groupId = ? and privateLayout = ? and friendlyURL = ?. 1192 * 1193 * @param groupId the group ID 1194 * @param privateLayout the private layout 1195 * @param friendlyURL the friendly u r l 1196 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1197 * @return the first matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1198 */ 1199 public static com.liferay.portal.model.LayoutFriendlyURL fetchByG_P_F_First( 1200 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1201 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 1202 return getPersistence() 1203 .fetchByG_P_F_First(groupId, privateLayout, friendlyURL, 1204 orderByComparator); 1205 } 1206 1207 /** 1208 * Returns the last layout friendly u r l in the ordered set where groupId = ? and privateLayout = ? and friendlyURL = ?. 1209 * 1210 * @param groupId the group ID 1211 * @param privateLayout the private layout 1212 * @param friendlyURL the friendly u r l 1213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1214 * @return the last matching layout friendly u r l 1215 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 1216 */ 1217 public static com.liferay.portal.model.LayoutFriendlyURL findByG_P_F_Last( 1218 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1219 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 1220 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1221 return getPersistence() 1222 .findByG_P_F_Last(groupId, privateLayout, friendlyURL, 1223 orderByComparator); 1224 } 1225 1226 /** 1227 * Returns the last layout friendly u r l in the ordered set where groupId = ? and privateLayout = ? and friendlyURL = ?. 1228 * 1229 * @param groupId the group ID 1230 * @param privateLayout the private layout 1231 * @param friendlyURL the friendly u r l 1232 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1233 * @return the last matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1234 */ 1235 public static com.liferay.portal.model.LayoutFriendlyURL fetchByG_P_F_Last( 1236 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1237 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 1238 return getPersistence() 1239 .fetchByG_P_F_Last(groupId, privateLayout, friendlyURL, 1240 orderByComparator); 1241 } 1242 1243 /** 1244 * Returns the layout friendly u r ls before and after the current layout friendly u r l in the ordered set where groupId = ? and privateLayout = ? and friendlyURL = ?. 1245 * 1246 * @param layoutFriendlyURLId the primary key of the current layout friendly u r l 1247 * @param groupId the group ID 1248 * @param privateLayout the private layout 1249 * @param friendlyURL the friendly u r l 1250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1251 * @return the previous, current, and next layout friendly u r l 1252 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 1253 */ 1254 public static com.liferay.portal.model.LayoutFriendlyURL[] findByG_P_F_PrevAndNext( 1255 long layoutFriendlyURLId, long groupId, boolean privateLayout, 1256 java.lang.String friendlyURL, 1257 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) 1258 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1259 return getPersistence() 1260 .findByG_P_F_PrevAndNext(layoutFriendlyURLId, groupId, 1261 privateLayout, friendlyURL, orderByComparator); 1262 } 1263 1264 /** 1265 * Removes all the layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ? from the database. 1266 * 1267 * @param groupId the group ID 1268 * @param privateLayout the private layout 1269 * @param friendlyURL the friendly u r l 1270 */ 1271 public static void removeByG_P_F(long groupId, boolean privateLayout, 1272 java.lang.String friendlyURL) { 1273 getPersistence().removeByG_P_F(groupId, privateLayout, friendlyURL); 1274 } 1275 1276 /** 1277 * Returns the number of layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ?. 1278 * 1279 * @param groupId the group ID 1280 * @param privateLayout the private layout 1281 * @param friendlyURL the friendly u r l 1282 * @return the number of matching layout friendly u r ls 1283 */ 1284 public static int countByG_P_F(long groupId, boolean privateLayout, 1285 java.lang.String friendlyURL) { 1286 return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL); 1287 } 1288 1289 /** 1290 * Returns the layout friendly u r l where groupId = ? and privateLayout = ? and friendlyURL = ? and languageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutFriendlyURLException} if it could not be found. 1291 * 1292 * @param groupId the group ID 1293 * @param privateLayout the private layout 1294 * @param friendlyURL the friendly u r l 1295 * @param languageId the language ID 1296 * @return the matching layout friendly u r l 1297 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a matching layout friendly u r l could not be found 1298 */ 1299 public static com.liferay.portal.model.LayoutFriendlyURL findByG_P_F_L( 1300 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1301 java.lang.String languageId) 1302 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1303 return getPersistence() 1304 .findByG_P_F_L(groupId, privateLayout, friendlyURL, 1305 languageId); 1306 } 1307 1308 /** 1309 * Returns the layout friendly u r l where groupId = ? and privateLayout = ? and friendlyURL = ? and languageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1310 * 1311 * @param groupId the group ID 1312 * @param privateLayout the private layout 1313 * @param friendlyURL the friendly u r l 1314 * @param languageId the language ID 1315 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1316 */ 1317 public static com.liferay.portal.model.LayoutFriendlyURL fetchByG_P_F_L( 1318 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1319 java.lang.String languageId) { 1320 return getPersistence() 1321 .fetchByG_P_F_L(groupId, privateLayout, friendlyURL, 1322 languageId); 1323 } 1324 1325 /** 1326 * Returns the layout friendly u r l where groupId = ? and privateLayout = ? and friendlyURL = ? and languageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1327 * 1328 * @param groupId the group ID 1329 * @param privateLayout the private layout 1330 * @param friendlyURL the friendly u r l 1331 * @param languageId the language ID 1332 * @param retrieveFromCache whether to use the finder cache 1333 * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found 1334 */ 1335 public static com.liferay.portal.model.LayoutFriendlyURL fetchByG_P_F_L( 1336 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1337 java.lang.String languageId, boolean retrieveFromCache) { 1338 return getPersistence() 1339 .fetchByG_P_F_L(groupId, privateLayout, friendlyURL, 1340 languageId, retrieveFromCache); 1341 } 1342 1343 /** 1344 * Removes the layout friendly u r l where groupId = ? and privateLayout = ? and friendlyURL = ? and languageId = ? from the database. 1345 * 1346 * @param groupId the group ID 1347 * @param privateLayout the private layout 1348 * @param friendlyURL the friendly u r l 1349 * @param languageId the language ID 1350 * @return the layout friendly u r l that was removed 1351 */ 1352 public static com.liferay.portal.model.LayoutFriendlyURL removeByG_P_F_L( 1353 long groupId, boolean privateLayout, java.lang.String friendlyURL, 1354 java.lang.String languageId) 1355 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1356 return getPersistence() 1357 .removeByG_P_F_L(groupId, privateLayout, friendlyURL, 1358 languageId); 1359 } 1360 1361 /** 1362 * Returns the number of layout friendly u r ls where groupId = ? and privateLayout = ? and friendlyURL = ? and languageId = ?. 1363 * 1364 * @param groupId the group ID 1365 * @param privateLayout the private layout 1366 * @param friendlyURL the friendly u r l 1367 * @param languageId the language ID 1368 * @return the number of matching layout friendly u r ls 1369 */ 1370 public static int countByG_P_F_L(long groupId, boolean privateLayout, 1371 java.lang.String friendlyURL, java.lang.String languageId) { 1372 return getPersistence() 1373 .countByG_P_F_L(groupId, privateLayout, friendlyURL, 1374 languageId); 1375 } 1376 1377 /** 1378 * Caches the layout friendly u r l in the entity cache if it is enabled. 1379 * 1380 * @param layoutFriendlyURL the layout friendly u r l 1381 */ 1382 public static void cacheResult( 1383 com.liferay.portal.model.LayoutFriendlyURL layoutFriendlyURL) { 1384 getPersistence().cacheResult(layoutFriendlyURL); 1385 } 1386 1387 /** 1388 * Caches the layout friendly u r ls in the entity cache if it is enabled. 1389 * 1390 * @param layoutFriendlyURLs the layout friendly u r ls 1391 */ 1392 public static void cacheResult( 1393 java.util.List<com.liferay.portal.model.LayoutFriendlyURL> layoutFriendlyURLs) { 1394 getPersistence().cacheResult(layoutFriendlyURLs); 1395 } 1396 1397 /** 1398 * Creates a new layout friendly u r l with the primary key. Does not add the layout friendly u r l to the database. 1399 * 1400 * @param layoutFriendlyURLId the primary key for the new layout friendly u r l 1401 * @return the new layout friendly u r l 1402 */ 1403 public static com.liferay.portal.model.LayoutFriendlyURL create( 1404 long layoutFriendlyURLId) { 1405 return getPersistence().create(layoutFriendlyURLId); 1406 } 1407 1408 /** 1409 * Removes the layout friendly u r l with the primary key from the database. Also notifies the appropriate model listeners. 1410 * 1411 * @param layoutFriendlyURLId the primary key of the layout friendly u r l 1412 * @return the layout friendly u r l that was removed 1413 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 1414 */ 1415 public static com.liferay.portal.model.LayoutFriendlyURL remove( 1416 long layoutFriendlyURLId) 1417 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1418 return getPersistence().remove(layoutFriendlyURLId); 1419 } 1420 1421 public static com.liferay.portal.model.LayoutFriendlyURL updateImpl( 1422 com.liferay.portal.model.LayoutFriendlyURL layoutFriendlyURL) { 1423 return getPersistence().updateImpl(layoutFriendlyURL); 1424 } 1425 1426 /** 1427 * Returns the layout friendly u r l with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutFriendlyURLException} if it could not be found. 1428 * 1429 * @param layoutFriendlyURLId the primary key of the layout friendly u r l 1430 * @return the layout friendly u r l 1431 * @throws com.liferay.portal.NoSuchLayoutFriendlyURLException if a layout friendly u r l with the primary key could not be found 1432 */ 1433 public static com.liferay.portal.model.LayoutFriendlyURL findByPrimaryKey( 1434 long layoutFriendlyURLId) 1435 throws com.liferay.portal.NoSuchLayoutFriendlyURLException { 1436 return getPersistence().findByPrimaryKey(layoutFriendlyURLId); 1437 } 1438 1439 /** 1440 * Returns the layout friendly u r l with the primary key or returns <code>null</code> if it could not be found. 1441 * 1442 * @param layoutFriendlyURLId the primary key of the layout friendly u r l 1443 * @return the layout friendly u r l, or <code>null</code> if a layout friendly u r l with the primary key could not be found 1444 */ 1445 public static com.liferay.portal.model.LayoutFriendlyURL fetchByPrimaryKey( 1446 long layoutFriendlyURLId) { 1447 return getPersistence().fetchByPrimaryKey(layoutFriendlyURLId); 1448 } 1449 1450 public static java.util.Map<java.io.Serializable, com.liferay.portal.model.LayoutFriendlyURL> fetchByPrimaryKeys( 1451 java.util.Set<java.io.Serializable> primaryKeys) { 1452 return getPersistence().fetchByPrimaryKeys(primaryKeys); 1453 } 1454 1455 /** 1456 * Returns all the layout friendly u r ls. 1457 * 1458 * @return the layout friendly u r ls 1459 */ 1460 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findAll() { 1461 return getPersistence().findAll(); 1462 } 1463 1464 /** 1465 * Returns a range of all the layout friendly u r ls. 1466 * 1467 * <p> 1468 * 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.LayoutFriendlyURLModelImpl}. 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. 1469 * </p> 1470 * 1471 * @param start the lower bound of the range of layout friendly u r ls 1472 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 1473 * @return the range of layout friendly u r ls 1474 */ 1475 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findAll( 1476 int start, int end) { 1477 return getPersistence().findAll(start, end); 1478 } 1479 1480 /** 1481 * Returns an ordered range of all the layout friendly u r ls. 1482 * 1483 * <p> 1484 * 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.LayoutFriendlyURLModelImpl}. 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. 1485 * </p> 1486 * 1487 * @param start the lower bound of the range of layout friendly u r ls 1488 * @param end the upper bound of the range of layout friendly u r ls (not inclusive) 1489 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1490 * @return the ordered range of layout friendly u r ls 1491 */ 1492 public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> findAll( 1493 int start, int end, 1494 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) { 1495 return getPersistence().findAll(start, end, orderByComparator); 1496 } 1497 1498 /** 1499 * Removes all the layout friendly u r ls from the database. 1500 */ 1501 public static void removeAll() { 1502 getPersistence().removeAll(); 1503 } 1504 1505 /** 1506 * Returns the number of layout friendly u r ls. 1507 * 1508 * @return the number of layout friendly u r ls 1509 */ 1510 public static int countAll() { 1511 return getPersistence().countAll(); 1512 } 1513 1514 public static LayoutFriendlyURLPersistence getPersistence() { 1515 if (_persistence == null) { 1516 _persistence = (LayoutFriendlyURLPersistence)PortalBeanLocatorUtil.locate(LayoutFriendlyURLPersistence.class.getName()); 1517 1518 ReferenceRegistry.registerReference(LayoutFriendlyURLUtil.class, 1519 "_persistence"); 1520 } 1521 1522 return _persistence; 1523 } 1524 1525 /** 1526 * @deprecated As of 6.2.0 1527 */ 1528 @Deprecated 1529 public void setPersistence(LayoutFriendlyURLPersistence persistence) { 1530 } 1531 1532 private static LayoutFriendlyURLPersistence _persistence; 1533 }