Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Interface RecentLayoutSetBranchPersistence

All Superinterfaces:
BasePersistence<RecentLayoutSetBranch>

@ProviderType
public interface RecentLayoutSetBranchPersistence
extends BasePersistence<RecentLayoutSetBranch>

The persistence interface for the recent layout set branch service.

Caching information and settings can be found in portal.properties

See Also:
RecentLayoutSetBranchPersistenceImpl, RecentLayoutSetBranchUtil

Method Summary
 void cacheResult(List<RecentLayoutSetBranch> recentLayoutSetBranchs)
          Caches the recent layout set branchs in the entity cache if it is enabled.
 void cacheResult(RecentLayoutSetBranch recentLayoutSetBranch)
          Caches the recent layout set branch in the entity cache if it is enabled.
 int countAll()
          Returns the number of recent layout set branchs.
 int countByGroupId(long groupId)
          Returns the number of recent layout set branchs where groupId = ?.
 int countByLayoutSetBranchId(long layoutSetBranchId)
          Returns the number of recent layout set branchs where layoutSetBranchId = ?.
 int countByU_L(long userId, long layoutSetId)
          Returns the number of recent layout set branchs where userId = ? and layoutSetId = ?.
 int countByUserId(long userId)
          Returns the number of recent layout set branchs where userId = ?.
 RecentLayoutSetBranch create(long recentLayoutSetBranchId)
          Creates a new recent layout set branch with the primary key.
 RecentLayoutSetBranch fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where groupId = ?.
 RecentLayoutSetBranch fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where groupId = ?.
 RecentLayoutSetBranch fetchByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.
 RecentLayoutSetBranch fetchByLayoutSetBranchId_Last(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?.
 RecentLayoutSetBranch fetchByPrimaryKey(long recentLayoutSetBranchId)
          Returns the recent layout set branch with the primary key or returns null if it could not be found.
 Map<Serializable,RecentLayoutSetBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 RecentLayoutSetBranch fetchByU_L(long userId, long layoutSetId)
          Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns null if it could not be found.
 RecentLayoutSetBranch fetchByU_L(long userId, long layoutSetId, boolean retrieveFromCache)
          Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns null if it could not be found, optionally using the finder cache.
 RecentLayoutSetBranch fetchByUserId_First(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where userId = ?.
 RecentLayoutSetBranch fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where userId = ?.
 List<RecentLayoutSetBranch> findAll()
          Returns all the recent layout set branchs.
 List<RecentLayoutSetBranch> findAll(int start, int end)
          Returns a range of all the recent layout set branchs.
 List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns an ordered range of all the recent layout set branchs.
 List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout set branchs.
 RecentLayoutSetBranch findByGroupId_First(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where groupId = ?.
 RecentLayoutSetBranch findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where groupId = ?.
 RecentLayoutSetBranch[] findByGroupId_PrevAndNext(long recentLayoutSetBranchId, long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where groupId = ?.
 List<RecentLayoutSetBranch> findByGroupId(long groupId)
          Returns all the recent layout set branchs where groupId = ?.
 List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end)
          Returns a range of all the recent layout set branchs where groupId = ?.
 List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns an ordered range of all the recent layout set branchs where groupId = ?.
 List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout set branchs where groupId = ?.
 RecentLayoutSetBranch findByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.
 RecentLayoutSetBranch findByLayoutSetBranchId_Last(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?.
 RecentLayoutSetBranch[] findByLayoutSetBranchId_PrevAndNext(long recentLayoutSetBranchId, long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where layoutSetBranchId = ?.
 List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId)
          Returns all the recent layout set branchs where layoutSetBranchId = ?.
 List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end)
          Returns a range of all the recent layout set branchs where layoutSetBranchId = ?.
 List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?.
 List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?.
 RecentLayoutSetBranch findByPrimaryKey(long recentLayoutSetBranchId)
          Returns the recent layout set branch with the primary key or throws a NoSuchRecentLayoutSetBranchException if it could not be found.
 RecentLayoutSetBranch findByU_L(long userId, long layoutSetId)
          Returns the recent layout set branch where userId = ? and layoutSetId = ? or throws a NoSuchRecentLayoutSetBranchException if it could not be found.
 RecentLayoutSetBranch findByUserId_First(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the first recent layout set branch in the ordered set where userId = ?.
 RecentLayoutSetBranch findByUserId_Last(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the last recent layout set branch in the ordered set where userId = ?.
 RecentLayoutSetBranch[] findByUserId_PrevAndNext(long recentLayoutSetBranchId, long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where userId = ?.
 List<RecentLayoutSetBranch> findByUserId(long userId)
          Returns all the recent layout set branchs where userId = ?.
 List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end)
          Returns a range of all the recent layout set branchs where userId = ?.
 List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator)
          Returns an ordered range of all the recent layout set branchs where userId = ?.
 List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the recent layout set branchs where userId = ?.
 RecentLayoutSetBranch remove(long recentLayoutSetBranchId)
          Removes the recent layout set branch with the primary key from the database.
 void removeAll()
          Removes all the recent layout set branchs from the database.
 void removeByGroupId(long groupId)
          Removes all the recent layout set branchs where groupId = ? from the database.
 void removeByLayoutSetBranchId(long layoutSetBranchId)
          Removes all the recent layout set branchs where layoutSetBranchId = ? from the database.
 RecentLayoutSetBranch removeByU_L(long userId, long layoutSetId)
          Removes the recent layout set branch where userId = ? and layoutSetId = ? from the database.
 void removeByUserId(long userId)
          Removes all the recent layout set branchs where userId = ? from the database.
 RecentLayoutSetBranch updateImpl(RecentLayoutSetBranch recentLayoutSetBranch)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<RecentLayoutSetBranch> findByGroupId(long groupId)
Returns all the recent layout set branchs where groupId = ?.

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

findByGroupId

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

findByGroupId

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

findByGroupId

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

findByGroupId_First

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

fetchByGroupId_First

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

findByGroupId_Last

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

fetchByGroupId_Last

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

findByGroupId_PrevAndNext

RecentLayoutSetBranch[] findByGroupId_PrevAndNext(long recentLayoutSetBranchId,
                                                  long groupId,
                                                  OrderByComparator<RecentLayoutSetBranch> orderByComparator)
                                                  throws NoSuchRecentLayoutSetBranchException
Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where groupId = ?.

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

removeByGroupId

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

Parameters:
groupId - the group ID

countByGroupId

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

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

findByUserId

List<RecentLayoutSetBranch> findByUserId(long userId)
Returns all the recent layout set branchs where userId = ?.

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

findByUserId

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

findByUserId

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

findByUserId

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

findByUserId_First

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

fetchByUserId_First

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

findByUserId_Last

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

fetchByUserId_Last

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

findByUserId_PrevAndNext

RecentLayoutSetBranch[] findByUserId_PrevAndNext(long recentLayoutSetBranchId,
                                                 long userId,
                                                 OrderByComparator<RecentLayoutSetBranch> orderByComparator)
                                                 throws NoSuchRecentLayoutSetBranchException
Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where userId = ?.

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

removeByUserId

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

Parameters:
userId - the user ID

countByUserId

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

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

findByLayoutSetBranchId

List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId)
Returns all the recent layout set branchs where layoutSetBranchId = ?.

Parameters:
layoutSetBranchId - the layout set branch ID
Returns:
the matching recent layout set branchs

findByLayoutSetBranchId

List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId,
                                                    int start,
                                                    int end)
Returns a range of all the recent layout set branchs where layoutSetBranchId = ?.

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

findByLayoutSetBranchId

List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator)
Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?.

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

findByLayoutSetBranchId

List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator,
                                                    boolean retrieveFromCache)
