Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class LayoutPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Layout>
      extended by com.liferay.portal.service.persistence.LayoutPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<Layout>, LayoutPersistence

public class LayoutPersistenceImpl
extends BasePersistenceImpl<Layout>
implements LayoutPersistence

The persistence implementation for the layout service.

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_F
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_L
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_SPLU
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_T
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_ICONIMAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_LAYOUTPROTOTYPEUUID
           
static FinderPath FINDER_PATH_COUNT_BY_SOURCEPROTOTYPELAYOUTUUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G_P
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_F
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_L
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_SPLU
           
static FinderPath FINDER_PATH_FETCH_BY_ICONIMAGEID
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
LayoutPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the layout persistence.
 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.
protected  void cacheUniqueFindersCache(Layout layout)
           
 void clearCache()
          Clears the cache for all layouts.
 void clearCache(Layout layout)
          Clears the cache for the layout.
 void clearCache(List<Layout> layouts)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(Layout layout)
           
 int countAll()
          Returns the number of layouts.
 int countByCompanyId(long companyId)
          Returns the number of layouts where companyId = ?.
 int countByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Returns the number of layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.
 int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Returns the number of layouts where groupId = ? and privateLayout = ? and layoutId = ?.
 int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns the number of layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 int countByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Returns the number of layouts where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ?.
 int countByG_P_T(long groupId, boolean privateLayout, String type)
          Returns the number of layouts where groupId = ? and privateLayout = ? and type = ?.
 int countByG_P(long groupId, boolean privateLayout)
          Returns the number of layouts where groupId = ? and privateLayout = ?.
 int countByGroupId(long groupId)
          Returns the number of layouts where groupId = ?.
 int countByIconImageId(long iconImageId)
          Returns the number of layouts where iconImageId = ?.
 int countByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Returns the number of layouts where layoutPrototypeUuid = ?.
 int countBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Returns the number of layouts where sourcePrototypeLayoutUuid = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of layouts where uuid = ? and companyId = ?.
 int countByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Returns the number of layouts where uuid = ? and groupId = ? and privateLayout = ?.
 int countByUuid(String uuid)
          Returns the number of layouts where uuid = ?.
 Layout create(long plid)
          Creates a new layout with the primary key.
 void destroy()
           
 Layout fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where companyId = ?.
 Layout fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where companyId = ?.
 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.
 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.
 Layout fetchByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.
 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.
 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.
 Layout fetchByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.
 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 = ?.
 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 = ?.
 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.
 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.
 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 = ?.
 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 = ?.
 Layout fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ?.
 Layout fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ?.
 Layout fetchByIconImageId(long iconImageId)
          Returns the layout where iconImageId = ? or returns null if it could not be found.
 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.
 Layout fetchByLayoutPrototypeUuid_First(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where layoutPrototypeUuid = ?.
 Layout fetchByLayoutPrototypeUuid_Last(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where layoutPrototypeUuid = ?.
 Layout fetchByPrimaryKey(long plid)
          Returns the layout with the primary key or returns null if it could not be found.
 Layout fetchByPrimaryKey(Serializable primaryKey)
          Returns the layout with the primary key or returns null if it could not be found.
 Layout fetchBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.
 Layout fetchBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.
 Layout fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ? and companyId = ?.
 Layout fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ? and companyId = ?.
 Layout fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ?.
 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.
 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.
 Layout fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ?.
 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 = ?.
 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 = ?.
 int filterCountByG_P(long groupId, boolean privateLayout)
          Returns the number of layouts that the user has permission to view where groupId = ? and privateLayout = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of layouts that the user has permission to view where groupId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<Layout> filterFindByG_P(long groupId, boolean privateLayout)
          Returns all the layouts that the user has permission to view where groupId = ? and privateLayout = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<Layout> filterFindByGroupId(long groupId)
          Returns all the layouts that the user has permission to view where groupId = ?.
 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 = ?.
 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 = ?.
protected  Layout filterGetByG_P_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout filterGetByG_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout filterGetByG_P_T_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout filterGetByGroupId_PrevAndNext(Session session, Layout layout, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 List<Layout> findAll()
          Returns all the layouts.
 List<Layout> findAll(int start, int end)
          Returns a range of all the layouts.
 List<Layout> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts.
 Layout findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where companyId = ?.
 Layout findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where companyId = ?.
 Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where companyId = ?.
 List<Layout> findByCompanyId(long companyId)
          Returns all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where companyId = ?.
 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.
 Layout findByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.
 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.
 Layout findByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Returns all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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.
 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 = ?.
 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 = ?.
 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 = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type)
          Returns all the layouts where groupId = ? and privateLayout = ? and type = ?.
 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 = ?.
 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 = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout)
          Returns all the layouts where groupId = ? and privateLayout = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end)
          Returns a range of all the layouts where groupId = ? and privateLayout = ?.
 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 = ?.
 Layout findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where groupId = ?.
 Layout findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where groupId = ?.
 Layout[] findByGroupId_PrevAndNext(long plid, long groupId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where groupId = ?.
 List<Layout> findByGroupId(long groupId)
          Returns all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end)
          Returns a range of all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where groupId = ?.
 Layout findByIconImageId(long iconImageId)
          Returns the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByLayoutPrototypeUuid_First(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where layoutPrototypeUuid = ?.
 Layout findByLayoutPrototypeUuid_Last(String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where layoutPrototypeUuid = ?.
 Layout[] findByLayoutPrototypeUuid_PrevAndNext(long plid, String layoutPrototypeUuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where layoutPrototypeUuid = ?.
 List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Returns all the layouts where layoutPrototypeUuid = ?.
 List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid, int start, int end)
          Returns a range of all the layouts where layoutPrototypeUuid = ?.
 List<Layout> findByLayoutPrototypeUuid(String layoutPrototypeUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where layoutPrototypeUuid = ?.
 Layout findByPrimaryKey(long plid)
          Returns the layout with the primary key or throws a NoSuchLayoutException if it could not be found.
 Layout findByPrimaryKey(Serializable primaryKey)
          Returns the layout with the primary key or throws a NoSuchModelException if it could not be found.
 Layout findBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.
 Layout findBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.
 Layout[] findBySourcePrototypeLayoutUuid_PrevAndNext(long plid, String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where sourcePrototypeLayoutUuid = ?.
 List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Returns all the layouts where sourcePrototypeLayoutUuid = ?.
 List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid, int start, int end)
          Returns a range of all the layouts where sourcePrototypeLayoutUuid = ?.
 List<Layout> findBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where sourcePrototypeLayoutUuid = ?.
 Layout findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ? and companyId = ?.
 Layout findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ? and companyId = ?.
 Layout[] findByUuid_C_PrevAndNext(long plid, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where uuid = ? and companyId = ?.
 List<Layout> findByUuid_C(String uuid, long companyId)
          Returns all the layouts where uuid = ? and companyId = ?.
 List<Layout> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the layouts where uuid = ? and companyId = ?.
 List<Layout> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where uuid = ? and companyId = ?.
 Layout findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first layout in the ordered set where uuid = ?.
 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.
 Layout findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last layout in the ordered set where uuid = ?.
 Layout[] findByUuid_PrevAndNext(long plid, String uuid, OrderByComparator orderByComparator)
          Returns the layouts before and after the current layout in the ordered set where uuid = ?.
 List<Layout> findByUuid(String uuid)
          Returns all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end)
          Returns a range of all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layouts where uuid = ?.
protected  Set<String> getBadColumnNames()
           
protected  Layout getByCompanyId_PrevAndNext(Session session, Layout layout, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_T_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByGroupId_PrevAndNext(Session session, Layout layout, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByLayoutPrototypeUuid_PrevAndNext(Session session, Layout layout, String layoutPrototypeUuid, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getBySourcePrototypeLayoutUuid_PrevAndNext(Session session, Layout layout, String sourcePrototypeLayoutUuid, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByUuid_C_PrevAndNext(Session session, Layout layout, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByUuid_PrevAndNext(Session session, Layout layout, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 Layout remove(long plid)
          Removes the layout with the primary key from the database.
 Layout remove(Serializable primaryKey)
          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.
 Layout removeByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.
 Layout 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.
 Layout removeByG_P_SPLU(long groupId, boolean privateLayout, String sourcePrototypeLayoutUuid)
          Removes the layout where groupId = ? and privateLayout = ? and sourcePrototypeLayoutUuid = ? 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.
 Layout removeByIconImageId(long iconImageId)
          Removes the layout where iconImageId = ? from the database.
 void removeByLayoutPrototypeUuid(String layoutPrototypeUuid)
          Removes all the layouts where layoutPrototypeUuid = ? from the database.
 void removeBySourcePrototypeLayoutUuid(String sourcePrototypeLayoutUuid)
          Removes all the layouts where sourcePrototypeLayoutUuid = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the layouts where uuid = ? and companyId = ? from the database.
 Layout removeByUUID_G_P(String uuid, long groupId, boolean privateLayout)
          Removes the layout where uuid = ? and groupId = ? and privateLayout = ? from the database.
 void removeByUuid(String uuid)
          Removes all the layouts where uuid = ? from the database.
protected  Layout removeImpl(Layout layout)
          Removes the model instance from the database.
protected  Layout toUnwrappedModel(Layout layout)
           
 Layout updateImpl(Layout layout)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G_P

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G_P

FINDER_PATH_COUNT_BY_UUID_G_P

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G_P

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_ICONIMAGEID

public static final FinderPath FINDER_PATH_FETCH_BY_ICONIMAGEID

FINDER_PATH_COUNT_BY_ICONIMAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_ICONIMAGEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTPROTOTYPEUUID

FINDER_PATH_COUNT_BY_LAYOUTPROTOTYPEUUID

public static final FinderPath FINDER_PATH_COUNT_BY_LAYOUTPROTOTYPEUUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SOURCEPROTOTYPELAYOUTUUID

FINDER_PATH_COUNT_BY_SOURCEPROTOTYPELAYOUTUUID

public static final FinderPath FINDER_PATH_COUNT_BY_SOURCEPROTOTYPELAYOUTUUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P

FINDER_PATH_COUNT_BY_G_P

public static final FinderPath FINDER_PATH_COUNT_BY_G_P

FINDER_PATH_FETCH_BY_G_P_L

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_L

FINDER_PATH_COUNT_BY_G_P_L

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_L

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_P

FINDER_PATH_COUNT_BY_G_P_P

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_P

FINDER_PATH_FETCH_BY_G_P_F

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_F

FINDER_PATH_COUNT_BY_G_P_F

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_F

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_T

FINDER_PATH_COUNT_BY_G_P_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_T

FINDER_PATH_FETCH_BY_G_P_SPLU

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_SPLU

FINDER_PATH_COUNT_BY_G_P_SPLU

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_SPLU
Constructor Detail

LayoutPersistenceImpl

public LayoutPersistenceImpl()
Method Detail

findByUuid

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

Specified by:
findByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid in interface LayoutPersistence
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 Layout findByUuid_First(String uuid,
                               OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Returns the first layout in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface LayoutPersistence
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 Layout fetchByUuid_First(String uuid,
                                OrderByComparator orderByComparator)
                         throws SystemException
Returns the first layout in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface LayoutPersistence
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 Layout findByUuid_Last(String uuid,
                              OrderByComparator orderByComparator)
                       throws NoSuchLayoutException,
                              SystemException
Returns the last layout in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface LayoutPersistence
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 Layout fetchByUuid_Last(String uuid,
                               OrderByComparator orderByComparator)
                        throws SystemException
Returns the last layout in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByUuid_PrevAndNext in interface LayoutPersistence
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

getByUuid_PrevAndNext

protected Layout getByUuid_PrevAndNext(Session session,
                                       Layout layout,
                                       String uuid,
                                       OrderByComparator orderByComparator,
                                       boolean previous)

removeByUuid

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

Specified by:
removeByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

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

Specified by:
countByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findByUUID_G_P

public 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.

Specified by:
findByUUID_G_P in interface LayoutPersistence
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 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.

Specified by:
fetchByUUID_G_P in interface LayoutPersistence
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 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.

Specified by:
fetchByUUID_G_P in interface LayoutPersistence
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

removeByUUID_G_P

public 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.

Specified by:
removeByUUID_G_P in interface LayoutPersistence
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

countByUUID_G_P

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

Specified by:
countByUUID_G_P in interface LayoutPersistence
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

findByUuid_C

public List<Layout> findByUuid_C(String uuid,
                                 long companyId)
                          throws SystemException
Returns all the layouts where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface LayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<Layout> findByUuid_C(String uuid,
                                 long companyId,
                                 int start,
                                 int end)
                          throws SystemException
Returns a range of all the layouts where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface LayoutPersistence
Parameters:
uuid - the uuid
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

findByUuid_C

public List<Layout> findByUuid_C(String uuid,
                                 long companyId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the layouts where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByUuid_C in interface LayoutPersistence
Parameters:
uuid - the uuid
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

findByUuid_C_First

public Layout findByUuid_C_First(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchLayoutException,
                                 SystemException
Returns the first layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface LayoutPersistence
Parameters:
uuid - the uuid
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

fetchByUuid_C_First

public Layout fetchByUuid_C_First(String uuid,
                                  long companyId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface LayoutPersistence
Parameters:
uuid - the uuid
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

findByUuid_C_Last

public Layout findByUuid_C_Last(String uuid,
                                long companyId,
                                OrderByComparator orderByComparator)
                         throws NoSuchLayoutException,
                                SystemException
Returns the last layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface LayoutPersistence
Parameters:
uuid - the uuid
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

fetchByUuid_C_Last

public Layout fetchByUuid_C_Last(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface LayoutPersistence
Parameters:
uuid - the uuid
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

findByUuid_C_PrevAndNext

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

Specified by:
findByUuid_C_PrevAndNext in interface LayoutPersistence
Parameters:
plid - the primary key of the current layout
uuid - the uuid
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

getByUuid_C_PrevAndNext

protected Layout getByUuid_C_PrevAndNext(Session session,
                                         Layout layout,
                                         String uuid,
                                         long companyId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
                    throws SystemException
Removes all the layouts where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface LayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
                  throws SystemException
Returns the number of layouts where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface LayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Specified by:
findByGroupId in interface LayoutPersistence
Parameters:
groupId - the group ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByGroupId in interface LayoutPersistence
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 Layout findByGroupId_First(long groupId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchLayoutException,
                                  SystemException
Returns the first layout in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface LayoutPersistence
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 Layout fetchByGroupId_First(long groupId,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the first layout in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface LayoutPersistence
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 Layout findByGroupId_Last(long groupId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchLayoutException,
                                 SystemException
Returns the last layout in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface LayoutPersistence
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 Layout fetchByGroupId_Last(long groupId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the last layout in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByGroupId_PrevAndNext in interface LayoutPersistence
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

getByGroupId_PrevAndNext

protected Layout getByGroupId_PrevAndNext(Session session,
                                          Layout layout,
                                          long groupId,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByGroupId in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByGroupId in interface LayoutPersistence
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 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 = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface LayoutPersistence
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

filterGetByGroupId_PrevAndNext

protected Layout filterGetByGroupId_PrevAndNext(Session session,
                                                Layout layout,
                                                long groupId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface LayoutPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface LayoutPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface LayoutPersistence
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

findByCompanyId

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

Specified by:
findByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company ID
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByCompanyId in interface LayoutPersistence
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 Layout findByCompanyId_First(long companyId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchLayoutException,
                                    SystemException
Returns the first layout in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface LayoutPersistence
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 Layout fetchByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first layout in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface LayoutPersistence
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 Layout findByCompanyId_Last(long companyId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchLayoutException,
                                   SystemException
Returns the last layout in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface LayoutPersistence
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 Layout fetchByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last layout in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByCompanyId_PrevAndNext in interface LayoutPersistence
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

getByCompanyId_PrevAndNext

protected Layout getByCompanyId_PrevAndNext(Session session,
                                            Layout layout,
                                            long companyId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByCompanyId

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

Specified by:
removeByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

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

Specified by:
countByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findByIconImageId

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

Specified by:
findByIconImageId in interface LayoutPersistence
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 Layout fetchByIconImageId(long iconImageId)
                          throws SystemException
Returns the layout where iconImageId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByIconImageId in interface LayoutPersistence
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 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.

Specified by:
fetchByIconImageId in interface LayoutPersistence
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

removeByIconImageId

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

Specified by:
removeByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image ID
Returns:
the layout that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

countByIconImageId

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

Specified by:
countByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image ID
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid

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

Specified by:
findByLayoutPrototypeUuid in interface LayoutPersistence
Parameters:
layoutPrototypeUuid - the layout prototype uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByLayoutPrototypeUuid

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByLayoutPrototypeUuid in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByLayoutPrototypeUuid in interface LayoutPersistence
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 Layout findByLayoutPrototypeUuid_First(String layoutPrototypeUuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchLayoutException,
                                              SystemException
Returns the first layout in the ordered set where layoutPrototypeUuid = ?.

Specified by:
findByLayoutPrototypeUuid_First in interface LayoutPersistence
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 Layout fetchByLayoutPrototypeUuid_First(String layoutPrototypeUuid,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the first layout in the ordered set where layoutPrototypeUuid = ?.

Specified by:
fetchByLayoutPrototypeUuid_First in interface LayoutPersistence
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 Layout findByLayoutPrototypeUuid_Last(String layoutPrototypeUuid,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchLayoutException,
                                             SystemException
Returns the last layout in the ordered set where layoutPrototypeUuid = ?.

Specified by:
findByLayoutPrototypeUuid_Last in interface LayoutPersistence
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 Layout fetchByLayoutPrototypeUuid_Last(String layoutPrototypeUuid,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the last layout in the ordered set where layoutPrototypeUuid = ?.

Specified by:
fetchByLayoutPrototypeUuid_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByLayoutPrototypeUuid_PrevAndNext in interface LayoutPersistence
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

getByLayoutPrototypeUuid_PrevAndNext

protected Layout getByLayoutPrototypeUuid_PrevAndNext(Session session,
                                                      Layout layout,
                                                      String layoutPrototypeUuid,
                                                      OrderByComparator orderByComparator,
                                                      boolean previous)

removeByLayoutPrototypeUuid

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

Specified by:
removeByLayoutPrototypeUuid in interface LayoutPersistence
Parameters:
layoutPrototypeUuid - the layout prototype uuid
Throws:
SystemException - if a system exception occurred

countByLayoutPrototypeUuid

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

Specified by:
countByLayoutPrototypeUuid in interface LayoutPersistence
Parameters:
layoutPrototypeUuid - the layout prototype uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid

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

Specified by:
findBySourcePrototypeLayoutUuid in interface LayoutPersistence
Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findBySourcePrototypeLayoutUuid

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findBySourcePrototypeLayoutUuid in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findBySourcePrototypeLayoutUuid in interface LayoutPersistence
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 Layout findBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchLayoutException,
                                                    SystemException
Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Specified by:
findBySourcePrototypeLayoutUuid_First in interface LayoutPersistence
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 Layout fetchBySourcePrototypeLayoutUuid_First(String sourcePrototypeLayoutUuid,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Specified by:
fetchBySourcePrototypeLayoutUuid_First in interface LayoutPersistence
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 Layout findBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchLayoutException,
                                                   SystemException
Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Specified by:
findBySourcePrototypeLayoutUuid_Last in interface LayoutPersistence
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 Layout fetchBySourcePrototypeLayoutUuid_Last(String sourcePrototypeLayoutUuid,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last layout in the ordered set where sourcePrototypeLayoutUuid = ?.

Specified by:
fetchBySourcePrototypeLayoutUuid_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findBySourcePrototypeLayoutUuid_PrevAndNext in interface LayoutPersistence
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

getBySourcePrototypeLayoutUuid_PrevAndNext

protected Layout getBySourcePrototypeLayoutUuid_PrevAndNext(Session session,
                                                            Layout layout,
                                                            String sourcePrototypeLayoutUuid,
                                                            OrderByComparator orderByComparator,
                                                            boolean previous)

removeBySourcePrototypeLayoutUuid

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

Specified by:
removeBySourcePrototypeLayoutUuid in interface LayoutPersistence
Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Throws:
SystemException - if a system exception occurred

countBySourcePrototypeLayoutUuid

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

Specified by:
countBySourcePrototypeLayoutUuid in interface LayoutPersistence
Parameters:
sourcePrototypeLayoutUuid - the source prototype layout uuid
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

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

Specified by:
findByG_P in interface LayoutPersistence
Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_First in interface LayoutPersistence
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 Layout fetchByG_P_First(long groupId,
                               boolean privateLayout,
                               OrderByComparator orderByComparator)
                        throws SystemException
Returns the first layout in the ordered set where groupId = ? and privateLayout = ?.

Specified by:
fetchByG_P_First in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_Last in interface LayoutPersistence
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 Layout fetchByG_P_Last(long groupId,
                              boolean privateLayout,
                              OrderByComparator orderByComparator)
                       throws SystemException
Returns the last layout in the ordered set where groupId = ? and privateLayout = ?.

Specified by:
fetchByG_P_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_PrevAndNext in interface LayoutPersistence
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

getByG_P_PrevAndNext

protected Layout getByG_P_PrevAndNext(Session session,
                                      Layout layout,
                                      long groupId,
                                      boolean privateLayout,
                                      OrderByComparator orderByComparator,
                                      boolean previous)

filterFindByG_P

public 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 = ?.

Specified by:
filterFindByG_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P in interface LayoutPersistence
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 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 = ?.

Specified by:
filterFindByG_P_PrevAndNext in interface LayoutPersistence
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

filterGetByG_P_PrevAndNext

protected Layout filterGetByG_P_PrevAndNext(Session session,
                                            Layout layout,
                                            long groupId,
                                            boolean privateLayout,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByG_P

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

Specified by:
removeByG_P in interface LayoutPersistence
Parameters:
groupId - the group ID
privateLayout - the private layout
Throws:
SystemException - if a system exception occurred

countByG_P

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

Specified by:
countByG_P in interface LayoutPersistence
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 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 = ?.

Specified by:
filterCountByG_P in interface LayoutPersistence
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

findByG_P_L

public 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.

Specified by:
findByG_P_L in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_L in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_L in interface LayoutPersistence
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

removeByG_P_L

public 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.

Specified by:
removeByG_P_L in interface LayoutPersistence
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

countByG_P_L

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

Specified by:
countByG_P_L in interface LayoutPersistence
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

findByG_P_P

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

Specified by:
findByG_P_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_P in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_P_First in interface LayoutPersistence
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 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 = ?.

Specified by:
fetchByG_P_P_First in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_P_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
fetchByG_P_P_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_P_PrevAndNext in interface LayoutPersistence
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

getByG_P_P_PrevAndNext

protected Layout getByG_P_P_PrevAndNext(Session session,
                                        Layout layout,
                                        long groupId,
                                        boolean privateLayout,
                                        long parentLayoutId,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

filterFindByG_P_P

public 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 = ?.

Specified by:
filterFindByG_P_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_P in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_P in interface LayoutPersistence
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 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 = ?.

Specified by:
filterFindByG_P_P_PrevAndNext in interface LayoutPersistence
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

filterGetByG_P_P_PrevAndNext

protected Layout filterGetByG_P_P_PrevAndNext(Session session,
                                              Layout layout,
                                              long groupId,
                                              boolean privateLayout,
                                              long parentLayoutId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByG_P_P

public 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.

Specified by:
removeByG_P_P in interface LayoutPersistence
Parameters:
groupId - the group ID
privateLayout - the private layout
parentLayoutId - the parent layout ID
Throws:
SystemException - if a system exception occurred

countByG_P_P

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

Specified by:
countByG_P_P in interface LayoutPersistence
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 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 = ?.

Specified by:
filterCountByG_P_P in interface LayoutPersistence
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

findByG_P_F

public 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.

Specified by:
findByG_P_F in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_F in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_F in interface LayoutPersistence
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

removeByG_P_F

public 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.

Specified by:
removeByG_P_F in interface LayoutPersistence
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

countByG_P_F

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

Specified by:
countByG_P_F in interface LayoutPersistence
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

findByG_P_T

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

Specified by:
findByG_P_T in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_T in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findByG_P_T in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_T_First in interface LayoutPersistence
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 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 = ?.

Specified by:
fetchByG_P_T_First in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_T_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
fetchByG_P_T_Last in interface LayoutPersistence
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 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 = ?.

Specified by:
findByG_P_T_PrevAndNext in interface LayoutPersistence
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

getByG_P_T_PrevAndNext

protected Layout getByG_P_T_PrevAndNext(Session session,
                                        Layout layout,
                                        long groupId,
                                        boolean privateLayout,
                                        String type,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

filterFindByG_P_T

public 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 = ?.

Specified by:
filterFindByG_P_T in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_T in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
filterFindByG_P_T in interface LayoutPersistence
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 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 = ?.

Specified by:
filterFindByG_P_T_PrevAndNext in interface LayoutPersistence
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

filterGetByG_P_T_PrevAndNext

protected Layout filterGetByG_P_T_PrevAndNext(Session session,
                                              Layout layout,
                                              long groupId,
                                              boolean privateLayout,
                                              String type,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByG_P_T

public 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.

Specified by:
removeByG_P_T in interface LayoutPersistence
Parameters:
groupId - the group ID
privateLayout - the private layout
type - the type
Throws:
SystemException - if a system exception occurred

countByG_P_T

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

Specified by:
countByG_P_T in interface LayoutPersistence
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 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 = ?.

Specified by:
filterCountByG_P_T in interface LayoutPersistence
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

findByG_P_SPLU

public 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.

Specified by:
findByG_P_SPLU in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_SPLU in interface LayoutPersistence
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 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.

Specified by:
fetchByG_P_SPLU in interface LayoutPersistence
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

removeByG_P_SPLU

public 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.

Specified by:
removeByG_P_SPLU in interface LayoutPersistence
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

countByG_P_SPLU

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

Specified by:
countByG_P_SPLU in interface LayoutPersistence
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

cacheResult

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

Specified by:
cacheResult in interface LayoutPersistence
Parameters:
layout - the layout

cacheResult

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

Specified by:
cacheResult in interface LayoutPersistence
Parameters:
layouts - the layouts

clearCache

public void clearCache()
Clears the cache for all layouts.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Layout>
Overrides:
clearCache in class BasePersistenceImpl<Layout>

clearCache

public void clearCache(Layout layout)
Clears the cache for the layout.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Layout>
Overrides:
clearCache in class BasePersistenceImpl<Layout>
Parameters:
layout - the instance of this model to clear the cache for

clearCache

public void clearCache(List<Layout> layouts)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Layout>
Overrides:
clearCache in class BasePersistenceImpl<Layout>
Parameters:
layouts - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(Layout layout)

clearUniqueFindersCache

protected void clearUniqueFindersCache(Layout layout)

create

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

Specified by:
create in interface LayoutPersistence
Parameters:
plid - the primary key for the new layout
Returns:
the new layout

remove

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

Specified by:
remove in interface LayoutPersistence
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

remove

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

Specified by:
remove in interface BasePersistence<Layout>
Overrides:
remove in class BasePersistenceImpl<Layout>
Parameters:
primaryKey - 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

removeImpl

protected Layout removeImpl(Layout layout)
                     throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<Layout>
Parameters:
layout - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public Layout updateImpl(Layout layout)
                  throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface LayoutPersistence
Overrides:
updateImpl in class BasePersistenceImpl<Layout>
Parameters:
layout - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected Layout toUnwrappedModel(Layout layout)

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface BasePersistence<Layout>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<Layout>
Parameters:
primaryKey - 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

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface LayoutPersistence
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 Layout fetchByPrimaryKey(Serializable primaryKey)
                         throws SystemException
Returns the layout with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<Layout>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<Layout>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface LayoutPersistence
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

findAll

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

Specified by:
findAll in interface LayoutPersistence
Returns:
the layouts
Throws:
SystemException - if a system exception occurred

findAll

public 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface LayoutPersistence
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 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LayoutModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
findAll in interface LayoutPersistence
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

removeAll

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

Specified by:
removeAll in interface LayoutPersistence
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface LayoutPersistence
Returns:
the number of layouts
Throws:
SystemException - if a system exception occurred

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<Layout>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the layout persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5