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(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 begin, int end)
           
 java.util.List<Layout> findAll(int begin, 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 begin, int end)
           
 java.util.List<Layout> findByCompanyId(long companyId, int begin, 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 begin, int end)
           
 java.util.List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int begin, 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)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout, int begin, int end)
           
 java.util.List<Layout> findByG_P(long groupId, boolean privateLayout, int begin, 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 begin, int end)
           
 java.util.List<Layout> findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Layout findByIconImageId(long iconImageId)
           
 Layout findByPrimaryKey(long plid)
           
 java.util.List<Layout> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<Layout> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 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(long groupId, boolean privateLayout)
           
 void removeByGroupId(long groupId)
           
 void removeByIconImageId(long iconImageId)
           
 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 com.liferay.portal.SystemException,
                     NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

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 com.liferay.portal.SystemException,
                               NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

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 begin,
                                     int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<Layout> findByGroupId(long groupId,
                                     int begin,
                                     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 com.liferay.portal.SystemException,
                                  NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

findByGroupId_Last

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

findByGroupId_PrevAndNext

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

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 begin,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<Layout> findByCompanyId(long companyId,
                                       int begin,
                                       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 com.liferay.portal.SystemException,
                                    NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

findByCompanyId_Last

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

findByCompanyId_PrevAndNext

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

findByDLFolderId

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

fetchByDLFolderId

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

findByIconImageId

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

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 begin,
                                 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 begin,
                                 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 com.liferay.portal.SystemException,
                              NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

findByG_P_Last

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

findByG_P_PrevAndNext

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

findByG_P_L

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

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 begin,
                                   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 begin,
                                   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 com.liferay.portal.SystemException,
                                NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

findByG_P_P_Last

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

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 com.liferay.portal.SystemException,
                                        NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

findByG_P_F

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

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

findWithDynamicQuery

java.util.List<Layout> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<Layout> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                            int begin,
                                            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 begin,
                               int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Layout> findAll(int begin,
                               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 com.liferay.portal.SystemException,
                               NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

removeByIconImageId

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

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 com.liferay.portal.SystemException,
                          NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

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 com.liferay.portal.SystemException,
                          NoSuchLayoutException
Throws:
com.liferay.portal.SystemException
NoSuchLayoutException

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

countAll

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