ExportDocumentSearch.java
package com.tradecloud.dto.export;
import com.tradecloud.domain.dto.base.SearchBase;
import com.tradecloud.domain.export.Export;
import com.tradecloud.domain.export.ExportDocument.Status;
import com.tradecloud.domain.export.ExportParty;
import com.tradecloud.domain.model.organisationalunit.OrganisationalUnit;
import com.tradecloud.domain.place.Country;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.Date;
@Component
@Scope("view")
public class ExportDocumentSearch extends SearchBase implements Serializable {
private static final long serialVersionUID = 1L;
private Export export;
private String shipmentNumber;
private String documentType;
private String filename;
private Status status;
private Date createdDateFrom;
private Date createdDateTo;
private Country countryOfDestination;
private ExportParty consignee;
private OrganisationalUnit organisationalUnit;
private String exportersReference;
private com.tradecloud.domain.sars.Status exportStatus;
public Export getExport() {
return export;
}
public void setExport(Export export) {
this.export = export;
}
public String getShipmentNumber() {
return shipmentNumber;
}
public void setShipmentNumber(String shipmentNumber) {
this.shipmentNumber = shipmentNumber;
}
public String getDocumentType() {
return documentType;
}
public void setDocumentType(String documentType) {
this.documentType = documentType;
}
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public Status getStatus() {
return status;
}
public void setStatus(Status status) {
this.status = status;
}
@Override
public String getTableName() {
return "ExportDocument";
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
public Country getCountryOfDestination() {
return countryOfDestination;
}
public void setCountryOfDestination(Country countryOfDestination) {
this.countryOfDestination = countryOfDestination;
}
public ExportParty getConsignee() {
return consignee;
}
public void setConsignee(ExportParty consignee) {
this.consignee = consignee;
}
public Date getCreatedDateFrom() {
return createdDateFrom;
}
public void setCreatedDateFrom(Date createdDateFrom) {
this.createdDateFrom = createdDateFrom;
}
public Date getCreatedDateTo() {
return createdDateTo;
}
public void setCreatedDateTo(Date createdDateTo) {
this.createdDateTo = createdDateTo;
}
public OrganisationalUnit getOrganisationalUnit() {
return organisationalUnit;
}
public void setOrganisationalUnit(OrganisationalUnit organisationalUnit) {
this.organisationalUnit = organisationalUnit;
}
public String getExportersReference() {
return exportersReference;
}
public void setExportersReference(String exportersReference) {
this.exportersReference = exportersReference;
}
public com.tradecloud.domain.sars.Status getExportStatus() {
return exportStatus;
}
public void setExportStatus(com.tradecloud.domain.sars.Status exportStatus) {
this.exportStatus = exportStatus;
}
}