com.liferay.portal.service.persistence
Interface LayoutSetPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface LayoutSetPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByG_P(long groupId, boolean privateLayout)
           
 int countByGroupId(long groupId)
           
 int countByVirtualHost(java.lang.String virtualHost)
           
 LayoutSet create(long layoutSetId)
           
 LayoutSet fetchByG_P(long groupId, boolean privateLayout)
           
 LayoutSet fetchByPrimaryKey(long layoutSetId)
           
 LayoutSet fetchByVirtualHost(java.lang.String virtualHost)
           
 java.util.List<LayoutSet> findAll()
           
 java.util.List<LayoutSet> findAll(int start, int end)
           
 java.util.List<LayoutSet> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 LayoutSet findByG_P(long groupId, boolean privateLayout)
           
 LayoutSet findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 LayoutSet findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<LayoutSet> findByGroupId(long groupId)
           
 java.util.List<LayoutSet> findByGroupId(long groupId, int start, int end)
           
 java.util.List<LayoutSet> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 LayoutSet findByPrimaryKey(long layoutSetId)
           
 LayoutSet findByVirtualHost(java.lang.String virtualHost)
           
 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)
           
 LayoutSet remove(LayoutSet layoutSet)
           
 LayoutSet remove(long layoutSetId)
           
 void removeAll()
           
 void removeByG_P(long groupId, boolean privateLayout)
           
 void removeByGroupId(long groupId)
           
 void removeByVirtualHost(java.lang.String virtualHost)
           
 LayoutSet update(LayoutSet layoutSet)
          Deprecated. Use update(LayoutSet layoutSet, boolean merge).
 LayoutSet update(LayoutSet layoutSet, boolean merge)
          Add, update, or merge, the entity.
 LayoutSet updateImpl(LayoutSet layoutSet, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

LayoutSet create(long layoutSetId)

remove

LayoutSet remove(long layoutSetId)
                 throws NoSuchLayoutSetException,
                        com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

remove

LayoutSet remove(LayoutSet layoutSet)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

LayoutSet update(LayoutSet layoutSet)
                 throws com.liferay.portal.SystemException
Deprecated. Use update(LayoutSet layoutSet, boolean merge).

Throws:
com.liferay.portal.SystemException

update

LayoutSet update(LayoutSet layoutSet,
                 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:
layoutSet - 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 layoutSet 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

LayoutSet updateImpl(LayoutSet layoutSet,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet findByPrimaryKey(long layoutSetId)
                           throws NoSuchLayoutSetException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

fetchByPrimaryKey

LayoutSet fetchByPrimaryKey(long layoutSetId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> findByGroupId(long groupId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> findByGroupId(long groupId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> 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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet findByGroupId_First(long groupId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchLayoutSetException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet findByGroupId_Last(long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchLayoutSetException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId,
                                                    long groupId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchLayoutSetException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

findByVirtualHost

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet findByVirtualHost(java.lang.String virtualHost)
                            throws NoSuchLayoutSetException,
                                   com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

fetchByVirtualHost

LayoutSet fetchByVirtualHost(java.lang.String virtualHost)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
LayoutSet findByG_P(long groupId,
                                  boolean privateLayout)
                    throws NoSuchLayoutSetException,
                           com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

fetchByG_P

LayoutSet fetchByG_P(long groupId,
                     boolean privateLayout)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> findAll()
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> findAll(int start,
                                                int end)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<LayoutSet> 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

removeByVirtualHost

void removeByVirtualHost(java.lang.String virtualHost)
                         throws NoSuchLayoutSetException,
                                com.liferay.portal.SystemException
Throws:
NoSuchLayoutSetException
com.liferay.portal.SystemException

removeByG_P

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

removeAll

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

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByVirtualHost

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByVirtualHost(java.lang.String virtualHost)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_P(long groupId,
                             boolean privateLayout)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException