SummaryDTO.java
package com.tradecloud.dto.requestforquote;
import com.tradecloud.domain.place.Region;
import java.util.Set;
public class SummaryDTO {
private String supplier;
private Long supplierId;
private String region;
private String regionCode;
private String style;
private Integer awarded;
private Integer total;
private Integer finalAwarded;
private Integer reallocationToQuantity;
private Integer reallocationFromQuantity;
private Integer finalTotal;
private Region toRegion;
Set<Region> allRegions;
private Long toProductId;
private Long productId;
public String getSupplier() {
return supplier;
}
public void setSupplier(String supplier) {
this.supplier = supplier;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public String getStyle() {
return style;
}
public void setStyle(String style) {
this.style = style;
}
public Integer getAwarded() {
return awarded;
}
public void setAwarded(Integer awarded) {
this.awarded = awarded;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Integer getFinalAwarded() {
return finalAwarded;
}
public void setFinalAwarded(Integer finalAwarded) {
this.finalAwarded = finalAwarded;
}
public Integer getFinalTotal() {
return finalTotal;
}
public void setFinalTotal(Integer finalTotal) {
this.finalTotal = finalTotal;
}
public Region getToRegion() {
return toRegion;
}
public void setToRegion(Region toRegion) {
this.toRegion = toRegion;
}
public Integer getReallocationToQuantity() {
return reallocationToQuantity;
}
public void setReallocationToQuantity(Integer reallocationToQuantity) {
this.reallocationToQuantity = reallocationToQuantity;
}
public static SummaryDTO getSupplier(String supplier){
SummaryDTO summaryDTO=new SummaryDTO();
summaryDTO.setSupplier(supplier);
return summaryDTO;
}
public static SummaryDTO getRegion(String region,Integer total){
SummaryDTO summaryDTO=new SummaryDTO();
summaryDTO.setRegion(region);
summaryDTO.setTotal(total);
return summaryDTO;
}
public static SummaryDTO getStyle(String style,Integer awarded){
SummaryDTO summaryDTO=new SummaryDTO();
summaryDTO.setStyle(style);
summaryDTO.setAwarded(awarded);
return summaryDTO;
}
public Long getSupplierId() {
return supplierId;
}
public void setSupplierId(Long supplierId) {
this.supplierId = supplierId;
}
public String getRegionCode() {
return regionCode;
}
public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
}
public Set<Region> getAllRegions() {
return allRegions;
}
public void setAllRegions(Set<Region> allRegions) {
this.allRegions = allRegions;
}
public Integer getReallocationFromQuantity() {
return reallocationFromQuantity;
}
public void setReallocationFromQuantity(Integer reallocationFromQuantity) {
this.reallocationFromQuantity = reallocationFromQuantity;
}
public Long getToProductId() {
return toProductId;
}
public void setToProductId(Long toProductId) {
this.toProductId = toProductId;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
}