Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Class RecentLayoutBranchUtil

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

@ProviderType
public class RecentLayoutBranchUtil
extends Object

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

Constructor Summary
RecentLayoutBranchUtil()
           
 
Method Summary
static void cacheResult(List<RecentLayoutBranch> recentLayoutBranchs)
          Caches the recent layout branchs in the entity cache if it is enabled.
static void cacheResult(RecentLayoutBranch recentLayoutBranch)
          Caches the recent layout branch in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(RecentLayoutBranch recentLayoutBranch)
           
static int countAll()
          Returns the number of recent layout branchs.
static int countByGroupId(long groupId)
          Returns the number of recent layout branchs where groupId = ?.
static int countByLayoutBranchId(long layoutBranchId)
          Returns the number of recent layout branchs where layoutBranchId = ?.
static int countByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the number of recent layout branchs where userId = ? and layoutSetBranchId = ? and plid = ?.
static int countByUserId(long userId)
          Returns the number of recent layout branchs where userId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static RecentLayoutBranch create(long recentLayoutBranchId)
          Creates a new recent layout branch with the primary key.
static RecentLayoutBranch fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where groupId = ?.
static RecentLayoutBranch fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where groupId = ?.
static RecentLayoutBranch fetchByLayoutBranchId_First(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where layoutBranchId = ?.
static RecentLayoutBranch fetchByLayoutBranchId_Last(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where layoutBranchId = ?.
static RecentLayoutBranch fetchByPrimaryKey(long recentLayoutBranchId)
          Returns the recent layout branch with the primary key or returns null if it could not be found.
static Map<Serializable,RecentLayoutBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found.
static RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId, long plid, boolean retrieveFromCache)
          Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache.
static RecentLayoutBranch fetchByUserId_First(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where userId = ?.
static RecentLayoutBranch fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where userId = ?.
static List<RecentLayoutBranch> findAll()
          Returns all the recent layout branchs.
static List<RecentLayoutBranch> findAll(int start, int end)
          Returns a range of all the recent layout branchs.
static List<RecentLayoutBranch> findAll(int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns an ordered range of all the recent layout branchs.
static List<RecentLayoutBranch> findAll(int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout branchs.
static RecentLayoutBranch findByGroupId_First(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where groupId = ?.
static RecentLayoutBranch findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where groupId = ?.
static RecentLayoutBranch[] findByGroupId_PrevAndNext(long recentLayoutBranchId, long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the recent layout branchs before and after the current recent layout branch in the ordered set where groupId = ?.
static List<RecentLayoutBranch> findByGroupId(long groupId)
          Returns all the recent layout branchs where groupId = ?.
static List<RecentLayoutBranch> findByGroupId(long groupId, int start, int end)
          Returns a range of all the recent layout branchs where groupId = ?.
static List<RecentLayoutBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns an ordered range of all the recent layout branchs where groupId = ?.
static List<RecentLayoutBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout branchs where groupId = ?.
static RecentLayoutBranch findByLayoutBranchId_First(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where layoutBranchId = ?.
static RecentLayoutBranch findByLayoutBranchId_Last(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where layoutBranchId = ?.
static RecentLayoutBranch[] findByLayoutBranchId_PrevAndNext(long recentLayoutBranchId, long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the recent layout branchs before and after the current recent layout branch in the ordered set where layoutBranchId = ?.
static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId)
          Returns all the recent layout branchs where layoutBranchId = ?.
static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, int start, int end)
          Returns a range of all the recent layout branchs where layoutBranchId = ?.
static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.
static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.
static RecentLayoutBranch findByPrimaryKey(long recentLayoutBranchId)
          Returns the recent layout branch with the primary key or throws a NoSuchRecentLayoutBranchException if it could not be found.
static RecentLayoutBranch findByU_L_P(long userId, long layoutSetBranchId, long plid)
          Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutBranchException if it could not be found.
static RecentLayoutBranch findByUserId_First(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the first recent layout branch in the ordered set where userId = ?.
static RecentLayoutBranch findByUserId_Last(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the last recent layout branch in the ordered set where userId = ?.
static RecentLayoutBranch[] findByUserId_PrevAndNext(long recentLayoutBranchId, long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns the recent layout branchs before and after the current recent layout branch in the ordered set where userId = ?.
static List<RecentLayoutBranch> findByUserId(long userId)
          Returns all the recent layout branchs where userId = ?.
static List<RecentLayoutBranch> findByUserId(long userId, int start, int end)
          Returns a range of all the recent layout branchs where userId = ?.
static List<RecentLayoutBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
          Returns an ordered range of all the recent layout branchs where userId = ?.
static List<RecentLayoutBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout branchs where userId = ?.
static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
           
static RecentLayoutBranchPersistence getPersistence()
           
static RecentLayoutBranch remove(long recentLayoutBranchId)
          Removes the recent layout branch with the primary key from the database.
static void removeAll()
          Removes all the recent layout branchs from the database.
static void removeByGroupId(long groupId)
          Removes all the recent layout branchs where groupId = ? from the database.
static void removeByLayoutBranchId(long layoutBranchId)
          Removes all the recent layout branchs where layoutBranchId = ? from the database.
static RecentLayoutBranch removeByU_L_P(long userId, long layoutSetBranchId, long plid)
          Removes the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? from the database.
static void removeByUserId(long userId)
          Removes all the recent layout branchs where userId = ? from the database.
static RecentLayoutBranch update(RecentLayoutBranch recentLayoutBranch)
           
static RecentLayoutBranch update(RecentLayoutBranch recentLayoutBranch, ServiceContext serviceContext)
           
static RecentLayoutBranch updateImpl(RecentLayoutBranch recentLayoutBranch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecentLayoutBranchUtil

public RecentLayoutBranchUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(RecentLayoutBranch recentLayoutBranch)
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<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

update

public static RecentLayoutBranch update(RecentLayoutBranch recentLayoutBranch)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

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

findByGroupId

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

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

findByGroupId

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

findByGroupId

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

findByGroupId

public static List<RecentLayoutBranch> findByGroupId(long groupId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<RecentLayoutBranch> orderByComparator,
                                                     boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs 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 RecentLayoutBranchModelImpl. 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 branchs
end - the upper bound of the range of recent layout branchs (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 branchs

findByGroupId_First

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

fetchByGroupId_First

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

findByGroupId_Last

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

fetchByGroupId_Last

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

findByGroupId_PrevAndNext

public static RecentLayoutBranch[] findByGroupId_PrevAndNext(long recentLayoutBranchId,
                                                             long groupId,
                                                             OrderByComparator<RecentLayoutBranch> orderByComparator)
                                                      throws NoSuchRecentLayoutBranchException
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where groupId = ?.

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

removeByGroupId

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

Parameters:
groupId - the group ID

countByGroupId

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

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

findByUserId

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

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

findByUserId

public static List<RecentLayoutBranch> findByUserId(long userId,
                                                    int start,
                                                    int end)
Returns a range of all the recent layout branchs 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 RecentLayoutBranchModelImpl. 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 branchs
end - the upper bound of the range of recent layout branchs (not inclusive)
Returns:
the range of matching recent layout branchs

findByUserId

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

findByUserId

public static List<RecentLayoutBranch> findByUserId(long userId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<RecentLayoutBranch> orderByComparator,
                                                    boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs 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 RecentLayoutBranchModelImpl. 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 branchs
end - the upper bound of the range of recent layout branchs (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 branchs

findByUserId_First

public static RecentLayoutBranch findByUserId_First(long userId,
                                                    OrderByComparator<RecentLayoutBranch> orderByComparator)
                                             throws NoSuchRecentLayoutBranchException
Returns the first recent layout branch 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 branch
Throws:
NoSuchRecentLayoutBranchException - if a matching recent layout branch could not be found

fetchByUserId_First

public static RecentLayoutBranch fetchByUserId_First(long userId,
                                                     OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch 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 branch, or null if a matching recent layout branch could not be found

findByUserId_Last

public static RecentLayoutBranch findByUserId_Last(long userId,
                                                   OrderByComparator<RecentLayoutBranch> orderByComparator)
                                            throws NoSuchRecentLayoutBranchException
Returns the last recent layout branch 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 branch
Throws:
NoSuchRecentLayoutBranchException - if a matching recent layout branch could not be found

fetchByUserId_Last

public static RecentLayoutBranch fetchByUserId_Last(long userId,
                                                    OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch 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 branch, or null if a matching recent layout branch could not be found

findByUserId_PrevAndNext

public static RecentLayoutBranch[] findByUserId_PrevAndNext(long recentLayoutBranchId,
                                                            long userId,
                                                            OrderByComparator<RecentLayoutBranch> orderByComparator)
                                                     throws NoSuchRecentLayoutBranchException
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where userId = ?.

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

removeByUserId

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

Parameters:
userId - the user ID

countByUserId

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

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

findByLayoutBranchId

public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId)
Returns all the recent layout branchs where layoutBranchId = ?.

Parameters:
layoutBranchId - the layout branch ID
Returns:
the matching recent layout branchs

findByLayoutBranchId

public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId,
                                                            int start,
                                                            int end)
Returns a range of all the recent layout branchs where layoutBranchId = ?.

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 RecentLayoutBranchModelImpl. 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:
layoutBranchId - the layout branch ID
start - the lower bound of the range of recent layout branchs
end - the upper bound of the range of recent layout branchs (not inclusive)
Returns:
the range of matching recent layout branchs

findByLayoutBranchId

public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId,
                                                            int start,
                                                            int end,
                                                            OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.

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

findByLayoutBranchId

public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId,
                                                            int start,
                                                            int end,
                                                            OrderByComparator<RecentLayoutBranch> orderByComparator,
                                                            boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.

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 RecentLayoutBranchModelImpl. 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:
layoutBranchId - the layout branch ID
start - the lower bound of the range of recent layout branchs
end - the upper bound of the range of recent layout branchs (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 branchs

findByLayoutBranchId_First

public static RecentLayoutBranch findByLayoutBranchId_First(long layoutBranchId,
                                                            OrderByComparator<RecentLayoutBranch> orderByComparator)
                                                     throws NoSuchRecentLayoutBranchException
Returns the first recent layout branch in the ordered set where layoutBranchId = ?.

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

fetchByLayoutBranchId_First

public static RecentLayoutBranch fetchByLayoutBranchId_First(long layoutBranchId,
                                                             OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where layoutBranchId = ?.

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

findByLayoutBranchId_Last

public static RecentLayoutBranch findByLayoutBranchId_Last(long layoutBranchId,
                                                           OrderByComparator<RecentLayoutBranch> orderByComparator)
                                                    throws NoSuchRecentLayoutBranchException
Returns the last recent layout branch in the ordered set where layoutBranchId = ?.

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

fetchByLayoutBranchId_Last

public static RecentLayoutBranch fetchByLayoutBranchId_Last(long layoutBranchId,
                                                            OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where layoutBranchId = ?.

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

findByLayoutBranchId_PrevAndNext

public static RecentLayoutBranch[] findByLayoutBranchId_PrevAndNext(long recentLayoutBranchId,
                                                                    long layoutBranchId,
                                                                    OrderByComparator<RecentLayoutBranch> orderByComparator)
                                                             throws NoSuchRecentLayoutBranchException
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where layoutBranchId = ?.

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

removeByLayoutBranchId

public static void removeByLayoutBranchId(long layoutBranchId)
Removes all the recent layout branchs where layoutBranchId = ? from the database.

Parameters:
layoutBranchId - the layout branch ID

countByLayoutBranchId

public static int countByLayoutBranchId(long layoutBranchId)
Returns the number of recent layout branchs where layoutBranchId = ?.

Parameters:
layoutBranchId - the layout branch ID
Returns:
the number of matching recent layout branchs

findByU_L_P

public static RecentLayoutBranch findByU_L_P(long userId,
                                             long layoutSetBranchId,
                                             long plid)
                                      throws NoSuchRecentLayoutBranchException
Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutBranchException 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 branch
Throws:
NoSuchRecentLayoutBranchException - if a matching recent layout branch could not be found

fetchByU_L_P

public static RecentLayoutBranch fetchByU_L_P(long userId,
                                              long layoutSetBranchId,
                                              long plid)
Returns the recent layout branch 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 branch, or null if a matching recent layout branch could not be found

fetchByU_L_P

public static RecentLayoutBranch fetchByU_L_P(long userId,
                                              long layoutSetBranchId,
                                              long plid,
                                              boolean retrieveFromCache)
Returns the recent layout branch 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 branch, or null if a matching recent layout branch could not be found

removeByU_L_P

public static RecentLayoutBranch removeByU_L_P(long userId,
                                               long layoutSetBranchId,
                                               long plid)
                                        throws NoSuchRecentLayoutBranchException
Removes the recent layout branch 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 branch that was removed
Throws:
NoSuchRecentLayoutBranchException

countByU_L_P

public static int countByU_L_P(long userId,
                               long layoutSetBranchId,
                               long plid)
Returns the number of recent layout branchs 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 branchs

cacheResult

public static void cacheResult(RecentLayoutBranch recentLayoutBranch)
Caches the recent layout branch in the entity cache if it is enabled.

Parameters:
recentLayoutBranch - the recent layout branch

cacheResult

public static void cacheResult(List<RecentLayoutBranch> recentLayoutBranchs)
Caches the recent layout branchs in the entity cache if it is enabled.

Parameters:
recentLayoutBranchs - the recent layout branchs

create

public static RecentLayoutBranch create(long recentLayoutBranchId)
Creates a new recent layout branch with the primary key. Does not add the recent layout branch to the database.

Parameters:
recentLayoutBranchId - the primary key for the new recent layout branch
Returns:
the new recent layout branch

remove

public static RecentLayoutBranch remove(long recentLayoutBranchId)
                                 throws NoSuchRecentLayoutBranchException
Removes the recent layout branch with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
recentLayoutBranchId - the primary key of the recent layout branch
Returns:
the recent layout branch that was removed
Throws:
NoSuchRecentLayoutBranchException - if a recent layout branch with the primary key could not be found

updateImpl

public static RecentLayoutBranch updateImpl(RecentLayoutBranch recentLayoutBranch)

findByPrimaryKey

public static RecentLayoutBranch findByPrimaryKey(long recentLayoutBranchId)
                                           throws NoSuchRecentLayoutBranchException
Returns the recent layout branch with the primary key or throws a NoSuchRecentLayoutBranchException if it could not be found.

Parameters:
recentLayoutBranchId - the primary key of the recent layout branch
Returns:
the recent layout branch
Throws:
NoSuchRecentLayoutBranchException - if a recent layout branch with the primary key could not be found

fetchByPrimaryKey

public static RecentLayoutBranch fetchByPrimaryKey(long recentLayoutBranchId)
Returns the recent layout branch with the primary key or returns null if it could not be found.

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

fetchByPrimaryKeys

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

findAll

public static List<RecentLayoutBranch> findAll()
Returns all the recent layout branchs.

Returns:
the recent layout branchs

findAll

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

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

findAll

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

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

findAll

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

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 RecentLayoutBranchModelImpl. 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 branchs
end - the upper bound of the range of recent layout branchs (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 branchs

removeAll

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


countAll

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

Returns:
the number of recent layout branchs

getPersistence

public static RecentLayoutBranchPersistence getPersistence()

Liferay 7.0-ce-b4