Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Class LayoutUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.LayoutUtil

public class LayoutUtil
extends Object

The persistence utility for the layout service. This utility wraps 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

See Also:
LayoutPersistence, LayoutPersistenceImpl

Constructor Summary
LayoutUtil()
           
 
Method Summary
static void cacheResult(Layout layout)
          Caches the layout in the entity cache if it is enabled.
static void cacheResult(List<Layout> layouts)
          Caches the layouts in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(Layout layout)
           
static int countAll()
          Returns the number of layouts.
static int countByCompanyId(long companyId)
          Returns the number of layouts where companyId = ?.
static int countByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.
static int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?.
static int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static int countByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?.
static int countByG_P_T(long groupId, boolean privateLayout, String type)
          Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?.
static int countByG_P(long groupId, boolean privateLayout)
          Returns the number of layouts where groupId = ? and privateLayout = ?.
static int countByGroupId(long groupId)
          Returns the number of layouts where groupId = ?.
static int countByIconImageId(long iconImageId)
          Returns the number of layouts where iconImageId = ?.
static int countByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Returns the number of layouts where layoutPrototypeUuid = ?.
static int countBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Returns the number of layouts where sourcePrototypeLayoutUuid = ?.
static int countByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?.
static int countByUuid(String uuid)
          Returns the number of layouts where uuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Layout create(long plid)
          Creates a new layout with the primary key.
static Layout fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where companyId = ?.
static Layout fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where companyId = ?.
static Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found.
static Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL, boolean retrieveFromCache)
          Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.
static Layout fetchByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.
static Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found.
static Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId, boolean retrieveFromCache)
          Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache.
static Layout fetchByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.
static Layout fetchByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout fetchByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout fetchByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found.
static Layout fetchByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid, boolean retrieveFromCache)
          Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found, optionally using the finder cache.
