All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.service.persistence.LayoutUtil Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.model.Layout;
import com.liferay.portal.service.ServiceContext;

import java.util.List;

/**
 * The persistence utility for the layout service. This utility wraps {@link LayoutPersistenceImpl} 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.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see LayoutPersistence * @see LayoutPersistenceImpl * @generated */ @ProviderType public class LayoutUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) */ public static void clearCache(Layout layout) { getPersistence().clearCache(layout); } /** * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) */ public static Layout update(Layout layout) throws SystemException { return getPersistence().update(layout); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) */ public static Layout update(Layout layout, ServiceContext serviceContext) throws SystemException { return getPersistence().update(layout, serviceContext); } /** * Returns all the layouts where uuid = ?. * * @param uuid the uuid * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the layouts where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the layouts where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid( java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid(uuid, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first layout in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last layout in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last layout in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where uuid = ?. * * @param plid the primary key of the current layout * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByUuid_PrevAndNext( long plid, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_PrevAndNext(plid, uuid, orderByComparator); } /** * Removes all the layouts where uuid = ? from the database. * * @param uuid the uuid * @throws SystemException if a system exception occurred */ public static void removeByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid(uuid); } /** * Returns the number of layouts where uuid = ?. * * @param uuid the uuid * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid(uuid); } /** * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @param privateLayout the private layout * @return the matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByUUID_G_P( java.lang.String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUUID_G_P(uuid, groupId, privateLayout); } /** * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param privateLayout the private layout * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUUID_G_P( java.lang.String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByUUID_G_P(uuid, groupId, privateLayout); } /** * Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param privateLayout the private layout * @param retrieveFromCache whether to use the finder cache * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUUID_G_P( java.lang.String uuid, long groupId, boolean privateLayout, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUUID_G_P(uuid, groupId, privateLayout, retrieveFromCache); } /** * Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @param privateLayout the private layout * @return the layout that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout removeByUUID_G_P( java.lang.String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().removeByUUID_G_P(uuid, groupId, privateLayout); } /** * Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?. * * @param uuid the uuid * @param groupId the group ID * @param privateLayout the private layout * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByUUID_G_P(java.lang.String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUUID_G_P(uuid, groupId, privateLayout); } /** * Returns all the layouts where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the layouts where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByUuid_C(uuid, companyId, start, end); } /** * Returns an ordered range of all the layouts where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByUuid_C( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C(uuid, companyId, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the first layout in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_First(uuid, companyId, orderByComparator); } /** * Returns the last layout in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the last layout in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByUuid_C_Last(uuid, companyId, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where uuid = ? and companyId = ?. * * @param plid the primary key of the current layout * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByUuid_C_PrevAndNext( long plid, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByUuid_C_PrevAndNext(plid, uuid, companyId, orderByComparator); } /** * Removes all the layouts where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByUuid_C(uuid, companyId); } /** * Returns the number of layouts where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the layouts where groupId = ?. * * @param groupId the group ID * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId); } /** * Returns a range of all the layouts where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId(groupId, start, end); } /** * Returns an ordered range of all the layouts where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByGroupId(groupId, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId_First(groupId, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_First(groupId, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByGroupId_Last(groupId, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where groupId = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByGroupId_PrevAndNext( long plid, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByGroupId_PrevAndNext(plid, groupId, orderByComparator); } /** * Returns all the layouts that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId); } /** * Returns a range of all the layouts that the user has permission to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByGroupId(groupId, start, end); } /** * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByGroupId(groupId, start, end, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] filterFindByGroupId_PrevAndNext( long plid, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByGroupId_PrevAndNext(plid, groupId, orderByComparator); } /** * Removes all the layouts where groupId = ? from the database. * * @param groupId the group ID * @throws SystemException if a system exception occurred */ public static void removeByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByGroupId(groupId); } /** * Returns the number of layouts where groupId = ?. * * @param groupId the group ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByGroupId(groupId); } /** * Returns the number of layouts that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByGroupId(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByGroupId(groupId); } /** * Returns all the layouts where companyId = ?. * * @param companyId the company ID * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByCompanyId( long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId); } /** * Returns a range of all the layouts where companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param companyId the company ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByCompanyId( long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId, start, end); } /** * Returns an ordered range of all the layouts where companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param companyId the company ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId(companyId, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_First(companyId, orderByComparator); } /** * Returns the first layout in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_First(companyId, orderByComparator); } /** * Returns the last layout in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_Last(companyId, orderByComparator); } /** * Returns the last layout in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_Last(companyId, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where companyId = ?. * * @param plid the primary key of the current layout * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByCompanyId_PrevAndNext( long plid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_PrevAndNext(plid, companyId, orderByComparator); } /** * Removes all the layouts where companyId = ? from the database. * * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByCompanyId(companyId); } /** * Returns the number of layouts where companyId = ?. * * @param companyId the company ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByCompanyId(companyId); } /** * Returns the layout where iconImageId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param iconImageId the icon image ID * @return the matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByIconImageId( long iconImageId) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByIconImageId(iconImageId); } /** * Returns the layout where iconImageId = ? or returns null if it could not be found. Uses the finder cache. * * @param iconImageId the icon image ID * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByIconImageId( long iconImageId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByIconImageId(iconImageId); } /** * Returns the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache. * * @param iconImageId the icon image ID * @param retrieveFromCache whether to use the finder cache * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByIconImageId( long iconImageId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByIconImageId(iconImageId, retrieveFromCache); } /** * Removes the layout where iconImageId = ? from the database. * * @param iconImageId the icon image ID * @return the layout that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout removeByIconImageId( long iconImageId) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().removeByIconImageId(iconImageId); } /** * Returns the number of layouts where iconImageId = ?. * * @param iconImageId the icon image ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByIconImageId(long iconImageId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByIconImageId(iconImageId); } /** * Returns all the layouts where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByLayoutPrototypeUuid( java.lang.String layoutPrototypeUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByLayoutPrototypeUuid(layoutPrototypeUuid); } /** * Returns a range of all the layouts where layoutPrototypeUuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param layoutPrototypeUuid the layout prototype uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByLayoutPrototypeUuid( java.lang.String layoutPrototypeUuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLayoutPrototypeUuid(layoutPrototypeUuid, start, end); } /** * Returns an ordered range of all the layouts where layoutPrototypeUuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param layoutPrototypeUuid the layout prototype uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByLayoutPrototypeUuid( java.lang.String layoutPrototypeUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLayoutPrototypeUuid(layoutPrototypeUuid, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByLayoutPrototypeUuid_First( java.lang.String layoutPrototypeUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLayoutPrototypeUuid_First(layoutPrototypeUuid, orderByComparator); } /** * Returns the first layout in the ordered set where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_First( java.lang.String layoutPrototypeUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByLayoutPrototypeUuid_First(layoutPrototypeUuid, orderByComparator); } /** * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByLayoutPrototypeUuid_Last( java.lang.String layoutPrototypeUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLayoutPrototypeUuid_Last(layoutPrototypeUuid, orderByComparator); } /** * Returns the last layout in the ordered set where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByLayoutPrototypeUuid_Last( java.lang.String layoutPrototypeUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByLayoutPrototypeUuid_Last(layoutPrototypeUuid, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?. * * @param plid the primary key of the current layout * @param layoutPrototypeUuid the layout prototype uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByLayoutPrototypeUuid_PrevAndNext( long plid, java.lang.String layoutPrototypeUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByLayoutPrototypeUuid_PrevAndNext(plid, layoutPrototypeUuid, orderByComparator); } /** * Removes all the layouts where layoutPrototypeUuid = ? from the database. * * @param layoutPrototypeUuid the layout prototype uuid * @throws SystemException if a system exception occurred */ public static void removeByLayoutPrototypeUuid( java.lang.String layoutPrototypeUuid) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByLayoutPrototypeUuid(layoutPrototypeUuid); } /** * Returns the number of layouts where layoutPrototypeUuid = ?. * * @param layoutPrototypeUuid the layout prototype uuid * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByLayoutPrototypeUuid( java.lang.String layoutPrototypeUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByLayoutPrototypeUuid(layoutPrototypeUuid); } /** * Returns all the layouts where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findBySourcePrototypeLayoutUuid( java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); } /** * Returns a range of all the layouts where sourcePrototypeLayoutUuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findBySourcePrototypeLayoutUuid( java.lang.String sourcePrototypeLayoutUuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid, start, end); } /** * Returns an ordered range of all the layouts where sourcePrototypeLayoutUuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findBySourcePrototypeLayoutUuid( java.lang.String sourcePrototypeLayoutUuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_First( java.lang.String sourcePrototypeLayoutUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid_First(sourcePrototypeLayoutUuid, orderByComparator); } /** * Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_First( java.lang.String sourcePrototypeLayoutUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchBySourcePrototypeLayoutUuid_First(sourcePrototypeLayoutUuid, orderByComparator); } /** * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findBySourcePrototypeLayoutUuid_Last( java.lang.String sourcePrototypeLayoutUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid_Last(sourcePrototypeLayoutUuid, orderByComparator); } /** * Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchBySourcePrototypeLayoutUuid_Last( java.lang.String sourcePrototypeLayoutUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchBySourcePrototypeLayoutUuid_Last(sourcePrototypeLayoutUuid, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?. * * @param plid the primary key of the current layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext( long plid, java.lang.String sourcePrototypeLayoutUuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findBySourcePrototypeLayoutUuid_PrevAndNext(plid, sourcePrototypeLayoutUuid, orderByComparator); } /** * Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @throws SystemException if a system exception occurred */ public static void removeBySourcePrototypeLayoutUuid( java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() .removeBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); } /** * Returns the number of layouts where sourcePrototypeLayoutUuid = ?. * * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countBySourcePrototypeLayoutUuid( java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countBySourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid); } /** * Returns all the layouts where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P( long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_P(groupId, privateLayout); } /** * Returns a range of all the layouts where groupId = ? and privateLayout = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P( long groupId, boolean privateLayout, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_P(groupId, privateLayout, start, end); } /** * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P( long groupId, boolean privateLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P(groupId, privateLayout, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_First( long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_First(groupId, privateLayout, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_First( long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_First(groupId, privateLayout, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_Last(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_Last(groupId, privateLayout, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_Last( long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_Last(groupId, privateLayout, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByG_P_PrevAndNext( long plid, long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_PrevAndNext(plid, groupId, privateLayout, orderByComparator); } /** * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @return the matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P( long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_P(groupId, privateLayout); } /** * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P( long groupId, boolean privateLayout, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P(groupId, privateLayout, start, end); } /** * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P( long groupId, boolean privateLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P(groupId, privateLayout, start, end, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] filterFindByG_P_PrevAndNext( long plid, long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_PrevAndNext(plid, groupId, privateLayout, orderByComparator); } /** * Removes all the layouts where groupId = ? and privateLayout = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @throws SystemException if a system exception occurred */ public static void removeByG_P(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_P(groupId, privateLayout); } /** * Returns the number of layouts where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_P(groupId, privateLayout); } /** * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?. * * @param groupId the group ID * @param privateLayout the private layout * @return the number of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_P(long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_P(groupId, privateLayout); } /** * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param groupId the group ID * @param privateLayout the private layout * @param layoutId the layout ID * @return the matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_P_L(groupId, privateLayout, layoutId); } /** * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param layoutId the layout ID * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByG_P_L(groupId, privateLayout, layoutId); } /** * Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param layoutId the layout ID * @param retrieveFromCache whether to use the finder cache * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_L(groupId, privateLayout, layoutId, retrieveFromCache); } /** * Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @param layoutId the layout ID * @return the layout that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout removeByG_P_L(long groupId, boolean privateLayout, long layoutId) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().removeByG_P_L(groupId, privateLayout, layoutId); } /** * Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param layoutId the layout ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P_L(long groupId, boolean privateLayout, long layoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_P_L(groupId, privateLayout, layoutId); } /** * Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_P( long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P(groupId, privateLayout, parentLayoutId); } /** * Returns a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_P( long groupId, boolean privateLayout, long parentLayoutId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P(groupId, privateLayout, parentLayoutId, start, end); } /** * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_P( long groupId, boolean privateLayout, long parentLayoutId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P(groupId, privateLayout, parentLayoutId, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_P_First( long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P_First(groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_P_First( long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_P_First(groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_P_Last( long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P_Last(groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_P_Last( long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_P_Last(groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByG_P_P_PrevAndNext( long plid, long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_P_PrevAndNext(plid, groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @return the matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_P( long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_P(groupId, privateLayout, parentLayoutId); } /** * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_P( long groupId, boolean privateLayout, long parentLayoutId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_P(groupId, privateLayout, parentLayoutId, start, end); } /** * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_P( long groupId, boolean privateLayout, long parentLayoutId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_P(groupId, privateLayout, parentLayoutId, start, end, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] filterFindByG_P_P_PrevAndNext( long plid, long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_P_PrevAndNext(plid, groupId, privateLayout, parentLayoutId, orderByComparator); } /** * Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @throws SystemException if a system exception occurred */ public static void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_P_P(groupId, privateLayout, parentLayoutId); } /** * Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByG_P_P(groupId, privateLayout, parentLayoutId); } /** * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param parentLayoutId the parent layout ID * @return the number of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_P_P(long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterCountByG_P_P(groupId, privateLayout, parentLayoutId); } /** * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param groupId the group ID * @param privateLayout the private layout * @param friendlyURL the friendly u r l * @return the matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_P_F(groupId, privateLayout, friendlyURL); } /** * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param friendlyURL the friendly u r l * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByG_P_F(groupId, privateLayout, friendlyURL); } /** * Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param friendlyURL the friendly u r l * @param retrieveFromCache whether to use the finder cache * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_F(groupId, privateLayout, friendlyURL, retrieveFromCache); } /** * Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @param friendlyURL the friendly u r l * @return the layout that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout removeByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .removeByG_P_F(groupId, privateLayout, friendlyURL); } /** * Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param friendlyURL the friendly u r l * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_P_F(groupId, privateLayout, friendlyURL); } /** * Returns all the layouts where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @return the matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_T( long groupId, boolean privateLayout, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByG_P_T(groupId, privateLayout, type); } /** * Returns a range of all the layouts where groupId = ? and privateLayout = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_T( long groupId, boolean privateLayout, java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_T(groupId, privateLayout, type, start, end); } /** * Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts * @throws SystemException if a system exception occurred */ public static java.util.List findByG_P_T( long groupId, boolean privateLayout, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_T(groupId, privateLayout, type, start, end, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_T_First( long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_T_First(groupId, privateLayout, type, orderByComparator); } /** * Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_T_First( long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_T_First(groupId, privateLayout, type, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_T_Last( long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_T_Last(groupId, privateLayout, type, orderByComparator); } /** * Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_T_Last( long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_T_Last(groupId, privateLayout, type, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] findByG_P_T_PrevAndNext( long plid, long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_T_PrevAndNext(plid, groupId, privateLayout, type, orderByComparator); } /** * Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @return the matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_T( long groupId, boolean privateLayout, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterFindByG_P_T(groupId, privateLayout, type); } /** * Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_T( long groupId, boolean privateLayout, java.lang.String type, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_T(groupId, privateLayout, type, start, end); } /** * Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and type = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static java.util.List filterFindByG_P_T( long groupId, boolean privateLayout, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_T(groupId, privateLayout, type, start, end, orderByComparator); } /** * Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. * * @param plid the primary key of the current layout * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout[] filterFindByG_P_T_PrevAndNext( long plid, long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .filterFindByG_P_T_PrevAndNext(plid, groupId, privateLayout, type, orderByComparator); } /** * Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @throws SystemException if a system exception occurred */ public static void removeByG_P_T(long groupId, boolean privateLayout, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByG_P_T(groupId, privateLayout, type); } /** * Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P_T(long groupId, boolean privateLayout, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByG_P_T(groupId, privateLayout, type); } /** * Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param type the type * @return the number of matching layouts that the user has permission to view * @throws SystemException if a system exception occurred */ public static int filterCountByG_P_T(long groupId, boolean privateLayout, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().filterCountByG_P_T(groupId, privateLayout, type); } /** * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param groupId the group ID * @param privateLayout the private layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the matching layout * @throws com.liferay.portal.NoSuchLayoutException if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByG_P_SPLU(long groupId, boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByG_P_SPLU(groupId, privateLayout, sourcePrototypeLayoutUuid); } /** * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found. Uses the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_SPLU( long groupId, boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_SPLU(groupId, privateLayout, sourcePrototypeLayoutUuid); } /** * Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found, optionally using the finder cache. * * @param groupId the group ID * @param privateLayout the private layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @param retrieveFromCache whether to use the finder cache * @return the matching layout, or null if a matching layout could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByG_P_SPLU( long groupId, boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByG_P_SPLU(groupId, privateLayout, sourcePrototypeLayoutUuid, retrieveFromCache); } /** * Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? from the database. * * @param groupId the group ID * @param privateLayout the private layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the layout that was removed * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout removeByG_P_SPLU( long groupId, boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .removeByG_P_SPLU(groupId, privateLayout, sourcePrototypeLayoutUuid); } /** * Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?. * * @param groupId the group ID * @param privateLayout the private layout * @param sourcePrototypeLayoutUuid the source prototype layout uuid * @return the number of matching layouts * @throws SystemException if a system exception occurred */ public static int countByG_P_SPLU(long groupId, boolean privateLayout, java.lang.String sourcePrototypeLayoutUuid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByG_P_SPLU(groupId, privateLayout, sourcePrototypeLayoutUuid); } /** * Caches the layout in the entity cache if it is enabled. * * @param layout the layout */ public static void cacheResult(com.liferay.portal.model.Layout layout) { getPersistence().cacheResult(layout); } /** * Caches the layouts in the entity cache if it is enabled. * * @param layouts the layouts */ public static void cacheResult( java.util.List layouts) { getPersistence().cacheResult(layouts); } /** * Creates a new layout with the primary key. Does not add the layout to the database. * * @param plid the primary key for the new layout * @return the new layout */ public static com.liferay.portal.model.Layout create(long plid) { return getPersistence().create(plid); } /** * Removes the layout with the primary key from the database. Also notifies the appropriate model listeners. * * @param plid the primary key of the layout * @return the layout that was removed * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout remove(long plid) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().remove(plid); } public static com.liferay.portal.model.Layout updateImpl( com.liferay.portal.model.Layout layout) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(layout); } /** * Returns the layout with the primary key or throws a {@link com.liferay.portal.NoSuchLayoutException} if it could not be found. * * @param plid the primary key of the layout * @return the layout * @throws com.liferay.portal.NoSuchLayoutException if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout findByPrimaryKey(long plid) throws com.liferay.portal.NoSuchLayoutException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByPrimaryKey(plid); } /** * Returns the layout with the primary key or returns null if it could not be found. * * @param plid the primary key of the layout * @return the layout, or null if a layout with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.portal.model.Layout fetchByPrimaryKey(long plid) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(plid); } /** * Returns all the layouts. * * @return the layouts * @throws SystemException if a system exception occurred */ public static java.util.List findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the layouts. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @return the range of layouts * @throws SystemException if a system exception occurred */ public static java.util.List findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the layouts. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.LayoutModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of layouts * @param end the upper bound of the range of layouts (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of layouts * @throws SystemException if a system exception occurred */ public static java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end, orderByComparator); } /** * Removes all the layouts from the database. * * @throws SystemException if a system exception occurred */ public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); } /** * Returns the number of layouts. * * @return the number of layouts * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static LayoutPersistence getPersistence() { if (_persistence == null) { _persistence = (LayoutPersistence)PortalBeanLocatorUtil.locate(LayoutPersistence.class.getName()); ReferenceRegistry.registerReference(LayoutUtil.class, "_persistence"); } return _persistence; } /** * @deprecated As of 6.2.0 */ public void setPersistence(LayoutPersistence persistence) { } private static LayoutPersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy