Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class LayoutSetUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.LayoutSetUtil

@ProviderType
public class LayoutSetUtil
extends Object

The persistence utility for the layout set service. This utility wraps LayoutSetPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

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

Constructor Summary
LayoutSetUtil()
           
 
Method Summary
static void cacheResult(LayoutSet layoutSet)
          Caches the layout set in the entity cache if it is enabled.
static void cacheResult(List<LayoutSet> layoutSets)
          Caches the layout sets in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(LayoutSet layoutSet)
           
static int countAll()
          Returns the number of layout sets.
static int countByG_P(long groupId, boolean privateLayout)
          Returns the number of layout sets where groupId = ? and privateLayout = ?.
static int countByGroupId(long groupId)
          Returns the number of layout sets where groupId = ?.
static int countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
          Returns the number of layout sets where layoutSetPrototypeUuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static LayoutSet create(long layoutSetId)
          Creates a new layout set with the primary key.
static LayoutSet fetchByG_P(long groupId, boolean privateLayout)
          Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found.
static LayoutSet fetchByG_P(long groupId, boolean privateLayout, boolean retrieveFromCache)
          Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache.
static LayoutSet fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout set in the ordered set where groupId = ?.
static LayoutSet fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout set in the ordered set where groupId = ?.
static LayoutSet fetchByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
static LayoutSet fetchByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
static LayoutSet fetchByPrimaryKey(long layoutSetId)
          Returns the layout set with the primary key or returns null if it could not be found.
static List<LayoutSet> findAll()
          Returns all the layout sets.
static List<LayoutSet> findAll(int start, int end)
          Returns a range of all the layout sets.
static List<LayoutSet> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout sets.
static LayoutSet findByG_P(long groupId, boolean privateLayout)
          Returns the layout set where groupId = ? and privateLayout = ? or throws a NoSuchLayoutSetException if it could not be found.
static LayoutSet findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first layout set in the ordered set where groupId = ?.
static LayoutSet findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last layout set in the ordered set where groupId = ?.
static LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId, long groupId, OrderByComparator orderByComparator)
          Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.
static List<LayoutSet> findByGroupId(long groupId)
          Returns all the layout sets where groupId = ?.
static List<LayoutSet> findByGroupId(long groupId, int start, int end)
          Returns a range of all the layout sets where groupId = ?.
static List<LayoutSet> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout sets where groupId = ?.
static LayoutSet findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid, OrderByComparator orderByComparator)
          Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.
static LayoutSet findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid, OrderByComparator orderByComparator)
          Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.
static LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId, String layoutSetPrototypeUuid, OrderByComparator orderByComparator)
          Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.
static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
          Returns all the layout sets where layoutSetPrototypeUuid = ?.
static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end)
          Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.
static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.
static LayoutSet findByPrimaryKey(long layoutSetId)
          Returns the layout set with the primary key or throws a NoSuchLayoutSetException if it could not be found.
static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static LayoutSetPersistence getPersistence()
           
static LayoutSet remove(long layoutSetId)
          Removes the layout set with the primary key from the database.
static void removeAll()
          Removes all the layout sets from the database.
static LayoutSet removeByG_P(long groupId, boolean privateLayout)
          Removes the layout set where groupId = ? and privateLayout = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the layout sets where groupId = ? from the database.
static void removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
          Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.
 void setPersistence(LayoutSetPersistence persistence)
          Deprecated. As of 6.2.0
static LayoutSet update(LayoutSet layoutSet)
           
static LayoutSet update(LayoutSet layoutSet, ServiceContext serviceContext)
           
