HfcOrderSearch.java

package com.tradecloud.dto.order;

import java.io.Serializable;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.tradecloud.domain.model.elcordermanagement.ElcOrderStatus;
import com.tradecloud.domain.model.hfcmanagement.EventLabel;
import com.tradecloud.domain.model.hfcmanagement.ProductGroup;
import com.tradecloud.domain.model.ordermanagement.OrderDates;
import com.tradecloud.domain.place.Country;
import com.tradecloud.domain.shipment.ShippingInformation;
import com.tradecloud.domain.supplier.OrganisationalUnitSupplier;

/**
 * Handles the data for a search for Historical Factor Costing orders.
 */
@Component
@Scope("view")
public class HfcOrderSearch extends OrderSearch implements Serializable {

    private static final long serialVersionUID = 1L;
    private String hfcReference;
    private OrganisationalUnitSupplier supplier;
    private EventLabel eventLabel;
    private boolean includeCustomsDuty;
    private ShippingInformation shippingInformation;
    private String description;
    private String buyer;
    private OrderDates orderDates = new OrderDates();
    private ElcOrderStatus status;
    private ProductGroup productGroup;
    private Country countryOfOrigin;

    public String getHfcReference() {
        return hfcReference;
    }

    public void setHfcReference(String hfcReference) {
        this.hfcReference = hfcReference;
    }

    public OrganisationalUnitSupplier getSupplier() {
        return supplier;
    }

    public void setSupplier(OrganisationalUnitSupplier supplier) {
        this.supplier = supplier;
    }

    public EventLabel getEventLabel() {
        return eventLabel;
    }

    public void setEventLabel(EventLabel eventLabel) {
        this.eventLabel = eventLabel;
    }

    public boolean isIncludeCustomsDuty() {
        return includeCustomsDuty;
    }

    public void setIncludeCustomsDuty(boolean includeCustomsDuty) {
        this.includeCustomsDuty = includeCustomsDuty;
    }

    public ShippingInformation getShippingInformation() {
        return shippingInformation;
    }

    public void setShippingInformation(ShippingInformation shippingInformation) {
        this.shippingInformation = shippingInformation;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getBuyer() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }

    public OrderDates getOrderDates() {
        return orderDates;
    }

    public void setOrderDates(OrderDates orderDates) {
        this.orderDates = orderDates;
    }

    public ElcOrderStatus getStatus() {
        return status;
    }

    public void setStatus(ElcOrderStatus status) {
        this.status = status;
    }

    public ProductGroup getProductGroup() {
        return productGroup;
    }

    public void setProductGroup(ProductGroup productGroup) {
        this.productGroup = productGroup;
    }

    public Country getCountryOfOrigin() {
        return countryOfOrigin;
    }

    public void setCountryOfOrigin(Country countryOfOrigin) {
        this.countryOfOrigin = countryOfOrigin;
    }

    @Override
    public String getTableName() {
        return "HfcOrder";
    }

}