Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Class RecentLayoutRevisionUtil

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

@ProviderType
public class RecentLayoutRevisionUtil
extends Object

The persistence utility for the recent layout revision service. This utility wraps RecentLayoutRevisionPersistenceImpl 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:
RecentLayoutRevisionPersistence, RecentLayoutRevisionPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
RecentLayoutRevisionUtil()
           
 
Method Summary
static void cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
          Caches the recent layout revisions in the entity cache if it is enabled.
static void cacheResult(RecentLayoutRevision recentLayoutRevision)
          Caches the recent layout revision in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(RecentLayoutRevision recentLayoutRevision)
           
static int countAll()
          Returns the number of recent layout revisions.
static int countByGroupId(long groupId)
          Returns the number of recent layout revisions where groupId = ?.
static int countByLayoutRevisionId(long layoutRevisionId)
          Returns the number of recent layout revisions where layoutRevisionId = ?.
static int countByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?.
static int countByUserId(long userId)
          Returns the number of recent layout revisions where userId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static RecentLayoutRevision create(long recentLayoutRevisionId)
          Creates a new recent layout revision with the primary key.
static RecentLayoutRevision fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where groupId = ?.
static RecentLayoutRevision fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where groupId = ?.
static RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.
static RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.
static RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId)
          Returns the recent layout revision with the primary key or returns null if it could not be found.
static Map<Serializable,RecentLayoutRevision> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static RecentLayoutRevision fetchByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found.
static RecentLayoutRevision fetchByU_L_P(long userId, long layoutSetBranchId, long plid, boolean retrieveFromCache)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.
static RecentLayoutRevision fetchByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where userId = ?.
static RecentLayoutRevision fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where userId = ?.
static List<RecentLayoutRevision> findAll()
          Returns all the recent layout revisions.
static List<RecentLayoutRevision> findAll(int start, int end)
          Returns a range of all the recent layout revisions.
static List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions.
static List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions.
static RecentLayoutRevision findByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where groupId = ?.
static RecentLayoutRevision findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where groupId = ?.
static RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId, long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?.
static List<RecentLayoutRevision> findByGroupId(long groupId)
          Returns all the recent layout revisions where groupId = ?.
static List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end)
          Returns a range of all the recent layout revisions where groupId = ?.
static List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where groupId = ?.
static List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where groupId = ?.
static RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.
static RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.
static RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId, long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?.
static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId)
          Returns all the recent layout revisions where layoutRevisionId = ?.
static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end)
          Returns a range of all the recent layout revisions where layoutRevisionId = ?.
static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.
static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.
static RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
          Returns the recent layout revision with the primary key or throws a NoSuchRecentLayoutRevisionException if it could not be found.
static RecentLayoutRevision findByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutRevisionException if it could not be found.
static RecentLayoutRevision findByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the first recent layout revision in the ordered set where userId = ?.
static RecentLayoutRevision findByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the last recent layout revision in the ordered set where userId = ?.
static RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId, long userId, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?.
static List<RecentLayoutRevision> findByUserId(long userId)
          Returns all the recent layout revisions where userId = ?.
static List<RecentLayoutRevision> findByUserId(long userId, int start, int end)
          Returns a range of all the recent layout revisions where userId = ?.
static List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
          Returns an ordered range of all the recent layout revisions where userId = ?.
static List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout revisions where userId = ?.
static List<RecentLayoutRevision> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<RecentLayoutRevision> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<RecentLayoutRevision> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator)
           
static RecentLayoutRevisionPersistence getPersistence()
           
static RecentLayoutRevision remove(long recentLayoutRevisionId)
          Removes the recent layout revision with the primary key from the database.
static void removeAll()
          Removes all the recent layout revisions from the database.
static void removeByGroupId(long groupId)
          Removes all the recent layout revisions where groupId = ? from the database.
static void removeByLayoutRevisionId(long layoutRevisionId)
          Removes all the recent layout revisions where layoutRevisionId = ? from the database.
static RecentLayoutRevision removeByU_L_P(long userId, long layoutSetBranchId, long plid)
          Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database.
static void removeByUserId(long userId)
          Removes all the recent layout revisions where userId = ? from the database.
static RecentLayoutRevision update(RecentLayoutRevision recentLayoutRevision)
           
static RecentLayoutRevision update(RecentLayoutRevision recentLayoutRevision, ServiceContext serviceContext)
           
