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.LayoutSetPrototype; 024 import com.liferay.portal.service.ServiceContext; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the layout set prototype service. This utility wraps {@link LayoutSetPrototypePersistenceImpl} 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 LayoutSetPrototypePersistence 037 * @see LayoutSetPrototypePersistenceImpl 038 * @generated 039 */ 040 @ProviderType 041 public class LayoutSetPrototypeUtil { 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(LayoutSetPrototype layoutSetPrototype) { 059 getPersistence().clearCache(layoutSetPrototype); 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<LayoutSetPrototype> 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<LayoutSetPrototype> 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<LayoutSetPrototype> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator<LayoutSetPrototype> 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 LayoutSetPrototype update( 100 LayoutSetPrototype layoutSetPrototype) { 101 return getPersistence().update(layoutSetPrototype); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static LayoutSetPrototype update( 108 LayoutSetPrototype layoutSetPrototype, ServiceContext serviceContext) { 109 return getPersistence().update(layoutSetPrototype, serviceContext); 110 } 111 112 /** 113 * Returns all the layout set prototypes where uuid = ?. 114 * 115 * @param uuid the uuid 116 * @return the matching layout set prototypes 117 */ 118 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 119 java.lang.String uuid) { 120 return getPersistence().findByUuid(uuid); 121 } 122 123 /** 124 * Returns a range of all the layout set prototypes where uuid = ?. 125 * 126 * <p> 127 * 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.LayoutSetPrototypeModelImpl}. 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. 128 * </p> 129 * 130 * @param uuid the uuid 131 * @param start the lower bound of the range of layout set prototypes 132 * @param end the upper bound of the range of layout set prototypes (not inclusive) 133 * @return the range of matching layout set prototypes 134 */ 135 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 136 java.lang.String uuid, int start, int end) { 137 return getPersistence().findByUuid(uuid, start, end); 138 } 139 140 /** 141 * Returns an ordered range of all the layout set prototypes where uuid = ?. 142 * 143 * <p> 144 * 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.LayoutSetPrototypeModelImpl}. 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. 145 * </p> 146 * 147 * @param uuid the uuid 148 * @param start the lower bound of the range of layout set prototypes 149 * @param end the upper bound of the range of layout set prototypes (not inclusive) 150 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 151 * @return the ordered range of matching layout set prototypes 152 */ 153 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid( 154 java.lang.String uuid, int start, int end, 155 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 156 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 157 } 158 159 /** 160 * Returns the first layout set prototype in the ordered set where uuid = ?. 161 * 162 * @param uuid the uuid 163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 164 * @return the first matching layout set prototype 165 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 166 */ 167 public static com.liferay.portal.model.LayoutSetPrototype findByUuid_First( 168 java.lang.String uuid, 169 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 170 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 171 return getPersistence().findByUuid_First(uuid, orderByComparator); 172 } 173 174 /** 175 * Returns the first layout set prototype in the ordered set where uuid = ?. 176 * 177 * @param uuid the uuid 178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 179 * @return the first matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 180 */ 181 public static com.liferay.portal.model.LayoutSetPrototype fetchByUuid_First( 182 java.lang.String uuid, 183 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 184 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 185 } 186 187 /** 188 * Returns the last layout set prototype in the ordered set where uuid = ?. 189 * 190 * @param uuid the uuid 191 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 192 * @return the last matching layout set prototype 193 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 194 */ 195 public static com.liferay.portal.model.LayoutSetPrototype findByUuid_Last( 196 java.lang.String uuid, 197 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 198 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 199 return getPersistence().findByUuid_Last(uuid, orderByComparator); 200 } 201 202 /** 203 * Returns the last layout set prototype in the ordered set where uuid = ?. 204 * 205 * @param uuid the uuid 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the last matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 208 */ 209 public static com.liferay.portal.model.LayoutSetPrototype fetchByUuid_Last( 210 java.lang.String uuid, 211 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 212 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 213 } 214 215 /** 216 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where uuid = ?. 217 * 218 * @param layoutSetPrototypeId the primary key of the current layout set prototype 219 * @param uuid the uuid 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the previous, current, and next layout set prototype 222 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 223 */ 224 public static com.liferay.portal.model.LayoutSetPrototype[] findByUuid_PrevAndNext( 225 long layoutSetPrototypeId, java.lang.String uuid, 226 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 227 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 228 return getPersistence() 229 .findByUuid_PrevAndNext(layoutSetPrototypeId, uuid, 230 orderByComparator); 231 } 232 233 /** 234 * Returns all the layout set prototypes that the user has permission to view where uuid = ?. 235 * 236 * @param uuid the uuid 237 * @return the matching layout set prototypes that the user has permission to view 238 */ 239 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 240 java.lang.String uuid) { 241 return getPersistence().filterFindByUuid(uuid); 242 } 243 244 /** 245 * Returns a range of all the layout set prototypes that the user has permission to view where uuid = ?. 246 * 247 * <p> 248 * 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.LayoutSetPrototypeModelImpl}. 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. 249 * </p> 250 * 251 * @param uuid the uuid 252 * @param start the lower bound of the range of layout set prototypes 253 * @param end the upper bound of the range of layout set prototypes (not inclusive) 254 * @return the range of matching layout set prototypes that the user has permission to view 255 */ 256 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 257 java.lang.String uuid, int start, int end) { 258 return getPersistence().filterFindByUuid(uuid, start, end); 259 } 260 261 /** 262 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where uuid = ?. 263 * 264 * <p> 265 * 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.LayoutSetPrototypeModelImpl}. 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. 266 * </p> 267 * 268 * @param uuid the uuid 269 * @param start the lower bound of the range of layout set prototypes 270 * @param end the upper bound of the range of layout set prototypes (not inclusive) 271 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 272 * @return the ordered range of matching layout set prototypes that the user has permission to view 273 */ 274 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid( 275 java.lang.String uuid, int start, int end, 276 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 277 return getPersistence() 278 .filterFindByUuid(uuid, start, end, orderByComparator); 279 } 280 281 /** 282 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where uuid = ?. 283 * 284 * @param layoutSetPrototypeId the primary key of the current layout set prototype 285 * @param uuid the uuid 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the previous, current, and next layout set prototype 288 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 289 */ 290 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByUuid_PrevAndNext( 291 long layoutSetPrototypeId, java.lang.String uuid, 292 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 293 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 294 return getPersistence() 295 .filterFindByUuid_PrevAndNext(layoutSetPrototypeId, uuid, 296 orderByComparator); 297 } 298 299 /** 300 * Removes all the layout set prototypes where uuid = ? from the database. 301 * 302 * @param uuid the uuid 303 */ 304 public static void removeByUuid(java.lang.String uuid) { 305 getPersistence().removeByUuid(uuid); 306 } 307 308 /** 309 * Returns the number of layout set prototypes where uuid = ?. 310 * 311 * @param uuid the uuid 312 * @return the number of matching layout set prototypes 313 */ 314 public static int countByUuid(java.lang.String uuid) { 315 return getPersistence().countByUuid(uuid); 316 } 317 318 /** 319 * Returns the number of layout set prototypes that the user has permission to view where uuid = ?. 320 * 321 * @param uuid the uuid 322 * @return the number of matching layout set prototypes that the user has permission to view 323 */ 324 public static int filterCountByUuid(java.lang.String uuid) { 325 return getPersistence().filterCountByUuid(uuid); 326 } 327 328 /** 329 * Returns all the layout set prototypes where uuid = ? and companyId = ?. 330 * 331 * @param uuid the uuid 332 * @param companyId the company ID 333 * @return the matching layout set prototypes 334 */ 335 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid_C( 336 java.lang.String uuid, long companyId) { 337 return getPersistence().findByUuid_C(uuid, companyId); 338 } 339 340 /** 341 * Returns a range of all the layout set prototypes where uuid = ? and companyId = ?. 342 * 343 * <p> 344 * 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.LayoutSetPrototypeModelImpl}. 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. 345 * </p> 346 * 347 * @param uuid the uuid 348 * @param companyId the company ID 349 * @param start the lower bound of the range of layout set prototypes 350 * @param end the upper bound of the range of layout set prototypes (not inclusive) 351 * @return the range of matching layout set prototypes 352 */ 353 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid_C( 354 java.lang.String uuid, long companyId, int start, int end) { 355 return getPersistence().findByUuid_C(uuid, companyId, start, end); 356 } 357 358 /** 359 * Returns an ordered range of all the layout set prototypes where uuid = ? and companyId = ?. 360 * 361 * <p> 362 * 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.LayoutSetPrototypeModelImpl}. 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. 363 * </p> 364 * 365 * @param uuid the uuid 366 * @param companyId the company ID 367 * @param start the lower bound of the range of layout set prototypes 368 * @param end the upper bound of the range of layout set prototypes (not inclusive) 369 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 370 * @return the ordered range of matching layout set prototypes 371 */ 372 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByUuid_C( 373 java.lang.String uuid, long companyId, int start, int end, 374 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 375 return getPersistence() 376 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 377 } 378 379 /** 380 * Returns the first layout set prototype in the ordered set where uuid = ? and companyId = ?. 381 * 382 * @param uuid the uuid 383 * @param companyId the company ID 384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 385 * @return the first matching layout set prototype 386 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 387 */ 388 public static com.liferay.portal.model.LayoutSetPrototype findByUuid_C_First( 389 java.lang.String uuid, long companyId, 390 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 391 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 392 return getPersistence() 393 .findByUuid_C_First(uuid, companyId, orderByComparator); 394 } 395 396 /** 397 * Returns the first layout set prototype in the ordered set where uuid = ? and companyId = ?. 398 * 399 * @param uuid the uuid 400 * @param companyId the company ID 401 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 402 * @return the first matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 403 */ 404 public static com.liferay.portal.model.LayoutSetPrototype fetchByUuid_C_First( 405 java.lang.String uuid, long companyId, 406 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 407 return getPersistence() 408 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 409 } 410 411 /** 412 * Returns the last layout set prototype in the ordered set where uuid = ? and companyId = ?. 413 * 414 * @param uuid the uuid 415 * @param companyId the company ID 416 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 417 * @return the last matching layout set prototype 418 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 419 */ 420 public static com.liferay.portal.model.LayoutSetPrototype findByUuid_C_Last( 421 java.lang.String uuid, long companyId, 422 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 423 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 424 return getPersistence() 425 .findByUuid_C_Last(uuid, companyId, orderByComparator); 426 } 427 428 /** 429 * Returns the last layout set prototype in the ordered set where uuid = ? and companyId = ?. 430 * 431 * @param uuid the uuid 432 * @param companyId the company ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the last matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 435 */ 436 public static com.liferay.portal.model.LayoutSetPrototype fetchByUuid_C_Last( 437 java.lang.String uuid, long companyId, 438 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 439 return getPersistence() 440 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 441 } 442 443 /** 444 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where uuid = ? and companyId = ?. 445 * 446 * @param layoutSetPrototypeId the primary key of the current layout set prototype 447 * @param uuid the uuid 448 * @param companyId the company ID 449 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 450 * @return the previous, current, and next layout set prototype 451 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 452 */ 453 public static com.liferay.portal.model.LayoutSetPrototype[] findByUuid_C_PrevAndNext( 454 long layoutSetPrototypeId, java.lang.String uuid, long companyId, 455 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 456 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 457 return getPersistence() 458 .findByUuid_C_PrevAndNext(layoutSetPrototypeId, uuid, 459 companyId, orderByComparator); 460 } 461 462 /** 463 * Returns all the layout set prototypes that the user has permission to view where uuid = ? and companyId = ?. 464 * 465 * @param uuid the uuid 466 * @param companyId the company ID 467 * @return the matching layout set prototypes that the user has permission to view 468 */ 469 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid_C( 470 java.lang.String uuid, long companyId) { 471 return getPersistence().filterFindByUuid_C(uuid, companyId); 472 } 473 474 /** 475 * Returns a range of all the layout set prototypes that the user has permission to view where uuid = ? and companyId = ?. 476 * 477 * <p> 478 * 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.LayoutSetPrototypeModelImpl}. 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. 479 * </p> 480 * 481 * @param uuid the uuid 482 * @param companyId the company ID 483 * @param start the lower bound of the range of layout set prototypes 484 * @param end the upper bound of the range of layout set prototypes (not inclusive) 485 * @return the range of matching layout set prototypes that the user has permission to view 486 */ 487 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid_C( 488 java.lang.String uuid, long companyId, int start, int end) { 489 return getPersistence().filterFindByUuid_C(uuid, companyId, start, end); 490 } 491 492 /** 493 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where uuid = ? and companyId = ?. 494 * 495 * <p> 496 * 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.LayoutSetPrototypeModelImpl}. 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. 497 * </p> 498 * 499 * @param uuid the uuid 500 * @param companyId the company ID 501 * @param start the lower bound of the range of layout set prototypes 502 * @param end the upper bound of the range of layout set prototypes (not inclusive) 503 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 504 * @return the ordered range of matching layout set prototypes that the user has permission to view 505 */ 506 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByUuid_C( 507 java.lang.String uuid, long companyId, int start, int end, 508 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 509 return getPersistence() 510 .filterFindByUuid_C(uuid, companyId, start, end, 511 orderByComparator); 512 } 513 514 /** 515 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where uuid = ? and companyId = ?. 516 * 517 * @param layoutSetPrototypeId the primary key of the current layout set prototype 518 * @param uuid the uuid 519 * @param companyId the company ID 520 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 521 * @return the previous, current, and next layout set prototype 522 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 523 */ 524 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByUuid_C_PrevAndNext( 525 long layoutSetPrototypeId, java.lang.String uuid, long companyId, 526 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 527 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 528 return getPersistence() 529 .filterFindByUuid_C_PrevAndNext(layoutSetPrototypeId, uuid, 530 companyId, orderByComparator); 531 } 532 533 /** 534 * Removes all the layout set prototypes where uuid = ? and companyId = ? from the database. 535 * 536 * @param uuid the uuid 537 * @param companyId the company ID 538 */ 539 public static void removeByUuid_C(java.lang.String uuid, long companyId) { 540 getPersistence().removeByUuid_C(uuid, companyId); 541 } 542 543 /** 544 * Returns the number of layout set prototypes where uuid = ? and companyId = ?. 545 * 546 * @param uuid the uuid 547 * @param companyId the company ID 548 * @return the number of matching layout set prototypes 549 */ 550 public static int countByUuid_C(java.lang.String uuid, long companyId) { 551 return getPersistence().countByUuid_C(uuid, companyId); 552 } 553 554 /** 555 * Returns the number of layout set prototypes that the user has permission to view where uuid = ? and companyId = ?. 556 * 557 * @param uuid the uuid 558 * @param companyId the company ID 559 * @return the number of matching layout set prototypes that the user has permission to view 560 */ 561 public static int filterCountByUuid_C(java.lang.String uuid, long companyId) { 562 return getPersistence().filterCountByUuid_C(uuid, companyId); 563 } 564 565 /** 566 * Returns all the layout set prototypes where companyId = ?. 567 * 568 * @param companyId the company ID 569 * @return the matching layout set prototypes 570 */ 571 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 572 long companyId) { 573 return getPersistence().findByCompanyId(companyId); 574 } 575 576 /** 577 * Returns a range of all the layout set prototypes where companyId = ?. 578 * 579 * <p> 580 * 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.LayoutSetPrototypeModelImpl}. 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. 581 * </p> 582 * 583 * @param companyId the company ID 584 * @param start the lower bound of the range of layout set prototypes 585 * @param end the upper bound of the range of layout set prototypes (not inclusive) 586 * @return the range of matching layout set prototypes 587 */ 588 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 589 long companyId, int start, int end) { 590 return getPersistence().findByCompanyId(companyId, start, end); 591 } 592 593 /** 594 * Returns an ordered range of all the layout set prototypes where companyId = ?. 595 * 596 * <p> 597 * 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.LayoutSetPrototypeModelImpl}. 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. 598 * </p> 599 * 600 * @param companyId the company ID 601 * @param start the lower bound of the range of layout set prototypes 602 * @param end the upper bound of the range of layout set prototypes (not inclusive) 603 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 604 * @return the ordered range of matching layout set prototypes 605 */ 606 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByCompanyId( 607 long companyId, int start, int end, 608 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 609 return getPersistence() 610 .findByCompanyId(companyId, start, end, orderByComparator); 611 } 612 613 /** 614 * Returns the first layout set prototype in the ordered set where companyId = ?. 615 * 616 * @param companyId the company ID 617 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 618 * @return the first matching layout set prototype 619 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 620 */ 621 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_First( 622 long companyId, 623 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 624 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 625 return getPersistence() 626 .findByCompanyId_First(companyId, orderByComparator); 627 } 628 629 /** 630 * Returns the first layout set prototype in the ordered set where companyId = ?. 631 * 632 * @param companyId the company ID 633 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 634 * @return the first matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 635 */ 636 public static com.liferay.portal.model.LayoutSetPrototype fetchByCompanyId_First( 637 long companyId, 638 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 639 return getPersistence() 640 .fetchByCompanyId_First(companyId, orderByComparator); 641 } 642 643 /** 644 * Returns the last layout set prototype in the ordered set where companyId = ?. 645 * 646 * @param companyId the company ID 647 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 648 * @return the last matching layout set prototype 649 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 650 */ 651 public static com.liferay.portal.model.LayoutSetPrototype findByCompanyId_Last( 652 long companyId, 653 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 654 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 655 return getPersistence() 656 .findByCompanyId_Last(companyId, orderByComparator); 657 } 658 659 /** 660 * Returns the last layout set prototype in the ordered set where companyId = ?. 661 * 662 * @param companyId the company ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the last matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 665 */ 666 public static com.liferay.portal.model.LayoutSetPrototype fetchByCompanyId_Last( 667 long companyId, 668 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 669 return getPersistence() 670 .fetchByCompanyId_Last(companyId, orderByComparator); 671 } 672 673 /** 674 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ?. 675 * 676 * @param layoutSetPrototypeId the primary key of the current layout set prototype 677 * @param companyId the company ID 678 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 679 * @return the previous, current, and next layout set prototype 680 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 681 */ 682 public static com.liferay.portal.model.LayoutSetPrototype[] findByCompanyId_PrevAndNext( 683 long layoutSetPrototypeId, long companyId, 684 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 685 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 686 return getPersistence() 687 .findByCompanyId_PrevAndNext(layoutSetPrototypeId, 688 companyId, orderByComparator); 689 } 690 691 /** 692 * Returns all the layout set prototypes that the user has permission to view where companyId = ?. 693 * 694 * @param companyId the company ID 695 * @return the matching layout set prototypes that the user has permission to view 696 */ 697 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 698 long companyId) { 699 return getPersistence().filterFindByCompanyId(companyId); 700 } 701 702 /** 703 * Returns a range of all the layout set prototypes that the user has permission to view where companyId = ?. 704 * 705 * <p> 706 * 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.LayoutSetPrototypeModelImpl}. 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. 707 * </p> 708 * 709 * @param companyId the company ID 710 * @param start the lower bound of the range of layout set prototypes 711 * @param end the upper bound of the range of layout set prototypes (not inclusive) 712 * @return the range of matching layout set prototypes that the user has permission to view 713 */ 714 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 715 long companyId, int start, int end) { 716 return getPersistence().filterFindByCompanyId(companyId, start, end); 717 } 718 719 /** 720 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = ?. 721 * 722 * <p> 723 * 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.LayoutSetPrototypeModelImpl}. 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. 724 * </p> 725 * 726 * @param companyId the company ID 727 * @param start the lower bound of the range of layout set prototypes 728 * @param end the upper bound of the range of layout set prototypes (not inclusive) 729 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 730 * @return the ordered range of matching layout set prototypes that the user has permission to view 731 */ 732 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByCompanyId( 733 long companyId, int start, int end, 734 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 735 return getPersistence() 736 .filterFindByCompanyId(companyId, start, end, 737 orderByComparator); 738 } 739 740 /** 741 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = ?. 742 * 743 * @param layoutSetPrototypeId the primary key of the current layout set prototype 744 * @param companyId the company ID 745 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 746 * @return the previous, current, and next layout set prototype 747 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 748 */ 749 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByCompanyId_PrevAndNext( 750 long layoutSetPrototypeId, long companyId, 751 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 752 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 753 return getPersistence() 754 .filterFindByCompanyId_PrevAndNext(layoutSetPrototypeId, 755 companyId, orderByComparator); 756 } 757 758 /** 759 * Removes all the layout set prototypes where companyId = ? from the database. 760 * 761 * @param companyId the company ID 762 */ 763 public static void removeByCompanyId(long companyId) { 764 getPersistence().removeByCompanyId(companyId); 765 } 766 767 /** 768 * Returns the number of layout set prototypes where companyId = ?. 769 * 770 * @param companyId the company ID 771 * @return the number of matching layout set prototypes 772 */ 773 public static int countByCompanyId(long companyId) { 774 return getPersistence().countByCompanyId(companyId); 775 } 776 777 /** 778 * Returns the number of layout set prototypes that the user has permission to view where companyId = ?. 779 * 780 * @param companyId the company ID 781 * @return the number of matching layout set prototypes that the user has permission to view 782 */ 783 public static int filterCountByCompanyId(long companyId) { 784 return getPersistence().filterCountByCompanyId(companyId); 785 } 786 787 /** 788 * Returns all the layout set prototypes where companyId = ? and active = ?. 789 * 790 * @param companyId the company ID 791 * @param active the active 792 * @return the matching layout set prototypes 793 */ 794 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 795 long companyId, boolean active) { 796 return getPersistence().findByC_A(companyId, active); 797 } 798 799 /** 800 * Returns a range of all the layout set prototypes where companyId = ? and active = ?. 801 * 802 * <p> 803 * 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.LayoutSetPrototypeModelImpl}. 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. 804 * </p> 805 * 806 * @param companyId the company ID 807 * @param active the active 808 * @param start the lower bound of the range of layout set prototypes 809 * @param end the upper bound of the range of layout set prototypes (not inclusive) 810 * @return the range of matching layout set prototypes 811 */ 812 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 813 long companyId, boolean active, int start, int end) { 814 return getPersistence().findByC_A(companyId, active, start, end); 815 } 816 817 /** 818 * Returns an ordered range of all the layout set prototypes where companyId = ? and active = ?. 819 * 820 * <p> 821 * 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.LayoutSetPrototypeModelImpl}. 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. 822 * </p> 823 * 824 * @param companyId the company ID 825 * @param active the active 826 * @param start the lower bound of the range of layout set prototypes 827 * @param end the upper bound of the range of layout set prototypes (not inclusive) 828 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 829 * @return the ordered range of matching layout set prototypes 830 */ 831 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findByC_A( 832 long companyId, boolean active, int start, int end, 833 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 834 return getPersistence() 835 .findByC_A(companyId, active, start, end, orderByComparator); 836 } 837 838 /** 839 * Returns the first layout set prototype in the ordered set where companyId = ? and active = ?. 840 * 841 * @param companyId the company ID 842 * @param active the active 843 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 844 * @return the first matching layout set prototype 845 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 846 */ 847 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_First( 848 long companyId, boolean active, 849 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 850 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 851 return getPersistence() 852 .findByC_A_First(companyId, active, orderByComparator); 853 } 854 855 /** 856 * Returns the first layout set prototype in the ordered set where companyId = ? and active = ?. 857 * 858 * @param companyId the company ID 859 * @param active the active 860 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 861 * @return the first matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 862 */ 863 public static com.liferay.portal.model.LayoutSetPrototype fetchByC_A_First( 864 long companyId, boolean active, 865 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 866 return getPersistence() 867 .fetchByC_A_First(companyId, active, orderByComparator); 868 } 869 870 /** 871 * Returns the last layout set prototype in the ordered set where companyId = ? and active = ?. 872 * 873 * @param companyId the company ID 874 * @param active the active 875 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 876 * @return the last matching layout set prototype 877 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a matching layout set prototype could not be found 878 */ 879 public static com.liferay.portal.model.LayoutSetPrototype findByC_A_Last( 880 long companyId, boolean active, 881 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 882 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 883 return getPersistence() 884 .findByC_A_Last(companyId, active, orderByComparator); 885 } 886 887 /** 888 * Returns the last layout set prototype in the ordered set where companyId = ? and active = ?. 889 * 890 * @param companyId the company ID 891 * @param active the active 892 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 893 * @return the last matching layout set prototype, or <code>null</code> if a matching layout set prototype could not be found 894 */ 895 public static com.liferay.portal.model.LayoutSetPrototype fetchByC_A_Last( 896 long companyId, boolean active, 897 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 898 return getPersistence() 899 .fetchByC_A_Last(companyId, active, orderByComparator); 900 } 901 902 /** 903 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set where companyId = ? and active = ?. 904 * 905 * @param layoutSetPrototypeId the primary key of the current layout set prototype 906 * @param companyId the company ID 907 * @param active the active 908 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 909 * @return the previous, current, and next layout set prototype 910 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 911 */ 912 public static com.liferay.portal.model.LayoutSetPrototype[] findByC_A_PrevAndNext( 913 long layoutSetPrototypeId, long companyId, boolean active, 914 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 915 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 916 return getPersistence() 917 .findByC_A_PrevAndNext(layoutSetPrototypeId, companyId, 918 active, orderByComparator); 919 } 920 921 /** 922 * Returns all the layout set prototypes that the user has permission to view where companyId = ? and active = ?. 923 * 924 * @param companyId the company ID 925 * @param active the active 926 * @return the matching layout set prototypes that the user has permission to view 927 */ 928 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 929 long companyId, boolean active) { 930 return getPersistence().filterFindByC_A(companyId, active); 931 } 932 933 /** 934 * Returns a range of all the layout set prototypes that the user has permission to view where companyId = ? and active = ?. 935 * 936 * <p> 937 * 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.LayoutSetPrototypeModelImpl}. 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. 938 * </p> 939 * 940 * @param companyId the company ID 941 * @param active the active 942 * @param start the lower bound of the range of layout set prototypes 943 * @param end the upper bound of the range of layout set prototypes (not inclusive) 944 * @return the range of matching layout set prototypes that the user has permission to view 945 */ 946 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 947 long companyId, boolean active, int start, int end) { 948 return getPersistence().filterFindByC_A(companyId, active, start, end); 949 } 950 951 /** 952 * Returns an ordered range of all the layout set prototypes that the user has permissions to view where companyId = ? and active = ?. 953 * 954 * <p> 955 * 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.LayoutSetPrototypeModelImpl}. 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. 956 * </p> 957 * 958 * @param companyId the company ID 959 * @param active the active 960 * @param start the lower bound of the range of layout set prototypes 961 * @param end the upper bound of the range of layout set prototypes (not inclusive) 962 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 963 * @return the ordered range of matching layout set prototypes that the user has permission to view 964 */ 965 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> filterFindByC_A( 966 long companyId, boolean active, int start, int end, 967 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 968 return getPersistence() 969 .filterFindByC_A(companyId, active, start, end, 970 orderByComparator); 971 } 972 973 /** 974 * Returns the layout set prototypes before and after the current layout set prototype in the ordered set of layout set prototypes that the user has permission to view where companyId = ? and active = ?. 975 * 976 * @param layoutSetPrototypeId the primary key of the current layout set prototype 977 * @param companyId the company ID 978 * @param active the active 979 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 980 * @return the previous, current, and next layout set prototype 981 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 982 */ 983 public static com.liferay.portal.model.LayoutSetPrototype[] filterFindByC_A_PrevAndNext( 984 long layoutSetPrototypeId, long companyId, boolean active, 985 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) 986 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 987 return getPersistence() 988 .filterFindByC_A_PrevAndNext(layoutSetPrototypeId, 989 companyId, active, orderByComparator); 990 } 991 992 /** 993 * Removes all the layout set prototypes where companyId = ? and active = ? from the database. 994 * 995 * @param companyId the company ID 996 * @param active the active 997 */ 998 public static void removeByC_A(long companyId, boolean active) { 999 getPersistence().removeByC_A(companyId, active); 1000 } 1001 1002 /** 1003 * Returns the number of layout set prototypes where companyId = ? and active = ?. 1004 * 1005 * @param companyId the company ID 1006 * @param active the active 1007 * @return the number of matching layout set prototypes 1008 */ 1009 public static int countByC_A(long companyId, boolean active) { 1010 return getPersistence().countByC_A(companyId, active); 1011 } 1012 1013 /** 1014 * Returns the number of layout set prototypes that the user has permission to view where companyId = ? and active = ?. 1015 * 1016 * @param companyId the company ID 1017 * @param active the active 1018 * @return the number of matching layout set prototypes that the user has permission to view 1019 */ 1020 public static int filterCountByC_A(long companyId, boolean active) { 1021 return getPersistence().filterCountByC_A(companyId, active); 1022 } 1023 1024 /** 1025 * Caches the layout set prototype in the entity cache if it is enabled. 1026 * 1027 * @param layoutSetPrototype the layout set prototype 1028 */ 1029 public static void cacheResult( 1030 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) { 1031 getPersistence().cacheResult(layoutSetPrototype); 1032 } 1033 1034 /** 1035 * Caches the layout set prototypes in the entity cache if it is enabled. 1036 * 1037 * @param layoutSetPrototypes the layout set prototypes 1038 */ 1039 public static void cacheResult( 1040 java.util.List<com.liferay.portal.model.LayoutSetPrototype> layoutSetPrototypes) { 1041 getPersistence().cacheResult(layoutSetPrototypes); 1042 } 1043 1044 /** 1045 * Creates a new layout set prototype with the primary key. Does not add the layout set prototype to the database. 1046 * 1047 * @param layoutSetPrototypeId the primary key for the new layout set prototype 1048 * @return the new layout set prototype 1049 */ 1050 public static com.liferay.portal.model.LayoutSetPrototype create( 1051 long layoutSetPrototypeId) { 1052 return getPersistence().create(layoutSetPrototypeId); 1053 } 1054 1055 /** 1056 * Removes the layout set prototype with the primary key from the database. Also notifies the appropriate model listeners. 1057 * 1058 * @param layoutSetPrototypeId the primary key of the layout set prototype 1059 * @return the layout set prototype that was removed 1060 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 1061 */ 1062 public static com.liferay.portal.model.LayoutSetPrototype remove( 1063 long layoutSetPrototypeId) 1064 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 1065 return getPersistence().remove(layoutSetPrototypeId); 1066 } 1067 1068 public static com.liferay.portal.model.LayoutSetPrototype updateImpl( 1069 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) { 1070 return getPersistence().updateImpl(layoutSetPrototype); 1071 } 1072 1073 /** 1074 * Returns the layout set prototype with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutSetPrototypeException} if it could not be found. 1075 * 1076 * @param layoutSetPrototypeId the primary key of the layout set prototype 1077 * @return the layout set prototype 1078 * @throws com.liferay.portal.NoSuchLayoutSetPrototypeException if a layout set prototype with the primary key could not be found 1079 */ 1080 public static com.liferay.portal.model.LayoutSetPrototype findByPrimaryKey( 1081 long layoutSetPrototypeId) 1082 throws com.liferay.portal.NoSuchLayoutSetPrototypeException { 1083 return getPersistence().findByPrimaryKey(layoutSetPrototypeId); 1084 } 1085 1086 /** 1087 * Returns the layout set prototype with the primary key or returns <code>null</code> if it could not be found. 1088 * 1089 * @param layoutSetPrototypeId the primary key of the layout set prototype 1090 * @return the layout set prototype, or <code>null</code> if a layout set prototype with the primary key could not be found 1091 */ 1092 public static com.liferay.portal.model.LayoutSetPrototype fetchByPrimaryKey( 1093 long layoutSetPrototypeId) { 1094 return getPersistence().fetchByPrimaryKey(layoutSetPrototypeId); 1095 } 1096 1097 public static java.util.Map<java.io.Serializable, com.liferay.portal.model.LayoutSetPrototype> fetchByPrimaryKeys( 1098 java.util.Set<java.io.Serializable> primaryKeys) { 1099 return getPersistence().fetchByPrimaryKeys(primaryKeys); 1100 } 1101 1102 /** 1103 * Returns all the layout set prototypes. 1104 * 1105 * @return the layout set prototypes 1106 */ 1107 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll() { 1108 return getPersistence().findAll(); 1109 } 1110 1111 /** 1112 * Returns a range of all the layout set prototypes. 1113 * 1114 * <p> 1115 * 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.LayoutSetPrototypeModelImpl}. 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. 1116 * </p> 1117 * 1118 * @param start the lower bound of the range of layout set prototypes 1119 * @param end the upper bound of the range of layout set prototypes (not inclusive) 1120 * @return the range of layout set prototypes 1121 */ 1122 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 1123 int start, int end) { 1124 return getPersistence().findAll(start, end); 1125 } 1126 1127 /** 1128 * Returns an ordered range of all the layout set prototypes. 1129 * 1130 * <p> 1131 * 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.LayoutSetPrototypeModelImpl}. 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. 1132 * </p> 1133 * 1134 * @param start the lower bound of the range of layout set prototypes 1135 * @param end the upper bound of the range of layout set prototypes (not inclusive) 1136 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1137 * @return the ordered range of layout set prototypes 1138 */ 1139 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> findAll( 1140 int start, int end, 1141 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> orderByComparator) { 1142 return getPersistence().findAll(start, end, orderByComparator); 1143 } 1144 1145 /** 1146 * Removes all the layout set prototypes from the database. 1147 */ 1148 public static void removeAll() { 1149 getPersistence().removeAll(); 1150 } 1151 1152 /** 1153 * Returns the number of layout set prototypes. 1154 * 1155 * @return the number of layout set prototypes 1156 */ 1157 public static int countAll() { 1158 return getPersistence().countAll(); 1159 } 1160 1161 public static LayoutSetPrototypePersistence getPersistence() { 1162 if (_persistence == null) { 1163 _persistence = (LayoutSetPrototypePersistence)PortalBeanLocatorUtil.locate(LayoutSetPrototypePersistence.class.getName()); 1164 1165 ReferenceRegistry.registerReference(LayoutSetPrototypeUtil.class, 1166 "_persistence"); 1167 } 1168 1169 return _persistence; 1170 } 1171 1172 /** 1173 * @deprecated As of 6.2.0 1174 */ 1175 @Deprecated 1176 public void setPersistence(LayoutSetPrototypePersistence persistence) { 1177 } 1178 1179 private static LayoutSetPrototypePersistence _persistence; 1180 }