com.liferay.portal.service.persistence
Class LayoutUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.LayoutUtil

public class LayoutUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
LayoutUtil()
           
 
Method Summary
static int countAll()
           
static int countByCompanyId(long companyId)
           
static int countByDLFolderId(long dlFolderId)
           
static int countByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static int countByG_P(long groupId, boolean privateLayout)
           
static int countByGroupId(long groupId)
           
static int countByIconImageId(long iconImageId)
           
static Layout create(long plid)
           
static Layout fetchByDLFolderId(long dlFolderId)
           
static Layout fetchByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static Layout fetchByIconImageId(long iconImageId)
           
static Layout fetchByPrimaryKey(long plid)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByCompanyId(long companyId)
           
static java.util.List findByCompanyId(long companyId, int begin, int end)
           
static java.util.List findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByDLFolderId(long dlFolderId)
           
static Layout findByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static Layout findByG_P_First(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static Layout findByG_P_Last(long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int begin, int end)
           
static java.util.List findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByG_P(long groupId, boolean privateLayout)
           
static java.util.List findByG_P(long groupId, boolean privateLayout, int begin, int end)
           
static java.util.List findByG_P(long groupId, boolean privateLayout, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout[] findByGroupId_PrevAndNext(long plid, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByGroupId(long groupId)
           
static java.util.List findByGroupId(long groupId, int begin, int end)
           
static java.util.List findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static Layout findByIconImageId(long iconImageId)
           
static Layout findByPrimaryKey(long plid)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static LayoutPersistence getPersistence()
           
static Layout remove(Layout layout)
           
static Layout remove(long plid)
           
static void removeAll()
           
static void removeByCompanyId(long companyId)
           
static void removeByDLFolderId(long dlFolderId)
           
static void removeByG_P_F(long groupId, boolean privateLayout, java.lang.String friendlyURL)
           
static void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
           
static void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
           
static void removeByG_P(long groupId, boolean privateLayout)
           
static void removeByGroupId(long groupId)
           
static void removeByIconImageId(long iconImageId)
           
 void setPersistence(LayoutPersistence persistence)
           
static Layout update(Layout layout)
           
static Layout update(Layout layout, boolean merge)
           
static Layout updateImpl(Layout layout, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

public LayoutUtil()
Method Detail

create

public static Layout create(long plid)

remove

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

remove

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

update

public static Layout update(Layout layout)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static Layout update(Layout layout,
                            boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByGroupId

public static java.util.List findByGroupId(long groupId)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List findByGroupId(long groupId,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

public static java.util.List 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

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

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

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

public static java.util.List findByCompanyId(long companyId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List findByCompanyId(long companyId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List 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

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

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

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

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

fetchByDLFolderId

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

findByIconImageId

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

fetchByIconImageId

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

findByG_P

public static java.util.List findByG_P(long groupId,
                                       boolean privateLayout)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

public static java.util.List findByG_P(long groupId,
                                       boolean privateLayout,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

public static java.util.List 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

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

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

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

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

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

findByG_P_P

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

findByG_P_P

public static java.util.List 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

public static java.util.List 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

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

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

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

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

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

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

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

removeByCompanyId

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

removeByDLFolderId

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

removeByIconImageId

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

removeByG_P

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

removeByG_P_L

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

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

removeByG_P_F

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

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

countByGroupId

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

countByCompanyId

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

countByDLFolderId

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

countByIconImageId

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

countByG_P

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

countByG_P_L

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

countByG_P_P

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

countByG_P_F

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

countAll

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

getPersistence

public static LayoutPersistence getPersistence()

setPersistence

public void setPersistence(LayoutPersistence persistence)