static Layout fetchByG_P_T_First(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
static Layout fetchByG_P_T_Last(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
static Layout fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ?.
static Layout fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ?.
static Layout fetchByIconImageId(long iconImageId)
          Returns the layout where iconImageId = ? or returns null if it could not be found.
static Layout fetchByIconImageId(long iconImageId, boolean retrieveFromCache)
          Returns the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache.
static Layout fetchByLayoutPrototypeUuid_First(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where layoutPrototypeUuid = ?.
static Layout fetchByLayoutPrototypeUuid_Last(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where layoutPrototypeUuid = ?.
static Layout fetchByPrimaryKey(long plid)
          Returns the layout with the primary key or returns null if it could not be found.
static Layout fetchBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.
static Layout fetchBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.
static Layout fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ?.
static Layout fetchByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found.
static Layout fetchByUUID_G_P(String uuid, long groupId, boolean privateLayout, boolean retrieveFromCache)
          Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache.
static Layout fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ?.
static int filterCountByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static int filterCountByG_P_T(long groupId, boolean privateLayout, String type)
          Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?.
static int filterCountByG_P(long groupId, boolean privateLayout)
          Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?.
static int filterCountByGroupId(long groupId)
          Returns the number of layouts that the user has permission to view where groupId = ?.
static Layout[] filterFindByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator 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 = ?.
static List<Layout> filterFindByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static List<Layout> filterFindByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end)
          Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static List<Layout> filterFindByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout[] filterFindByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, OrderByComparator 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 = ?.
static Layout[] filterFindByG_P_T_PrevAndNext(long plid, long groupId, boolean privateLayout, String type, OrderByComparator 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 = ?.
static List<Layout> filterFindByG_P_T(long groupId, boolean privateLayout, String type)
          Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> filterFindByG_P_T(long groupId, boolean privateLayout, String type, int start, int end)
          Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> filterFindByG_P_T(long groupId, boolean privateLayout, String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> filterFindByG_P(long groupId, boolean privateLayout)
          Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?.
static List<Layout> filterFindByG_P(long groupId, boolean privateLayout, int start, int end)
          Returns a range of all the layouts that the user has permission to view where groupId = ? and privateLayout = ?.
static List<Layout> filterFindByG_P(long groupId, boolean privateLayout, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts that the user has permissions to view where groupId = ? and privateLayout = ?.
static Layout[] filterFindByGroupId_PrevAndNext(long plid, long groupId, OrderByComparator 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 = ?.
static List<Layout> filterFindByGroupId(long groupId)
          Returns all the layouts that the user has permission to view where groupId = ?.
static List<Layout> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the layouts that the user has permission to view where groupId = ?.
static List<Layout> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts that the user has permissions to view where groupId = ?.
static List<Layout> findAll()
          Returns all the layouts.
static List<Layout> findAll(int start, int end)
          Returns a range of all the layouts.
static List<Layout> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts.
static Layout findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where companyId = ?.
static Layout findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where companyId = ?.
static Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where companyId = ?.
static List<Layout> findByCompanyId(long companyId)
          Returns all the layouts where companyId = ?.
static List<Layout> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the layouts where companyId = ?.
static List<Layout> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where companyId = ?.
static Layout findByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a NoSuchLayoutException if it could not be found.
static Layout findByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.
static Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a NoSuchLayoutException if it could not be found.
static Layout findByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.
static Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end)
          Returns a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
static Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?.
static Layout findByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or throws a NoSuchLayoutException if it could not be found.
static Layout findByG_P_T_First(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
static Layout findByG_P_T_Last(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
static Layout[] findByG_P_T_PrevAndNext(long plid, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type)
          Returns all the layouts where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end)
          Returns a range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
static List<Layout> findByG_P(long groupId, boolean privateLayout)
          Returns all the layouts where groupId = ? and privateLayout = ?.
static List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end)
          Returns a range of all the layouts where groupId = ? and privateLayout = ?.
static List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where groupId = ? and privateLayout = ?.
static Layout findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ?.
static Layout findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ?.
static Layout[] findByGroupId_PrevAndNext(long plid, long groupId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where groupId = ?.
static List<Layout> findByGroupId(long groupId)
          Returns all the layouts where groupId = ?.
static List<Layout> findByGroupId(long groupId, int start, int end)
          Returns a range of all the layouts where groupId = ?.
static List<Layout> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where groupId = ?.
static Layout findByIconImageId(long iconImageId)
          Returns the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.
static Layout findByLayoutPrototypeUuid_First(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where layoutPrototypeUuid = ?.
static Layout findByLayoutPrototypeUuid_Last(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where layoutPrototypeUuid = ?.
static Layout[] findByLayoutPrototypeUuid_PrevAndNext(long plid, String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?.
static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Returns all the layouts where layoutPrototypeUuid = ?.
static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid, int start, int end)
          Returns a range of all the layouts where layoutPrototypeUuid = ?.
static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where layoutPrototypeUuid = ?.
static Layout findByPrimaryKey(long plid)
          Returns the layout with the primary key or throws a NoSuchLayoutException if it could not be found.
static Layout findBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.
static Layout findBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.
static Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext(long plid, String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?.
static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Returns all the layouts where sourcePrototypeLayoutUuid = ?.
static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid, int start, int end)
          Returns a range of all the layouts where sourcePrototypeLayoutUuid = ?.
static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where sourcePrototypeLayoutUuid = ?.
static Layout findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ?.
static Layout findByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or throws a NoSuchLayoutException if it could not be found.
static Layout findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ?.
static Layout[] findByUuid_PrevAndNext(long plid, String uuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where uuid = ?.
static List<Layout> findByUuid(String uuid)
          Returns all the layouts where uuid = ?.
static List<Layout> findByUuid(String uuid, int start, int end)
          Returns a range of all the layouts where uuid = ?.
static List<Layout> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where uuid = ?.
static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static LayoutPersistence getPersistence()
           
static Layout remove(long plid)
          Removes the layout with the primary key from the database.
static void removeAll()
          Removes all the layouts from the database.
static void removeByCompanyId(long companyId)
          Removes all the layouts where companyId = ? from the database.
static Layout removeByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.
static Layout removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database.
static void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database.
static Layout removeByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? from the database.
static void removeByG_P_T(long groupId, boolean privateLayout, String type)
          Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database.
static void removeByG_P(long groupId, boolean privateLayout)
          Removes all the layouts where groupId = ? and privateLayout = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the layouts where groupId = ? from the database.
static Layout removeByIconImageId(long iconImageId)
          Removes the layout where iconImageId = ? from the database.
static void removeByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Removes all the layouts where layoutPrototypeUuid = ? from the database.
static void removeBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database.
static Layout removeByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database.
static void removeByUuid(String uuid)
          Removes all the layouts where uuid = ? from the database.
 void setPersistence(LayoutPersistence persistence)
          Deprecated.  
static Layout update(Layout layout, boolean merge)
           
static Layout update(Layout layout, boolean merge, ServiceContext serviceContext)
           
static Layout updateImpl(Layout layout, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

public LayoutUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Layout layout)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Layout> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static Layout update(Layout layout,
                            boolean merge)
                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static Layout update(Layout layout,
                            boolean merge,
                            ServiceContext serviceContext)
                     throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(Layout layout)
Caches the layout in the entity cache if it is enabled.

Parameters:
layout - the layout

cacheResult

public static void cacheResult(List<Layout> layouts)
Caches the layouts in the entity cache if it is enabled.

Parameters:
layouts - the layouts

create

public static Layout create(long plid)
Creates a new layout with the primary key. Does not add the layout to the database.

Parameters:
plid - the primary key for the new layout
Returns:
the new layout

remove

public static Layout remove(long plid)
                     throws NoSuchLayoutException,
                            SystemException
Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
plid - the primary key of the layout
Returns:
the layout that was removed
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static Layout updateImpl(Layout layout,
                                boolean merge)
                         throws SystemException
Throws:
SystemException

findByPrimaryKey

public static Layout findByPrimaryKey(long plid)
                               throws NoSuchLayoutException,
                                      SystemException
Returns the layout with the primary key or throws a NoSuchLayoutException if it could not be found.

Parameters:
plid - the primary key of the layout
Returns:
the layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static Layout fetchByPrimaryKey(long plid)
                                throws SystemException
Returns the layout with the primary key or returns null if it could not be found.

Parameters:
plid - the primary key of the layout
Returns:
the layout, or null if a layout with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<Layout> findByUuid(String uuid)
                               throws SystemException
Returns all the layouts where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<Layout> findByUuid(String uuid,
                                      int start,
                                      int end)
                               throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<Layout> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static Layout findByUuid_First(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchLayoutException,
                                      SystemException
Returns the first layout in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public static Layout fetchByUuid_First(String uuid,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first layout in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public static Layout findByUuid_Last(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchLayoutException,
                                     SystemException
Returns the last layout in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public static Layout fetchByUuid_Last(String uuid,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last layout in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static Layout[] findByUuid_PrevAndNext(long plid,
                                              String uuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchLayoutException,
                                              SystemException
Returns the layouts before and after the current layout in the ordered set where uuid = ?.

Parameters:
plid - the primary key of the current layout
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByUUID_G_P

public static Layout findByUUID_G_P(String uuid,
                                    long groupId,
                                    boolean privateLayout)
                             throws NoSuchLayoutException,
                                    SystemException
Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByUUID_G_P

public static Layout fetchByUUID_G_P(String uuid,
                                     long groupId,
                                     boolean privateLayout)
                              throws SystemException
Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G_P

public static Layout fetchByUUID_G_P(String uuid,
                                     long groupId,
                                     boolean privateLayout,
                                     boolean retrieveFromCache)
                              throws SystemException
Returns the layout where uuid = ? and groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
privateLayout - the private layout
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Layout> findByGroupId(long groupId)
                                  throws SystemException
Returns all the layouts where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Layout> findByGroupId(long groupId,
                                         int start,
                                         int end)
                                  throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<Layout> findByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static Layout findByGroupId_First(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchLayoutException,
                                         SystemException
Returns the first layout in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public static Layout fetchByGroupId_First(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first layout in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public static Layout findByGroupId_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchLayoutException,
                                        SystemException
Returns the last layout in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public static Layout fetchByGroupId_Last(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last layout in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static Layout[] findByGroupId_PrevAndNext(long plid,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchLayoutException,
                                                 SystemException
Returns the layouts before and after the current layout in the ordered set where groupId = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Layout> filterFindByGroupId(long groupId)
                                        throws SystemException
Returns all the layouts that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Layout> filterFindByGroupId(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<Layout> filterFindByGroupId(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

public static Layout[] filterFindByGroupId_PrevAndNext(long plid,
                                                       long groupId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchLayoutException,
                                                       SystemException
Returns the layouts before and after the current layout in the ordered set of layouts that the user has permission to view where groupId = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByCompanyId

public static List<Layout> findByCompanyId(long companyId)
                                    throws SystemException
Returns all the layouts where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<Layout> findByCompanyId(long companyId,
                                           int start,
                                           int end)
                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<Layout> findByCompanyId(long companyId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static Layout findByCompanyId_First(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchLayoutException,
                                           SystemException
Returns the first layout in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public static Layout fetchByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first layout in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public static Layout findByCompanyId_Last(long companyId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchLayoutException,
                                          SystemException
Returns the last layout in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public static Layout fetchByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last layout in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static Layout[] findByCompanyId_PrevAndNext(long plid,
                                                   long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchLayoutException,
                                                   SystemException
Returns the layouts before and after the current layout in the ordered set where companyId = ?.

Parameters:
plid - the primary key of the current layout
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByIconImageId

public static Layout findByIconImageId(long iconImageId)
                                throws NoSuchLayoutException,
                                       SystemException
Returns the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
iconImageId - the icon image ID
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByIconImageId

public static Layout fetchByIconImageId(long iconImageId)
                                 throws SystemException
Returns the layout where iconImageId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
iconImageId - the icon image ID
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByIconImageId

public static Layout fetchByIconImageId(long iconImageId,
                                        boolean retrieveFromCache)
                                 throws SystemException
Returns the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
iconImageId - the icon image ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid

public static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid)
                                              throws SystemException
Returns all the layouts where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid

public static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid,
                                                     int start,
                                                     int end)
                                              throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid

public static List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid_First

public static Layout findByLayoutPrototypeUuid_First(String layoutPrototypeUuid,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchLayoutException,
                                                     SystemException
Returns the first layout in the ordered set where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByLayoutPrototypeUuid_First

public static Layout fetchByLayoutPrototypeUuid_First(String layoutPrototypeUuid,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Returns the first layout in the ordered set where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid_Last

public static Layout findByLayoutPrototypeUuid_Last(String layoutPrototypeUuid,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchLayoutException,
                                                    SystemException
Returns the last layout in the ordered set where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByLayoutPrototypeUuid_Last

public static Layout fetchByLayoutPrototypeUuid_Last(String layoutPrototypeUuid,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the last layout in the ordered set where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid_PrevAndNext

public static Layout[] findByLayoutPrototypeUuid_PrevAndNext(long plid,
                                                             String layoutPrototypeUuid,
                                                             OrderByComparator orderByComparator)
                                                      throws NoSuchLayoutException,
                                                             SystemException
Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?.

Parameters:
plid - the primary key of the current layout
layoutPrototypeUuid - the layout prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid

public static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
                                                    throws SystemException
Returns all the layouts where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid

public static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid,
                                                           int start,
                                                           int end)
                                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid

public static List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid,
                                                           int start,
                                                           int end,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid_First

public static Layout findBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchLayoutException,
                                                           SystemException
Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchBySourcePrototypeLayoutUuid_First

public static Layout fetchBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid_Last

public static Layout findBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid,
                                                          OrderByComparator orderByComparator)
                                                   throws NoSuchLayoutException,
                                                          SystemException
Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchBySourcePrototypeLayoutUuid_Last

public static Layout fetchBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid_PrevAndNext

public static Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext(long plid,
                                                                   String sourcePrototypeLayoutUuid,
                                                                   OrderByComparator orderByComparator)
                                                            throws NoSuchLayoutException,
                                                                   SystemException
Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Parameters:
plid - the primary key of the current layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByG_P

public static List<Layout> findByG_P(long groupId,
                                     boolean privateLayout)
                              throws SystemException
Returns all the layouts where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

public static List<Layout> findByG_P(long groupId,
                                     boolean privateLayout,
                                     int start,
                                     int end)
                              throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

public static List<Layout> findByG_P(long groupId,
                                     boolean privateLayout,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_First

public static Layout findByG_P_First(long groupId,
                                     boolean privateLayout,
                                     OrderByComparator orderByComparator)
                              throws NoSuchLayoutException,
                                     SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_First

public static Layout fetchByG_P_First(long groupId,
                                      boolean privateLayout,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_Last

public static Layout findByG_P_Last(long groupId,
                                    boolean privateLayout,
                                    OrderByComparator orderByComparator)
                             throws NoSuchLayoutException,
                                    SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_Last

public static Layout fetchByG_P_Last(long groupId,
                                     boolean privateLayout,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_PrevAndNext

public static Layout[] findByG_P_PrevAndNext(long plid,
                                             long groupId,
                                             boolean privateLayout,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchLayoutException,
                                             SystemException
Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_P

public static List<Layout> filterFindByG_P(long groupId,
                                           boolean privateLayout)
                                    throws SystemException
Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public static List<Layout> filterFindByG_P(long groupId,
                                           boolean privateLayout,
                                           int start,
                                           int end)
                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public static List<Layout> filterFindByG_P(long groupId,
                                           boolean privateLayout,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_PrevAndNext

public static Layout[] filterFindByG_P_PrevAndNext(long plid,
                                                   long groupId,
                                                   boolean privateLayout,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchLayoutException,
                                                   SystemException
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 = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByG_P_L

public static Layout findByG_P_L(long groupId,
                                 boolean privateLayout,
                                 long layoutId)
                          throws NoSuchLayoutException,
                                 SystemException
Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
groupId - the group ID
privateLayout - the private layout
layoutId - the layout ID
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_L

public static Layout fetchByG_P_L(long groupId,
                                  boolean privateLayout,
                                  long layoutId)
                           throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
layoutId - the layout ID
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_L

public static Layout fetchByG_P_L(long groupId,
                                  boolean privateLayout,
                                  long layoutId,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
layoutId - the layout ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_P

public static List<Layout> findByG_P_P(long groupId,
                                       boolean privateLayout,
                                       long parentLayoutId)
                                throws SystemException
Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P

public static List<Layout> findByG_P_P(long groupId,
                                       boolean privateLayout,
                                       long parentLayoutId,
                                       int start,
                                       int end)
                                throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P

public static List<Layout> findByG_P_P(long groupId,
                                       boolean privateLayout,
                                       long parentLayoutId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P_First

public static Layout findByG_P_P_First(long groupId,
                                       boolean privateLayout,
                                       long parentLayoutId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchLayoutException,
                                       SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_P_First

public static Layout fetchByG_P_P_First(long groupId,
                                        boolean privateLayout,
                                        long parentLayoutId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_P_Last

public static Layout findByG_P_P_Last(long groupId,
                                      boolean privateLayout,
                                      long parentLayoutId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchLayoutException,
                                      SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_P_Last

public static Layout fetchByG_P_P_Last(long groupId,
                                       boolean privateLayout,
                                       long parentLayoutId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_P_PrevAndNext

public static Layout[] findByG_P_P_PrevAndNext(long plid,
                                               long groupId,
                                               boolean privateLayout,
                                               long parentLayoutId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchLayoutException,
                                               SystemException
Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_P_P

public static List<Layout> filterFindByG_P_P(long groupId,
                                             boolean privateLayout,
                                             long parentLayoutId)
                                      throws SystemException
Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Returns:
the matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_P

public static List<Layout> filterFindByG_P_P(long groupId,
                                             boolean privateLayout,
                                             long parentLayoutId,
                                             int start,
                                             int end)
                                      throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_P

public static List<Layout> filterFindByG_P_P(long groupId,
                                             boolean privateLayout,
                                             long parentLayoutId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_P_PrevAndNext

public static Layout[] filterFindByG_P_P_PrevAndNext(long plid,
                                                     long groupId,
                                                     boolean privateLayout,
                                                     long parentLayoutId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchLayoutException,
                                                     SystemException
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 = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByG_P_F

public static Layout findByG_P_F(long groupId,
                                 boolean privateLayout,
                                 String friendlyURL)
                          throws NoSuchLayoutException,
                                 SystemException
Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
groupId - the group ID
privateLayout - the private layout
friendlyURL - the friendly u r l
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_F

public static Layout fetchByG_P_F(long groupId,
                                  boolean privateLayout,
                                  String friendlyURL)
                           throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
friendlyURL - the friendly u r l
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_F

public static Layout fetchByG_P_F(long groupId,
                                  boolean privateLayout,
                                  String friendlyURL,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
friendlyURL - the friendly u r l
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_T

public static List<Layout> findByG_P_T(long groupId,
                                       boolean privateLayout,
                                       String type)
                                throws SystemException
Returns all the layouts where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T

public static List<Layout> findByG_P_T(long groupId,
                                       boolean privateLayout,
                                       String type,
                                       int start,
                                       int end)
                                throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T

public static List<Layout> findByG_P_T(long groupId,
                                       boolean privateLayout,
                                       String type,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T_First

public static Layout findByG_P_T_First(long groupId,
                                       boolean privateLayout,
                                       String type,
                                       OrderByComparator orderByComparator)
                                throws NoSuchLayoutException,
                                       SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_T_First

public static Layout fetchByG_P_T_First(long groupId,
                                        boolean privateLayout,
                                        String type,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_T_Last

public static Layout findByG_P_T_Last(long groupId,
                                      boolean privateLayout,
                                      String type,
                                      OrderByComparator orderByComparator)
                               throws NoSuchLayoutException,
                                      SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_T_Last

public static Layout fetchByG_P_T_Last(long groupId,
                                       boolean privateLayout,
                                       String type,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_T_PrevAndNext

public static Layout[] findByG_P_T_PrevAndNext(long plid,
                                               long groupId,
                                               boolean privateLayout,
                                               String type,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchLayoutException,
                                               SystemException
Returns the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_P_T

public static List<Layout> filterFindByG_P_T(long groupId,
                                             boolean privateLayout,
                                             String type)
                                      throws SystemException
Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Returns:
the matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_T

public static List<Layout> filterFindByG_P_T(long groupId,
                                             boolean privateLayout,
                                             String type,
                                             int start,
                                             int end)
                                      throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_T

public static List<Layout> filterFindByG_P_T(long groupId,
                                             boolean privateLayout,
                                             String type,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_T_PrevAndNext

public static Layout[] filterFindByG_P_T_PrevAndNext(long plid,
                                                     long groupId,
                                                     boolean privateLayout,
                                                     String type,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchLayoutException,
                                                     SystemException
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 = ?.

Parameters:
plid - the primary key of the current layout
groupId - the group ID
privateLayout - the private layout
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

findByG_P_SPLU

public static Layout findByG_P_SPLU(long groupId,
                                    boolean privateLayout,
                                    String sourcePrototypeLayoutUuid)
                             throws NoSuchLayoutException,
                                    SystemException
Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
groupId - the group ID
privateLayout - the private layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_SPLU

public static Layout fetchByG_P_SPLU(long groupId,
                                     boolean privateLayout,
                                     String sourcePrototypeLayoutUuid)
                              throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_SPLU

public static Layout fetchByG_P_SPLU(long groupId,
                                     boolean privateLayout,
                                     String sourcePrototypeLayoutUuid,
                                     boolean retrieveFromCache)
                              throws SystemException
Returns the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<Layout> findAll()
                            throws SystemException
Returns all the layouts.

Returns:
the layouts
Throws:
SystemException - if a system exception occurred

findAll

public static List<Layout> findAll(int start,
                                   int end)
                            throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
Returns:
the range of layouts
Throws:
SystemException - if a system exception occurred

findAll

public static List<Layout> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
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 QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of layouts
end - the upper bound of the range of layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of layouts
Throws:
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the layouts where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

removeByUUID_G_P

public static Layout removeByUUID_G_P(String uuid,
                                      long groupId,
                                      boolean privateLayout)
                               throws NoSuchLayoutException,
                                      SystemException
Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
privateLayout - the private layout
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the layouts where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the layouts where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

removeByIconImageId

public static Layout removeByIconImageId(long iconImageId)
                                  throws NoSuchLayoutException,
                                         SystemException
Removes the layout where iconImageId = ? from the database.

Parameters:
iconImageId - the icon image ID
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByLayoutPrototypeUuid

public static void removeByLayoutPrototypeUuid(String layoutPrototypeUuid)
                                        throws SystemException
Removes all the layouts where layoutPrototypeUuid = ? from the database.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
Throws:
SystemException - if a system exception occurred

removeBySourcePrototypeLayoutUuid

public static void removeBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
                                              throws SystemException
Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Throws:
SystemException - if a system exception occurred

removeByG_P

public static void removeByG_P(long groupId,
                               boolean privateLayout)
                        throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
Throws:
SystemException - if a system exception occurred

removeByG_P_L

public static Layout removeByG_P_L(long groupId,
                                   boolean privateLayout,
                                   long layoutId)
                            throws NoSuchLayoutException,
                                   SystemException
Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
layoutId - the layout ID
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_P

public static void removeByG_P_P(long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId)
                          throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Throws:
SystemException - if a system exception occurred

removeByG_P_F

public static Layout removeByG_P_F(long groupId,
                                   boolean privateLayout,
                                   String friendlyURL)
                            throws NoSuchLayoutException,
                                   SystemException
Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
friendlyURL - the friendly u r l
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_T

public static void removeByG_P_T(long groupId,
                                 boolean privateLayout,
                                 String type)
                          throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Throws:
SystemException - if a system exception occurred

removeByG_P_SPLU

public static Layout removeByG_P_SPLU(long groupId,
                                      boolean privateLayout,
                                      String sourcePrototypeLayoutUuid)
                               throws NoSuchLayoutException,
                                      SystemException
Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the layouts from the database.

Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Returns the number of layouts where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByUUID_G_P

public static int countByUUID_G_P(String uuid,
                                  long groupId,
                                  boolean privateLayout)
                           throws SystemException
Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?.

Parameters:
uuid - the uuid
groupId - the group ID
privateLayout - the private layout
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Returns the number of layouts where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Returns the number of layouts that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Returns the number of layouts where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByIconImageId

public static int countByIconImageId(long iconImageId)
                              throws SystemException
Returns the number of layouts where iconImageId = ?.

Parameters:
iconImageId - the icon image ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByLayoutPrototypeUuid

public static int countByLayoutPrototypeUuid(String layoutPrototypeUuid)
                                      throws SystemException
Returns the number of layouts where layoutPrototypeUuid = ?.

Parameters:
layoutPrototypeUuid - the layout prototype uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countBySourcePrototypeLayoutUuid

public static int countBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
                                            throws SystemException
Returns the number of layouts where sourcePrototypeLayoutUuid = ?.

Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P

public static int countByG_P(long groupId,
                             boolean privateLayout)
                      throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

filterCountByG_P

public static int filterCountByG_P(long groupId,
                                   boolean privateLayout)
                            throws SystemException
Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the number of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_P_L

public static int countByG_P_L(long groupId,
                               boolean privateLayout,
                               long layoutId)
                        throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
layoutId - the layout ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_P

public static int countByG_P_P(long groupId,
                               boolean privateLayout,
                               long parentLayoutId)
                        throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

filterCountByG_P_P

public static int filterCountByG_P_P(long groupId,
                                     boolean privateLayout,
                                     long parentLayoutId)
                              throws SystemException
Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Returns:
the number of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_P_F

public static int countByG_P_F(long groupId,
                               boolean privateLayout,
                               String friendlyURL)
                        throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
friendlyURL - the friendly u r l
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_T

public static int countByG_P_T(long groupId,
                               boolean privateLayout,
                               String type)
                        throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

filterCountByG_P_T

public static int filterCountByG_P_T(long groupId,
                                     boolean privateLayout,
                                     String type)
                              throws SystemException
Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ? and type = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Returns:
the number of matching layouts that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_P_SPLU

public static int countByG_P_SPLU(long groupId,
                                  boolean privateLayout,
                                  String sourcePrototypeLayoutUuid)
                           throws SystemException
Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?.

Parameters:
groupId - the group ID
privateLayout - the private layout
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of layouts.

Returns:
the number of layouts
Throws:
SystemException - if a system exception occurred

getPersistence

public static LayoutPersistence getPersistence()

setPersistence

public void setPersistence(LayoutPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3