com.liferay.portal.service.persistence
Interface LayoutPersistence


public interface LayoutPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByCompanyId(long companyId)
           
 int countByDLFolderId(long dlFolderId)
           
 int countByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
 int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
 int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
 int countByG_P_T(long groupId, boolean privateLayout, java.lang.String type)
           
 int countByG_P(long groupId, boolean privateLayout)
           
 int countByGroupId(long groupId)
           
 int countByIconImageId(long iconImageId)
           
 Layout create(long plid)
           
 Layout fetchByDLFolderId(long dlFolderId)
           
 Layout fetchByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
 Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
 Layout fetchByIconImageId(long iconImageId)
           
 Layout fetchByPrimaryKey(long plid)
           
 java.util.List<Layout> findAll()
           
 java.util.List<Layout> findAll(int start, int end)
           
 java.util.List<Layout> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Layout> findByCompanyId(long companyId)
           
 java.util.List<Layout> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<Layout> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByDLFolderId(long dlFolderId)
           
 Layout findByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
 Layout findByG_P_First(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
 Layout findByG_P_Last(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
 java.util.List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end)
           
 java.util.List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByG_P_T_First(long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByG_P_T_Last(long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout[] findByG_P_T_PrevAndNext(long plid, long groupId, boolean privateLayout, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Layout> findByG_P_T(long groupId, boolean privateLayout, java.lang.String type)
           
 java.util.List<Layout> findByG_P_T(long groupId, boolean privateLayout, java.lang.String type, int start, int end)
           
 java.util.List<Layout> findByG_P_T(long groupId, boolean privateLayout, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout[] findByGroupId_PrevAndNext(long plid, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Layout> findByGroupId(long groupId)
           
 java.util.List<Layout> findByGroupId(long groupId, int start, int end)
           
 java.util.List<Layout> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByIconImageId(long iconImageId)
           
 Layout findByPrimaryKey(long plid)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 void registerListener(ModelListener listener)
           
 Layout remove(Layout layout)
           
 Layout remove(long plid)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 void removeByDLFolderId(long dlFolderId)
           
 void removeByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
 void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
 void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
 void removeByG_P_T(long groupId, boolean privateLayout, java.lang.String type)
           
 void removeByG_P(long groupId, boolean privateLayout)
           
 void removeByGroupId(long groupId)
           
 void removeByIconImageId(long iconImageId)
           
 void unregisterListener(ModelListener listener)
           
 Layout update(Layout layout)
          Deprecated. Use update(Layout layout, boolean merge).
 Layout update(Layout layout, boolean merge)
          Add, update, or merge, the entity.
 Layout updateImpl(Layout layout, boolean merge)
           
 

Method Detail

create

Layout create(long plid)

remove

Layout remove(long plid)
              throws NoSuchLayoutException,
                     com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

remove

Layout remove(Layout layout)
              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

Layout update(Layout layout)
              throws com.liferay.portal.SystemException
Deprecated. Use update(Layout layout, boolean merge).

Throws:
com.liferay.portal.SystemException

update

Layout update(Layout layout,
              boolean merge)
              throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
layout - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when layout is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

Layout updateImpl(Layout layout,
                  boolean merge)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

Layout findByPrimaryKey(long plid)
                        throws NoSuchLayoutException,
                               com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

fetchByPrimaryKey

Layout fetchByPrimaryKey(long plid)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<Layout> findByGroupId(long groupId)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<Layout> findByGroupId(long groupId,
                                     int start,
                                     int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<Layout> findByGroupId(long groupId,
                                     int start,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

Layout findByGroupId_First(long groupId,
                           com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws NoSuchLayoutException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByGroupId_Last

Layout findByGroupId_Last(long groupId,
                          com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws NoSuchLayoutException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByGroupId_PrevAndNext

Layout[] findByGroupId_PrevAndNext(long plid,
                                   long groupId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchLayoutException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByCompanyId

java.util.List<Layout> findByCompanyId(long companyId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<Layout> findByCompanyId(long companyId,
                                       int start,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<Layout> findByCompanyId(long companyId,
                                       int start,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

Layout findByCompanyId_First(long companyId,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchLayoutException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByCompanyId_Last

Layout findByCompanyId_Last(long companyId,
                            com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws NoSuchLayoutException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByCompanyId_PrevAndNext

Layout[] findByCompanyId_PrevAndNext(long plid,
                                     long companyId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws NoSuchLayoutException,
                                            com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByDLFolderId

Layout findByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

fetchByDLFolderId

Layout fetchByDLFolderId(long dlFolderId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByIconImageId

Layout findByIconImageId(long iconImageId)
                         throws NoSuchLayoutException,
                                com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

fetchByIconImageId

Layout fetchByIconImageId(long iconImageId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

java.util.List<Layout> findByG_P(long groupId,
                                 boolean privateLayout)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

java.util.List<Layout> findByG_P(long groupId,
                                 boolean privateLayout,
                                 int start,
                                 int end)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

java.util.List<Layout> findByG_P(long groupId,
                                 boolean privateLayout,
                                 int start,
                                 int end,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_First

Layout findByG_P_First(long groupId,
                       boolean privateLayout,
                       com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws NoSuchLayoutException,
                              com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_Last

Layout findByG_P_Last(long groupId,
                      boolean privateLayout,
                      com.liferay.portal.kernel.util.OrderByComparator obc)
                      throws NoSuchLayoutException,
                             com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_PrevAndNext

Layout[] findByG_P_PrevAndNext(long plid,
                               long groupId,
                               boolean privateLayout,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws NoSuchLayoutException,
                                      com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_L

Layout findByG_P_L(long groupId,
                   boolean privateLayout,
                   long layoutId)
                   throws NoSuchLayoutException,
                          com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

fetchByG_P_L

Layout fetchByG_P_L(long groupId,
                    boolean privateLayout,
                    long layoutId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

java.util.List<Layout> findByG_P_P(long groupId,
                                   boolean privateLayout,
                                   long parentLayoutId)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

java.util.List<Layout> findByG_P_P(long groupId,
                                   boolean privateLayout,
                                   long parentLayoutId,
                                   int start,
                                   int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P

java.util.List<Layout> findByG_P_P(long groupId,
                                   boolean privateLayout,
                                   long parentLayoutId,
                                   int start,
                                   int end,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_P_First

Layout findByG_P_P_First(long groupId,
                         boolean privateLayout,
                         long parentLayoutId,
                         com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws NoSuchLayoutException,
                                com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_P_Last

Layout findByG_P_P_Last(long groupId,
                        boolean privateLayout,
                        long parentLayoutId,
                        com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws NoSuchLayoutException,
                               com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_P_PrevAndNext

Layout[] findByG_P_P_PrevAndNext(long plid,
                                 long groupId,
                                 boolean privateLayout,
                                 long parentLayoutId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws NoSuchLayoutException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_F

Layout findByG_P_F(long groupId,
                   boolean privateLayout,
                   java.lang.String friendlyURL)
                   throws NoSuchLayoutException,
                          com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

fetchByG_P_F

Layout fetchByG_P_F(long groupId,
                    boolean privateLayout,
                    java.lang.String friendlyURL)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_T

java.util.List<Layout> findByG_P_T(long groupId,
                                   boolean privateLayout,
                                   java.lang.String type)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_T

java.util.List<Layout> findByG_P_T(long groupId,
                                   boolean privateLayout,
                                   java.lang.String type,
                                   int start,
                                   int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_T

java.util.List<Layout> findByG_P_T(long groupId,
                                   boolean privateLayout,
                                   java.lang.String type,
                                   int start,
                                   int end,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P_T_First

Layout findByG_P_T_First(long groupId,
                         boolean privateLayout,
                         java.lang.String type,
                         com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws NoSuchLayoutException,
                                com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_T_Last

Layout findByG_P_T_Last(long groupId,
                        boolean privateLayout,
                        java.lang.String type,
                        com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws NoSuchLayoutException,
                               com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findByG_P_T_PrevAndNext

Layout[] findByG_P_T_PrevAndNext(long plid,
                                 long groupId,
                                 boolean privateLayout,
                                 java.lang.String type,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws NoSuchLayoutException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                      int start,
                                                      int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Layout> findAll()
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Layout> findAll(int start,
                               int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Layout> findAll(int start,
                               int end,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByDLFolderId

void removeByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

removeByIconImageId

void removeByIconImageId(long iconImageId)
                         throws NoSuchLayoutException,
                                com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

removeByG_P

void removeByG_P(long groupId,
                 boolean privateLayout)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_L

void removeByG_P_L(long groupId,
                   boolean privateLayout,
                   long layoutId)
                   throws NoSuchLayoutException,
                          com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

removeByG_P_P

void removeByG_P_P(long groupId,
                   boolean privateLayout,
                   long parentLayoutId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_P_F

void removeByG_P_F(long groupId,
                   boolean privateLayout,
                   java.lang.String friendlyURL)
                   throws NoSuchLayoutException,
                          com.liferay.portal.SystemException
Throws:
NoSuchLayoutException
com.liferay.portal.SystemException

removeByG_P_T

void removeByG_P_T(long groupId,
                   boolean privateLayout,
                   java.lang.String type)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByDLFolderId

int countByDLFolderId(long dlFolderId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByIconImageId

int countByIconImageId(long iconImageId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P

int countByG_P(long groupId,
               boolean privateLayout)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_L

int countByG_P_L(long groupId,
                 boolean privateLayout,
                 long layoutId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_P

int countByG_P_P(long groupId,
                 boolean privateLayout,
                 long parentLayoutId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_F

int countByG_P_F(long groupId,
                 boolean privateLayout,
                 java.lang.String friendlyURL)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P_T

int countByG_P_T(long groupId,
                 boolean privateLayout,
                 java.lang.String type)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)