SearchDTO.java
package com.tradecloud.dto.facilitiesregister;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.tradecloud.domain.dto.base.SearchBase;
public abstract class SearchDTO extends SearchBase {
@JsonProperty()
@JsonPropertyDescription(value = "The maximum number of entities returned per page.")
private int pageSize = 10;
@JsonProperty
@JsonPropertyDescription(value = "The zero-based index of the pages.")
private int pageNumber = 0;
@JsonProperty(access = JsonProperty.Access.AUTO)
@JsonPropertyDescription(value = "search criteria number of pages")
private int numberOfPages = 0;
@JsonProperty(access = JsonProperty.Access.AUTO)
@JsonPropertyDescription(value = "The total number of entities that meet the search criteria.")
private long total;
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public int getPageNumber() {
return pageNumber;
}
public void setPageNumber(int pageNumber) {
this.pageNumber = pageNumber;
}
public int getNumberOfPages() {
return numberOfPages;
}
public void setNumberOfPages(int numberOfPages) {
this.numberOfPages = numberOfPages;
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
}