static RecentLayoutRevision updateImpl(RecentLayoutRevision recentLayoutRevision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecentLayoutRevisionUtil

public RecentLayoutRevisionUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

public static List<RecentLayoutRevision> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<RecentLayoutRevision> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                              int start,
                                                              int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

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

update

public static RecentLayoutRevision update(RecentLayoutRevision recentLayoutRevision)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static RecentLayoutRevision update(RecentLayoutRevision recentLayoutRevision,
                                          ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByGroupId

public static List<RecentLayoutRevision> findByGroupId(long groupId)
Returns all the recent layout revisions where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching recent layout revisions

findByGroupId

public static List<RecentLayoutRevision> findByGroupId(long groupId,
                                                       int start,
                                                       int end)
Returns a range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByGroupId

public static List<RecentLayoutRevision> findByGroupId(long groupId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByGroupId

public static List<RecentLayoutRevision> findByGroupId(long groupId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                       boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions 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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching recent layout revisions

findByGroupId_First

public static RecentLayoutRevision findByGroupId_First(long groupId,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision 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 recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByGroupId_First

public static RecentLayoutRevision fetchByGroupId_First(long groupId,
                                                        OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision 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 recent layout revision, or null if a matching recent layout revision could not be found

findByGroupId_Last

public static RecentLayoutRevision findByGroupId_Last(long groupId,
                                                      OrderByComparator<RecentLayoutRevision> orderByComparator)
                                               throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision 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 recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByGroupId_Last

public static RecentLayoutRevision fetchByGroupId_Last(long groupId,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision 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 recent layout revision, or null if a matching recent layout revision could not be found

findByGroupId_PrevAndNext

public static RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId,
                                                               long groupId,
                                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                        throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?.

Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

removeByGroupId

public static void removeByGroupId(long groupId)
Removes all the recent layout revisions where groupId = ? from the database.

Parameters:
groupId - the group ID

countByGroupId

public static int countByGroupId(long groupId)
Returns the number of recent layout revisions where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching recent layout revisions

findByUserId

public static List<RecentLayoutRevision> findByUserId(long userId)
Returns all the recent layout revisions where userId = ?.

Parameters:
userId - the user ID
Returns:
the matching recent layout revisions

findByUserId

public static List<RecentLayoutRevision> findByUserId(long userId,
                                                      int start,
                                                      int end)
Returns a range of all the recent layout revisions where userId = ?.

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 RecentLayoutRevisionModelImpl. 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:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByUserId

public static List<RecentLayoutRevision> findByUserId(long userId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where userId = ?.

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 RecentLayoutRevisionModelImpl. 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:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByUserId

public static List<RecentLayoutRevision> findByUserId(long userId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                      boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where userId = ?.

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 RecentLayoutRevisionModelImpl. 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:
userId - the user ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching recent layout revisions

findByUserId_First

public static RecentLayoutRevision findByUserId_First(long userId,
                                                      OrderByComparator<RecentLayoutRevision> orderByComparator)
                                               throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByUserId_First

public static RecentLayoutRevision fetchByUserId_First(long userId,
                                                       OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision, or null if a matching recent layout revision could not be found

findByUserId_Last

public static RecentLayoutRevision findByUserId_Last(long userId,
                                                     OrderByComparator<RecentLayoutRevision> orderByComparator)
                                              throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByUserId_Last

public static RecentLayoutRevision fetchByUserId_Last(long userId,
                                                      OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where userId = ?.

Parameters:
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision, or null if a matching recent layout revision could not be found

findByUserId_PrevAndNext

public static RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId,
                                                              long userId,
                                                              OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                       throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?.

Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
userId - the user ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

removeByUserId

public static void removeByUserId(long userId)
Removes all the recent layout revisions where userId = ? from the database.

Parameters:
userId - the user ID

countByUserId

public static int countByUserId(long userId)
Returns the number of recent layout revisions where userId = ?.

Parameters:
userId - the user ID
Returns:
the number of matching recent layout revisions

findByLayoutRevisionId

public static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId)
Returns all the recent layout revisions where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
Returns:
the matching recent layout revisions

findByLayoutRevisionId

public static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                                int start,
                                                                int end)
Returns a range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of matching recent layout revisions

findByLayoutRevisionId

public static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching recent layout revisions

findByLayoutRevisionId

public static List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                                boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.

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 RecentLayoutRevisionModelImpl. 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:
layoutRevisionId - the layout revision ID
start - the lower bound of the range of recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching recent layout revisions

findByLayoutRevisionId_First

public static RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId,
                                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                         throws NoSuchRecentLayoutRevisionException
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByLayoutRevisionId_First

public static RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId,
                                                                 OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching recent layout revision, or null if a matching recent layout revision could not be found

findByLayoutRevisionId_Last

public static RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId,
                                                               OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                        throws NoSuchRecentLayoutRevisionException
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByLayoutRevisionId_Last

public static RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId,
                                                                OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching recent layout revision, or null if a matching recent layout revision could not be found

findByLayoutRevisionId_PrevAndNext

public static RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId,
                                                                        long layoutRevisionId,
                                                                        OrderByComparator<RecentLayoutRevision> orderByComparator)
                                                                 throws NoSuchRecentLayoutRevisionException
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?.

Parameters:
recentLayoutRevisionId - the primary key of the current recent layout revision
layoutRevisionId - the layout revision ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

removeByLayoutRevisionId

public static void removeByLayoutRevisionId(long layoutRevisionId)
Removes all the recent layout revisions where layoutRevisionId = ? from the database.

Parameters:
layoutRevisionId - the layout revision ID

countByLayoutRevisionId

public static int countByLayoutRevisionId(long layoutRevisionId)
Returns the number of recent layout revisions where layoutRevisionId = ?.

Parameters:
layoutRevisionId - the layout revision ID
Returns:
the number of matching recent layout revisions

findByU_L_P

public static RecentLayoutRevision findByU_L_P(long userId,
                                               long layoutSetBranchId,
                                               long plid)
                                        throws NoSuchRecentLayoutRevisionException
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutRevisionException if it could not be found.

Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the matching recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found

fetchByU_L_P

public static RecentLayoutRevision fetchByU_L_P(long userId,
                                                long layoutSetBranchId,
                                                long plid)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the matching recent layout revision, or null if a matching recent layout revision could not be found

fetchByU_L_P

public static RecentLayoutRevision fetchByU_L_P(long userId,
                                                long layoutSetBranchId,
                                                long plid,
                                                boolean retrieveFromCache)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching recent layout revision, or null if a matching recent layout revision could not be found

removeByU_L_P

public static RecentLayoutRevision removeByU_L_P(long userId,
                                                 long layoutSetBranchId,
                                                 long plid)
                                          throws NoSuchRecentLayoutRevisionException
Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database.

Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the recent layout revision that was removed
Throws:
NoSuchRecentLayoutRevisionException

countByU_L_P

public static int countByU_L_P(long userId,
                               long layoutSetBranchId,
                               long plid)
Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?.

Parameters:
userId - the user ID
layoutSetBranchId - the layout set branch ID
plid - the plid
Returns:
the number of matching recent layout revisions

cacheResult

public static void cacheResult(RecentLayoutRevision recentLayoutRevision)
Caches the recent layout revision in the entity cache if it is enabled.

Parameters:
recentLayoutRevision - the recent layout revision

cacheResult

public static void cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
Caches the recent layout revisions in the entity cache if it is enabled.

Parameters:
recentLayoutRevisions - the recent layout revisions

create

public static RecentLayoutRevision create(long recentLayoutRevisionId)
Creates a new recent layout revision with the primary key. Does not add the recent layout revision to the database.

Parameters:
recentLayoutRevisionId - the primary key for the new recent layout revision
Returns:
the new recent layout revision

remove

public static RecentLayoutRevision remove(long recentLayoutRevisionId)
                                   throws NoSuchRecentLayoutRevisionException
Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision that was removed
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

updateImpl

public static RecentLayoutRevision updateImpl(RecentLayoutRevision recentLayoutRevision)

findByPrimaryKey

public static RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
                                             throws NoSuchRecentLayoutRevisionException
Returns the recent layout revision with the primary key or throws a NoSuchRecentLayoutRevisionException if it could not be found.

Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision
Throws:
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found

fetchByPrimaryKey

public static RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId)
Returns the recent layout revision with the primary key or returns null if it could not be found.

Parameters:
recentLayoutRevisionId - the primary key of the recent layout revision
Returns:
the recent layout revision, or null if a recent layout revision with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,RecentLayoutRevision> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<RecentLayoutRevision> findAll()
Returns all the recent layout revisions.

Returns:
the recent layout revisions

findAll

public static List<RecentLayoutRevision> findAll(int start,
                                                 int end)
Returns a range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
Returns:
the range of recent layout revisions

findAll

public static List<RecentLayoutRevision> findAll(int start,
                                                 int end,
                                                 OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of recent layout revisions

findAll

public static List<RecentLayoutRevision> findAll(int start,
                                                 int end,
                                                 OrderByComparator<RecentLayoutRevision> orderByComparator,
                                                 boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions.

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 RecentLayoutRevisionModelImpl. 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 recent layout revisions
end - the upper bound of the range of recent layout revisions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of recent layout revisions

removeAll

public static void removeAll()
Removes all the recent layout revisions from the database.


countAll

public static int countAll()
Returns the number of recent layout revisions.

Returns:
the number of recent layout revisions

getPersistence

public static RecentLayoutRevisionPersistence getPersistence()

Liferay 7.0-ce-b4