Package org.localify.user.dto
Class UserFavoriteQuery
java.lang.Object
org.localify.user.dto.UserFavoriteQuery
Represents a query for a user's favorites.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default limit for the number of results to return. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLimit()Gets the limit for the number of results to return.getPage()Gets the page number.org.springframework.data.domain.Pageablepageable()Gets the pageable object for the query.voidSets the limit for the number of results to return.voidSets the page number.
-
Field Details
-
DEFAULT_LIMIT
public static final int DEFAULT_LIMITThe default limit for the number of results to return.- See Also:
-
-
Constructor Details
-
UserFavoriteQuery
public UserFavoriteQuery()
-
-
Method Details
-
getPage
Gets the page number.- Returns:
- The page number.
-
setPage
Sets the page number.- Parameters:
page- The page number.
-
getLimit
Gets the limit for the number of results to return.- Returns:
- The limit.
-
setLimit
Sets the limit for the number of results to return.- Parameters:
limit- The limit.
-
pageable
public org.springframework.data.domain.Pageable pageable()Gets the pageable object for the query.- Returns:
- The pageable object.
-