static LayoutSet updateImpl(LayoutSet layoutSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutSetUtil

public LayoutSetUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(LayoutSet layoutSet)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<LayoutSet> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static LayoutSet update(LayoutSet layoutSet)
                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static LayoutSet update(LayoutSet layoutSet,
                               ServiceContext serviceContext)
                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByGroupId

public static List<LayoutSet> findByGroupId(long groupId)
                                     throws SystemException
Returns all the layout sets where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching layout sets
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<LayoutSet> findByGroupId(long groupId,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the layout sets 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 LayoutSetModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
Returns:
the range of matching layout sets
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<LayoutSet> findByGroupId(long groupId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the layout sets 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 LayoutSetModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout sets
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static LayoutSet findByGroupId_First(long groupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchLayoutSetException,
                                            SystemException
Returns the first layout set in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout set
Throws:
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public static LayoutSet fetchByGroupId_First(long groupId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first layout set in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public static LayoutSet findByGroupId_Last(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchLayoutSetException,
                                           SystemException
Returns the last layout set in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout set
Throws:
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public static LayoutSet fetchByGroupId_Last(long groupId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last layout set in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static LayoutSet[] findByGroupId_PrevAndNext(long layoutSetId,
                                                    long groupId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchLayoutSetException,
                                                    SystemException
Returns the layout sets before and after the current layout set in the ordered set where groupId = ?.

Parameters:
layoutSetId - the primary key of the current layout set
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout set
Throws:
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Parameters:
groupId - the group ID
Returns:
the number of matching layout sets
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid

public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
                                                    throws SystemException
Returns all the layout sets where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
Returns:
the matching layout sets
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid

public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Returns a range of all the layout sets where layoutSetPrototypeUuid = ?.

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

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
Returns:
the range of matching layout sets
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid

public static List<LayoutSet> findByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid,
                                                           int start,
                                                           int end,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns an ordered range of all the layout sets where layoutSetPrototypeUuid = ?.

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

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching layout sets
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid_First

public static LayoutSet findByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchLayoutSetException,
                                                           SystemException
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout set
Throws:
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred

fetchByLayoutSetPrototypeUuid_First

public static LayoutSet fetchByLayoutSetPrototypeUuid_First(String layoutSetPrototypeUuid,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Returns the first layout set in the ordered set where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid_Last

public static LayoutSet findByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
                                                          OrderByComparator orderByComparator)
                                                   throws NoSuchLayoutSetException,
                                                          SystemException
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout set
Throws:
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred

fetchByLayoutSetPrototypeUuid_Last

public static LayoutSet fetchByLayoutSetPrototypeUuid_Last(String layoutSetPrototypeUuid,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns the last layout set in the ordered set where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

findByLayoutSetPrototypeUuid_PrevAndNext

public static LayoutSet[] findByLayoutSetPrototypeUuid_PrevAndNext(long layoutSetId,
                                                                   String layoutSetPrototypeUuid,
                                                                   OrderByComparator orderByComparator)
                                                            throws NoSuchLayoutSetException,
                                                                   SystemException
Returns the layout sets before and after the current layout set in the ordered set where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetId - the primary key of the current layout set
layoutSetPrototypeUuid - the layout set prototype uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next layout set
Throws:
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred

removeByLayoutSetPrototypeUuid

public static void removeByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
                                           throws SystemException
Removes all the layout sets where layoutSetPrototypeUuid = ? from the database.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
Throws:
SystemException - if a system exception occurred

countByLayoutSetPrototypeUuid

public static int countByLayoutSetPrototypeUuid(String layoutSetPrototypeUuid)
                                         throws SystemException
Returns the number of layout sets where layoutSetPrototypeUuid = ?.

Parameters:
layoutSetPrototypeUuid - the layout set prototype uuid
Returns:
the number of matching layout sets
Throws:
SystemException - if a system exception occurred

findByG_P

public static LayoutSet findByG_P(long groupId,
                                  boolean privateLayout)
                           throws NoSuchLayoutSetException,
                                  SystemException
Returns the layout set where groupId = ? and privateLayout = ? or throws a NoSuchLayoutSetException if it could not be found.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layout set
Throws:
NoSuchLayoutSetException - if a matching layout set could not be found
SystemException - if a system exception occurred

fetchByG_P

public static LayoutSet fetchByG_P(long groupId,
                                   boolean privateLayout)
                            throws SystemException
Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P

public static LayoutSet fetchByG_P(long groupId,
                                   boolean privateLayout,
                                   boolean retrieveFromCache)
                            throws SystemException
Returns the layout set where groupId = ? and privateLayout = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
privateLayout - the private layout
retrieveFromCache - whether to use the finder cache
Returns:
the matching layout set, or null if a matching layout set could not be found
Throws:
SystemException - if a system exception occurred

removeByG_P

public static LayoutSet removeByG_P(long groupId,
                                    boolean privateLayout)
                             throws NoSuchLayoutSetException,
                                    SystemException
Removes the layout set where groupId = ? and privateLayout = ? from the database.

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the layout set that was removed
Throws:
SystemException - if a system exception occurred
NoSuchLayoutSetException

countByG_P

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

Parameters:
groupId - the group ID
privateLayout - the private layout
Returns:
the number of matching layout sets
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(LayoutSet layoutSet)
Caches the layout set in the entity cache if it is enabled.

Parameters:
layoutSet - the layout set

cacheResult

public static void cacheResult(List<LayoutSet> layoutSets)
Caches the layout sets in the entity cache if it is enabled.

Parameters:
layoutSets - the layout sets

create

public static LayoutSet create(long layoutSetId)
Creates a new layout set with the primary key. Does not add the layout set to the database.

Parameters:
layoutSetId - the primary key for the new layout set
Returns:
the new layout set

remove

public static LayoutSet remove(long layoutSetId)
                        throws NoSuchLayoutSetException,
                               SystemException
Removes the layout set with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
layoutSetId - the primary key of the layout set
Returns:
the layout set that was removed
Throws:
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static LayoutSet updateImpl(LayoutSet layoutSet)
                            throws SystemException
Throws:
SystemException

findByPrimaryKey

public static LayoutSet findByPrimaryKey(long layoutSetId)
                                  throws NoSuchLayoutSetException,
                                         SystemException
Returns the layout set with the primary key or throws a NoSuchLayoutSetException if it could not be found.

Parameters:
layoutSetId - the primary key of the layout set
Returns:
the layout set
Throws:
NoSuchLayoutSetException - if a layout set with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static LayoutSet fetchByPrimaryKey(long layoutSetId)
                                   throws SystemException
Returns the layout set with the primary key or returns null if it could not be found.

Parameters:
layoutSetId - the primary key of the layout set
Returns:
the layout set, or null if a layout set with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<LayoutSet> findAll()
                               throws SystemException
Returns all the layout sets.

Returns:
the layout sets
Throws:
SystemException - if a system exception occurred

findAll

public static List<LayoutSet> findAll(int start,
                                      int end)
                               throws SystemException
Returns a range of all the layout sets.

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

Parameters:
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
Returns:
the range of layout sets
Throws:
SystemException - if a system exception occurred

findAll

public static List<LayoutSet> findAll(int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the layout sets.

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

Parameters:
start - the lower bound of the range of layout sets
end - the upper bound of the range of layout sets (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of layout sets
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the layout sets from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of layout sets.

Returns:
the number of layout sets
Throws:
SystemException - if a system exception occurred

getPersistence

public static LayoutSetPersistence getPersistence()

setPersistence

public void setPersistence(LayoutSetPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5