Liferay 6.0.5

com.liferay.portal.service.persistence
Interface LayoutPersistence

All Superinterfaces:
BasePersistence<Layout>
All Known Implementing Classes:
LayoutPersistenceImpl

public interface LayoutPersistence
extends BasePersistence<Layout>

The persistence interface for the layout service.

Never modify or reference this interface directly. Always use LayoutUtil to access the layout persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
LayoutPersistenceImpl, LayoutUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(Layout layout)
          Caches the layout in the entity cache if it is enabled.
 void cacheResult(List<Layout> layouts)
          Caches the layouts in the entity cache if it is enabled.
 int countAll()
          Counts all the layouts.
 int countByCompanyId(long companyId)
          Counts all the layouts where companyId = ?.
 int countByDLFolderId(long dlFolderId)
          Counts all the layouts where dlFolderId = ?.
 int countByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Counts all the layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.
 int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Counts all the layouts where groupId = ? and privateLayout = ? and layoutId = ?.
 int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Counts all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 int countByG_P_T(long groupId, boolean privateLayout, String type)
          Counts all the layouts where groupId = ? and privateLayout = ? and type = ?.
 int countByG_P(long groupId, boolean privateLayout)
          Counts all the layouts where groupId = ? and privateLayout = ?.
 int countByGroupId(long groupId)
          Counts all the layouts where groupId = ?.
 int countByIconImageId(long iconImageId)
          Counts all the layouts where iconImageId = ?.
 int countByUUID_G(String uuid, long groupId)
          Counts all the layouts where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Counts all the layouts where uuid = ?.
 Layout create(long plid)
          Creates a new layout with the primary key.
 Layout fetchByDLFolderId(long dlFolderId)
          Finds the layout where dlFolderId = ? or returns null if it could not be found.
 Layout fetchByDLFolderId(long dlFolderId, boolean retrieveFromCache)
          Finds the layout where dlFolderId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found.
 Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL, boolean retrieveFromCache)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found.
 Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId, boolean retrieveFromCache)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByIconImageId(long iconImageId)
          Finds the layout where iconImageId = ? or returns null if it could not be found.
 Layout fetchByIconImageId(long iconImageId, boolean retrieveFromCache)
          Finds the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByPrimaryKey(long plid)
          Finds the layout with the primary key or returns null if it could not be found.
 Layout fetchByUUID_G(String uuid, long groupId)
          Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found.
 Layout fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 List<Layout> findAll()
          Finds all the layouts.
 List<Layout> findAll(int start, int end)
          Finds a range of all the layouts.
 List<Layout> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts.
 Layout findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where companyId = ?.
 Layout findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where companyId = ?.
 Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where companyId = ?.
 List<Layout> findByCompanyId(long companyId)
          Finds all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where companyId = ?.
 Layout findByDLFolderId(long dlFolderId)
          Finds the layout where dlFolderId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Finds all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_T_First(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 Layout findByG_P_T_Last(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 Layout[] findByG_P_T_PrevAndNext(long plid, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type)
          Finds all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout)
          Finds all the layouts where groupId = ? and privateLayout = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ?.
 Layout findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ?.
 Layout findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ?.
 Layout[] findByGroupId_PrevAndNext(long plid, long groupId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ?.
 List<Layout> findByGroupId(long groupId)
          Finds all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end)
          Finds a range of all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ?.
 Layout findByIconImageId(long iconImageId)
          Finds the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByPrimaryKey(long plid)
          Finds the layout with the primary key or throws a NoSuchLayoutException if it could not be found.
 Layout findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where uuid = ?.
 Layout findByUUID_G(String uuid, long groupId)
          Finds the layout where uuid = ? and groupId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where uuid = ?.
 Layout[] findByUuid_PrevAndNext(long plid, String uuid, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where uuid = ?.
 List<Layout> findByUuid(String uuid)
          Finds all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end)
          Finds a range of all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where uuid = ?.
 Layout remove(long plid)
          Removes the layout with the primary key from the database.
 void removeAll()
          Removes all the layouts from the database.
 void removeByCompanyId(long companyId)
          Removes all the layouts where companyId = ? from the database.
 void removeByDLFolderId(long dlFolderId)
          Removes the layout where dlFolderId = ? from the database.
 void removeByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.
 void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database.
 void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database.
 void removeByG_P_T(long groupId, boolean privateLayout, String type)
          Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database.
 void removeByG_P(long groupId, boolean privateLayout)
          Removes all the layouts where groupId = ? and privateLayout = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the layouts where groupId = ? from the database.
 void removeByIconImageId(long iconImageId)
          Removes the layout where iconImageId = ? from the database.
 void removeByUUID_G(String uuid, long groupId)
          Removes the layout where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the layouts where uuid = ? from the database.
 Layout updateImpl(Layout layout, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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

Parameters:
layout - the layout to cache

cacheResult

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

Parameters:
layouts - the layouts to cache

create

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

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 to remove
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

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

findByPrimaryKey

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

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

fetchByPrimaryKey

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

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

findByUuid

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

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

findByUuid

List<Layout> findByUuid(String uuid,
                        int start,
                        int end)
                        throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

List<Layout> findByUuid(String uuid,
                        int start,
                        int end,
                        OrderByComparator orderByComparator)
                        throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid_First

Layout findByUuid_First(String uuid,
                        OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the first layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByUuid_Last

Layout findByUuid_Last(String uuid,
                       OrderByComparator orderByComparator)
                       throws NoSuchLayoutException,
                              SystemException
Finds the last layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

Layout[] findByUuid_PrevAndNext(long plid,
                                String uuid,
                                OrderByComparator orderByComparator)
                                throws NoSuchLayoutException,
                                       SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
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

Layout findByUUID_G(String uuid,
                    long groupId)
                    throws NoSuchLayoutException,
                           SystemException
Finds the layout where uuid = ? and groupId = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByUUID_G

Layout fetchByUUID_G(String uuid,
                     long groupId)
                     throws SystemException
Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

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

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group id to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

List<Layout> findByGroupId(long groupId,
                           int start,
                           int end)
                           throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

List<Layout> findByGroupId(long groupId,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId_First

Layout findByGroupId_First(long groupId,
                           OrderByComparator orderByComparator)
                           throws NoSuchLayoutException,
                                  SystemException
Finds the first layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByGroupId_Last

Layout findByGroupId_Last(long groupId,
                          OrderByComparator orderByComparator)
                          throws NoSuchLayoutException,
                                 SystemException
Finds the last layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

Layout[] findByGroupId_PrevAndNext(long plid,
                                   long groupId,
                                   OrderByComparator orderByComparator)
                                   throws NoSuchLayoutException,
                                          SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
groupId - the group id to search with
orderByComparator - the comparator to order the set by
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

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

Parameters:
companyId - the company id to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<Layout> findByCompanyId(long companyId,
                             int start,
                             int end)
                             throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<Layout> findByCompanyId(long companyId,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Finds 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 to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

Layout findByCompanyId_First(long companyId,
                             OrderByComparator orderByComparator)
                             throws NoSuchLayoutException,
                                    SystemException
Finds the first layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

Layout findByCompanyId_Last(long companyId,
                            OrderByComparator orderByComparator)
                            throws NoSuchLayoutException,
                                   SystemException
Finds the last layout in the ordered set 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 to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

Layout[] findByCompanyId_PrevAndNext(long plid,
                                     long companyId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchLayoutException,
                                            SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
companyId - the company id to search with
orderByComparator - the comparator to order the set by
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

findByDLFolderId

Layout findByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               SystemException
Finds the layout where dlFolderId = ? or throws a NoSuchLayoutException if it could not be found.

Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByDLFolderId

Layout fetchByDLFolderId(long dlFolderId)
                         throws SystemException
Finds the layout where dlFolderId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByDLFolderId

Layout fetchByDLFolderId(long dlFolderId,
                         boolean retrieveFromCache)
                         throws SystemException
Finds the layout where dlFolderId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByIconImageId

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

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

fetchByIconImageId

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

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

fetchByIconImageId

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

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

findByG_P

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

Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

List<Layout> findByG_P(long groupId,
                       boolean privateLayout,
                       int start,
                       int end)
                       throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

List<Layout> findByG_P(long groupId,
                       boolean privateLayout,
                       int start,
                       int end,
                       OrderByComparator orderByComparator)
                       throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_First

Layout findByG_P_First(long groupId,
                       boolean privateLayout,
                       OrderByComparator orderByComparator)
                       throws NoSuchLayoutException,
                              SystemException
Finds the first layout in the ordered set 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 to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_Last

Layout findByG_P_Last(long groupId,
                      boolean privateLayout,
                      OrderByComparator orderByComparator)
                      throws NoSuchLayoutException,
                             SystemException
Finds the last layout in the ordered set 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 to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_PrevAndNext

Layout[] findByG_P_PrevAndNext(long plid,
                               long groupId,
                               boolean privateLayout,
                               OrderByComparator orderByComparator)
                               throws NoSuchLayoutException,
                                      SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
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

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

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

fetchByG_P_L

Layout fetchByG_P_L(long groupId,
                    boolean privateLayout,
                    long layoutId)
                    throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_L

Layout fetchByG_P_L(long groupId,
                    boolean privateLayout,
                    long layoutId,
                    boolean retrieveFromCache)
                    throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_P

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

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

findByG_P_P

List<Layout> findByG_P_P(long groupId,
                         boolean privateLayout,
                         long parentLayoutId,
                         int start,
                         int end)
                         throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P

List<Layout> findByG_P_P(long groupId,
                         boolean privateLayout,
                         long parentLayoutId,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P_First

Layout findByG_P_P_First(long groupId,
                         boolean privateLayout,
                         long parentLayoutId,
                         OrderByComparator orderByComparator)
                         throws NoSuchLayoutException,
                                SystemException
Finds the first layout in the ordered set 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 to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_P_Last

Layout findByG_P_P_Last(long groupId,
                        boolean privateLayout,
                        long parentLayoutId,
                        OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the last layout in the ordered set 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 to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_P_PrevAndNext

Layout[] findByG_P_P_PrevAndNext(long plid,
                                 long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchLayoutException,
                                        SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
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

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

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

fetchByG_P_F

Layout fetchByG_P_F(long groupId,
                    boolean privateLayout,
                    String friendlyURL)
                    throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_F

Layout fetchByG_P_F(long groupId,
                    boolean privateLayout,
                    String friendlyURL,
                    boolean retrieveFromCache)
                    throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_T

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

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

findByG_P_T

List<Layout> findByG_P_T(long groupId,
                         boolean privateLayout,
                         String type,
                         int start,
                         int end)
                         throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
type - the type to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T

List<Layout> findByG_P_T(long groupId,
                         boolean privateLayout,
                         String type,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
Finds 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 to search with
privateLayout - the private layout to search with
type - the type to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T_First

Layout findByG_P_T_First(long groupId,
                         boolean privateLayout,
                         String type,
                         OrderByComparator orderByComparator)
                         throws NoSuchLayoutException,
                                SystemException
Finds the first layout in the ordered set 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 to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_T_Last

Layout findByG_P_T_Last(long groupId,
                        boolean privateLayout,
                        String type,
                        OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the last layout in the ordered set 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 to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_T_PrevAndNext

Layout[] findByG_P_T_PrevAndNext(long plid,
                                 long groupId,
                                 boolean privateLayout,
                                 String type,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchLayoutException,
                                        SystemException
Finds the layouts before and after the current layout in the ordered set 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:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
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

findAll

List<Layout> findAll()
                     throws SystemException
Finds all the layouts.

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

findAll

List<Layout> findAll(int start,
                     int end)
                     throws SystemException
Finds 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 to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of layouts
Throws:
SystemException - if a system exception occurred

findAll

List<Layout> findAll(int start,
                     int end,
                     OrderByComparator orderByComparator)
                     throws SystemException
Finds 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 to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of layouts
Throws:
SystemException - if a system exception occurred

removeByUuid

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

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

removeByUUID_G

void removeByUUID_G(String uuid,
                    long groupId)
                    throws NoSuchLayoutException,
                           SystemException
Removes the layout where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByGroupId

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

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByDLFolderId

void removeByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               SystemException
Removes the layout where dlFolderId = ? from the database.

Parameters:
dlFolderId - the dl folder id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByIconImageId

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

Parameters:
iconImageId - the icon image id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P

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 to search with
privateLayout - the private layout to search with
Throws:
SystemException - if a system exception occurred

removeByG_P_L

void 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 to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_P

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 to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
Throws:
SystemException - if a system exception occurred

removeByG_P_F

void 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 to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_T

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 to search with
privateLayout - the private layout to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
Counts all the layouts where uuid = ?.

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

countByUUID_G

int countByUUID_G(String uuid,
                  long groupId)
                  throws SystemException
Counts all the layouts where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Counts all the layouts where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Counts all the layouts where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByDLFolderId

int countByDLFolderId(long dlFolderId)
                      throws SystemException
Counts all the layouts where dlFolderId = ?.

Parameters:
dlFolderId - the dl folder id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByIconImageId

int countByIconImageId(long iconImageId)
                       throws SystemException
Counts all the layouts where iconImageId = ?.

Parameters:
iconImageId - the icon image id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P

int countByG_P(long groupId,
               boolean privateLayout)
               throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ?.

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

countByG_P_L

int countByG_P_L(long groupId,
                 boolean privateLayout,
                 long layoutId)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and layoutId = ?.

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

countByG_P_P

int countByG_P_P(long groupId,
                 boolean privateLayout,
                 long parentLayoutId)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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

countByG_P_F

int countByG_P_F(long groupId,
                 boolean privateLayout,
                 String friendlyURL)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.

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

countByG_P_T

int countByG_P_T(long groupId,
                 boolean privateLayout,
                 String type)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and type = ?.

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

countAll

int countAll()
             throws SystemException
Counts all the layouts.

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

Liferay 6.0.5