Class SearchQuery

java.lang.Object
org.localify.dto.SearchQuery
All Implemented Interfaces:
Serializable

public class SearchQuery extends Object implements Serializable
Represents a search query.
See Also:
  • Field Details

    • DEFAULT_SEARCH_LIMIT

      public static final int DEFAULT_SEARCH_LIMIT
      The default search limit.
      See Also:
  • Constructor Details

    • SearchQuery

      public SearchQuery()
      Default constructor.
    • SearchQuery

      public SearchQuery(String q)
      Constructs a new SearchQuery with the specified query string.
      Parameters:
      q - The query string.
    • SearchQuery

      public SearchQuery(String q, Integer limit)
      Constructs a new SearchQuery with the specified query string and limit.
      Parameters:
      q - The query string.
      limit - The limit.
  • Method Details

    • getQ

      public String getQ()
      Gets the search query string.
      Returns:
      The search query string.
    • setQ

      public void setQ(String q)
      Sets the search query string.
      Parameters:
      q - The search query string.
    • getLimit

      @NotNull public @NotNull Integer getLimit()
      Gets the search limit.
      Returns:
      The search limit.
    • setLimit

      public void setLimit(@NotNull @NotNull Integer limit)
      Sets the search limit.
      Parameters:
      limit - The search limit.
    • pageable

      public org.springframework.data.domain.Pageable pageable()
      Creates a Pageable object from the search query.
      Returns:
      A Pageable object.
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.