Class RecentLayoutSetBranchUtil
com.liferay.portal.service.persistence.impl.RecentLayoutSetBranchPersistenceImpl 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
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(RecentLayoutSetBranch recentLayoutSetBranch) Caches the recent layout set branch in the entity cache if it is enabled.static voidcacheResult(List<RecentLayoutSetBranch> recentLayoutSetBranchs) Caches the recent layout set branches in the entity cache if it is enabled.static voidstatic voidclearCache(RecentLayoutSetBranch recentLayoutSetBranch) static intcountAll()Returns the number of recent layout set branches.static intcountByGroupId(long groupId) Returns the number of recent layout set branches where groupId = ?.static intcountByLayoutSetBranchId(long layoutSetBranchId) Returns the number of recent layout set branches where layoutSetBranchId = ?.static intcountByU_L(long userId, long layoutSetId) Returns the number of recent layout set branches where userId = ? and layoutSetId = ?.static intcountByUserId(long userId) Returns the number of recent layout set branches where userId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static RecentLayoutSetBranchcreate(long recentLayoutSetBranchId) Creates a new recent layout set branch with the primary key.static RecentLayoutSetBranchfetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where groupId = ?.static RecentLayoutSetBranchfetchByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.static RecentLayoutSetBranchfetchByPrimaryKey(long recentLayoutSetBranchId) Returns the recent layout set branch with the primary key or returnsnullif it could not be found.static Map<Serializable, RecentLayoutSetBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static RecentLayoutSetBranchfetchByU_L(long userId, long layoutSetId) Returns the recent layout set branch where userId = ? and layoutSetId = ? or returnsnullif it could not be found.static RecentLayoutSetBranchfetchByU_L(long userId, long layoutSetId, boolean useFinderCache) Returns the recent layout set branch where userId = ? and layoutSetId = ? or returnsnullif it could not be found, optionally using the finder cache.static RecentLayoutSetBranchfetchByUserId_First(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where userId = ?.static List<RecentLayoutSetBranch> findAll()Returns all the recent layout set branches.static List<RecentLayoutSetBranch> findAll(int start, int end) Returns a range of all the recent layout set branches.static List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches.static List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches.static List<RecentLayoutSetBranch> findByGroupId(long groupId) Returns all the recent layout set branches where groupId = ?.static List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end) Returns a range of all the recent layout set branches where groupId = ?.static List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where groupId = ?.static List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where groupId = ?.static RecentLayoutSetBranchfindByGroupId_First(long groupId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where groupId = ?.static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId) Returns all the recent layout set branches where layoutSetBranchId = ?.static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end) Returns a range of all the recent layout set branches where layoutSetBranchId = ?.static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where layoutSetBranchId = ?.static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where layoutSetBranchId = ?.static RecentLayoutSetBranchfindByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where layoutSetBranchId = ?.static RecentLayoutSetBranchfindByPrimaryKey(long recentLayoutSetBranchId) Returns the recent layout set branch with the primary key or throws aNoSuchRecentLayoutSetBranchExceptionif it could not be found.static RecentLayoutSetBranchfindByU_L(long userId, long layoutSetId) Returns the recent layout set branch where userId = ? and layoutSetId = ? or throws aNoSuchRecentLayoutSetBranchExceptionif it could not be found.static List<RecentLayoutSetBranch> findByUserId(long userId) Returns all the recent layout set branches where userId = ?.static List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end) Returns a range of all the recent layout set branches where userId = ?.static List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where userId = ?.static List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where userId = ?.static RecentLayoutSetBranchfindByUserId_First(long userId, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns the first recent layout set branch in the ordered set where userId = ?.static List<RecentLayoutSetBranch> findWithDynamicQuery(DynamicQuery dynamicQuery) static List<RecentLayoutSetBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<RecentLayoutSetBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) static RecentLayoutSetBranchremove(long recentLayoutSetBranchId) Removes the recent layout set branch with the primary key from the database.static voidRemoves all the recent layout set branches from the database.static voidremoveByGroupId(long groupId) Removes all the recent layout set branches where groupId = ? from the database.static voidremoveByLayoutSetBranchId(long layoutSetBranchId) Removes all the recent layout set branches where layoutSetBranchId = ? from the database.static RecentLayoutSetBranchremoveByU_L(long userId, long layoutSetId) Removes the recent layout set branch where userId = ? and layoutSetId = ? from the database.static voidremoveByUserId(long userId) Removes all the recent layout set branches where userId = ? from the database.static voidsetPersistence(RecentLayoutSetBranchPersistence persistence) static RecentLayoutSetBranchupdate(RecentLayoutSetBranch recentLayoutSetBranch) static RecentLayoutSetBranchupdate(RecentLayoutSetBranch recentLayoutSetBranch, ServiceContext serviceContext) static RecentLayoutSetBranchupdateImpl(RecentLayoutSetBranch recentLayoutSetBranch)
-
Constructor Details
-
RecentLayoutSetBranchUtil
public RecentLayoutSetBranchUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
- See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,RecentLayoutSetBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
- See Also:
-
findWithDynamicQuery
public static List<RecentLayoutSetBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<RecentLayoutSetBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static RecentLayoutSetBranch update(RecentLayoutSetBranch recentLayoutSetBranch, ServiceContext serviceContext) - See Also:
-
findByGroupId
Returns all the recent layout set branches where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching recent layout set branches
-
findByGroupId
Returns a range of all the recent layout set branches where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)- Returns:
- the range of matching recent layout set branches
-
findByGroupId
public static List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching recent layout set branches
-
findByGroupId
public static List<RecentLayoutSetBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching recent layout set branches
-
findByGroupId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch
-
fetchByGroupId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch, or
nullif a matching recent layout set branch could not be found
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the recent layout set branches where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of recent layout set branches where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching recent layout set branches
-
findByUserId
Returns all the recent layout set branches where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching recent layout set branches
-
findByUserId
Returns a range of all the recent layout set branches where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)- Returns:
- the range of matching recent layout set branches
-
findByUserId
public static List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching recent layout set branches
-
findByUserId
public static List<RecentLayoutSetBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching recent layout set branches
-
findByUserId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch
-
fetchByUserId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch, or
nullif a matching recent layout set branch could not be found
-
removeByUserId
public static void removeByUserId(long userId) Removes all the recent layout set branches where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static int countByUserId(long userId) Returns the number of recent layout set branches where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching recent layout set branches
-
findByLayoutSetBranchId
Returns all the recent layout set branches where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId- the layout set branch ID- Returns:
- the matching recent layout set branches
-
findByLayoutSetBranchId
public static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end) Returns a range of all the recent layout set branches where layoutSetBranchId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
layoutSetBranchId- the layout set branch IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)- Returns:
- the range of matching recent layout set branches
-
findByLayoutSetBranchId
public static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches where layoutSetBranchId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
layoutSetBranchId- the layout set branch IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching recent layout set branches
-
findByLayoutSetBranchId
public static List<RecentLayoutSetBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches where layoutSetBranchId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
layoutSetBranchId- the layout set branch IDstart- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching recent layout set branches
-
findByLayoutSetBranchId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch
-
fetchByLayoutSetBranchId_First
public static 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching recent layout set branch, or
nullif a matching recent layout set branch could not be found
-
removeByLayoutSetBranchId
public static void removeByLayoutSetBranchId(long layoutSetBranchId) Removes all the recent layout set branches where layoutSetBranchId = ? from the database.- Parameters:
layoutSetBranchId- the layout set branch ID
-
countByLayoutSetBranchId
public static int countByLayoutSetBranchId(long layoutSetBranchId) Returns the number of recent layout set branches where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId- the layout set branch ID- Returns:
- the number of matching recent layout set branches
-
findByU_L
public static RecentLayoutSetBranch findByU_L(long userId, long layoutSetId) throws NoSuchRecentLayoutSetBranchException Returns the recent layout set branch where userId = ? and layoutSetId = ? or throws aNoSuchRecentLayoutSetBranchExceptionif it could not be found.- Parameters:
userId- the user IDlayoutSetId- the layout set ID- Returns:
- the matching recent layout set branch
-
fetchByU_L
Returns the recent layout set branch where userId = ? and layoutSetId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user IDlayoutSetId- the layout set ID- Returns:
- the matching recent layout set branch, or
nullif a matching recent layout set branch could not be found
-
fetchByU_L
public static RecentLayoutSetBranch fetchByU_L(long userId, long layoutSetId, boolean useFinderCache) Returns the recent layout set branch where userId = ? and layoutSetId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDlayoutSetId- the layout set IDuseFinderCache- whether to use the finder cache- Returns:
- the matching recent layout set branch, or
nullif a matching recent layout set branch could not be found
-
removeByU_L
public static 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 IDlayoutSetId- the layout set ID- Returns:
- the recent layout set branch that was removed
- Throws:
NoSuchRecentLayoutSetBranchException
-
countByU_L
public static int countByU_L(long userId, long layoutSetId) Returns the number of recent layout set branches where userId = ? and layoutSetId = ?.- Parameters:
userId- the user IDlayoutSetId- the layout set ID- Returns:
- the number of matching recent layout set branches
-
cacheResult
Caches the recent layout set branch in the entity cache if it is enabled.- Parameters:
recentLayoutSetBranch- the recent layout set branch
-
cacheResult
Caches the recent layout set branches in the entity cache if it is enabled.- Parameters:
recentLayoutSetBranchs- the recent layout set branches
-
create
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
public static 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
-
updateImpl
-
findByPrimaryKey
public static RecentLayoutSetBranch findByPrimaryKey(long recentLayoutSetBranchId) throws NoSuchRecentLayoutSetBranchException Returns the recent layout set branch with the primary key or throws aNoSuchRecentLayoutSetBranchExceptionif it could not be found.- Parameters:
recentLayoutSetBranchId- the primary key of the recent layout set branch- Returns:
- the recent layout set branch
-
fetchByPrimaryKey
Returns the recent layout set branch with the primary key or returnsnullif it could not be found.- Parameters:
recentLayoutSetBranchId- the primary key of the recent layout set branch- Returns:
- the recent layout set branch, or
nullif a recent layout set branch with the primary key could not be found
-
findAll
Returns all the recent layout set branches.- Returns:
- the recent layout set branches
-
findAll
Returns a range of all the recent layout set branches.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
start- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)- Returns:
- the range of recent layout set branches
-
findAll
public static List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator) Returns an ordered range of all the recent layout set branches.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
start- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of recent layout set branches
-
findAll
public static List<RecentLayoutSetBranch> findAll(int start, int end, OrderByComparator<RecentLayoutSetBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout set branches.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.RecentLayoutSetBranchModelImpl.- Parameters:
start- the lower bound of the range of recent layout set branchesend- the upper bound of the range of recent layout set branches (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of recent layout set branches
-
removeAll
public static void removeAll()Removes all the recent layout set branches from the database. -
countAll
public static int countAll()Returns the number of recent layout set branches.- Returns:
- the number of recent layout set branches
-
getPersistence
-
setPersistence
-