Returns an ordered range of all the recent layout set branchs where layoutSetBranchId = ?.

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 RecentLayoutSetBranchModelImpl. 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:
layoutSetBranchId - the layout set branch ID
start - the lower bound of the range of recent layout set branchs
end - the upper bound of the range of recent layout set 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 set branchs

findByLayoutSetBranchId_First

RecentLayoutSetBranch findByLayoutSetBranchId_First(long layoutSetBranchId,
                                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator)
                                                    throws NoSuchRecentLayoutSetBranchException
Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.

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

fetchByLayoutSetBranchId_First

RecentLayoutSetBranch fetchByLayoutSetBranchId_First(long layoutSetBranchId,
                                                     OrderByComparator<RecentLayoutSetBranch> orderByComparator)
Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.

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

findByLayoutSetBranchId_Last

RecentLayoutSetBranch findByLayoutSetBranchId_Last(long layoutSetBranchId,
                                                   OrderByComparator<RecentLayoutSetBranch> orderByComparator)
                                                   throws NoSuchRecentLayoutSetBranchException
Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?.

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

fetchByLayoutSetBranchId_Last

RecentLayoutSetBranch fetchByLayoutSetBranchId_Last(long layoutSetBranchId,
                                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator)
Returns the last recent layout set branch in the ordered set where layoutSetBranchId = ?.

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

findByLayoutSetBranchId_PrevAndNext

RecentLayoutSetBranch[] findByLayoutSetBranchId_PrevAndNext(long recentLayoutSetBranchId,
                                                            long layoutSetBranchId,
                                                            OrderByComparator<RecentLayoutSetBranch> orderByComparator)
                                                            throws NoSuchRecentLayoutSetBranchException
Returns the recent layout set branchs before and after the current recent layout set branch in the ordered set where layoutSetBranchId = ?.

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

removeByLayoutSetBranchId

void removeByLayoutSetBranchId(long layoutSetBranchId)
Removes all the recent layout set branchs where layoutSetBranchId = ? from the database.

Parameters:
layoutSetBranchId - the layout set branch ID

countByLayoutSetBranchId

int countByLayoutSetBranchId(long layoutSetBranchId)
Returns the number of recent layout set branchs where layoutSetBranchId = ?.

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

findByU_L

RecentLayoutSetBranch findByU_L(long userId,
                                long layoutSetId)
                                throws NoSuchRecentLayoutSetBranchException
Returns the recent layout set branch where userId = ? and layoutSetId = ? or throws a NoSuchRecentLayoutSetBranchException if it could not be found.

Parameters:
userId - the user ID
layoutSetId - the layout set ID
Returns:
the matching recent layout set branch
Throws:
NoSuchRecentLayoutSetBranchException - if a matching recent layout set branch could not be found

fetchByU_L

RecentLayoutSetBranch fetchByU_L(long userId,
                                 long layoutSetId)
Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns null if it could not be found. Uses the finder cache.

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

fetchByU_L

RecentLayoutSetBranch fetchByU_L(long userId,
                                 long layoutSetId,
                                 boolean retrieveFromCache)
Returns the recent layout set branch where userId = ? and layoutSetId = ? or returns null if it could not be found, optionally using the finder cache.

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

removeByU_L

RecentLayoutSetBranch removeByU_L(long userId,
                                  long layoutSetId)
                                  throws NoSuchRecentLayoutSetBranchException
Removes the recent layout set branch where userId = ? and layoutSetId = ? from the database.

Parameters:
userId - the user ID
layoutSetId - the layout set ID
Returns:
the recent layout set branch that was removed
Throws:
NoSuchRecentLayoutSetBranchException

countByU_L

int countByU_L(long userId,
               long layoutSetId)
Returns the number of recent layout set branchs where userId = ? and layoutSetId = ?.

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

cacheResult

void cacheResult(RecentLayoutSetBranch recentLayoutSetBranch)
Caches the recent layout set branch in the entity cache if it is enabled.

Parameters:
recentLayoutSetBranch - the recent layout set branch

cacheResult

void cacheResult(List<RecentLayoutSetBranch> recentLayoutSetBranchs)
Caches the recent layout set branchs in the entity cache if it is enabled.

Parameters:
recentLayoutSetBranchs - the recent layout set branchs

create

RecentLayoutSetBranch create(long recentLayoutSetBranchId)
Creates a new recent layout set branch with the primary key. Does not add the recent layout set branch to the database.

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

remove

RecentLayoutSetBranch remove(long recentLayoutSetBranchId)
                             throws NoSuchRecentLayoutSetBranchException
Removes the recent layout set branch with the primary key from the database. Also notifies the appropriate model listeners.

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

updateImpl

RecentLayoutSetBranch updateImpl(RecentLayoutSetBranch recentLayoutSetBranch)

findByPrimaryKey

RecentLayoutSetBranch findByPrimaryKey(long recentLayoutSetBranchId)
                                       throws NoSuchRecentLayoutSetBranchException
Returns the recent layout set branch with the primary key or throws a NoSuchRecentLayoutSetBranchException if it could not be found.

Parameters:
recentLayoutSetBranchId - the primary key of the recent layout set branch
Returns:
the recent layout set branch
Throws:
NoSuchRecentLayoutSetBranchException - if a recent layout set branch with the primary key could not be found

fetchByPrimaryKey

RecentLayoutSetBranch fetchByPrimaryKey(long recentLayoutSetBranchId)
Returns the recent layout set branch with the primary key or returns null if it could not be found.

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

fetchByPrimaryKeys

Map<Serializable,RecentLayoutSetBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<RecentLayoutSetBranch>

findAll

List<RecentLayoutSetBranch> findAll()
Returns all the recent layout set branchs.

Returns:
the recent layout set branchs

findAll

List<RecentLayoutSetBranch> findAll(int start,
                                    int end)
Returns a range of all the recent layout set 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 RecentLayoutSetBranchModelImpl. 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 set branchs
end - the upper bound of the range of recent layout set branchs (not inclusive)
Returns:
the range of recent layout set branchs

findAll

List<RecentLayoutSetBranch> findAll(int start,
                                    int end,
                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator)
Returns an ordered range of all the recent layout set 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 RecentLayoutSetBranchModelImpl. 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 set branchs
end - the upper bound of the range of recent layout set branchs (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of recent layout set branchs

findAll

List<RecentLayoutSetBranch> findAll(int start,
                                    int end,
                                    OrderByComparator<RecentLayoutSetBranch> orderByComparator,
                                    boolean retrieveFromCache)
Returns an ordered range of all the recent layout set 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 RecentLayoutSetBranchModelImpl. 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 set branchs
end - the upper bound of the range of recent layout set 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 set branchs

removeAll

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


countAll

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

Returns:
the number of recent layout set branchs

Liferay 7.0-ce-b4