CostSheetSearchResult.java

package com.tradecloud.dto.costing.costsetup;

import com.tradecloud.common.base.PersistenceBase;

//import javax.xml.bind.annotation.XmlAttribute;
import java.util.Date;

/**
 * extending PersistenceBase is wrong! Using it as a workaround at the moment so that SearchableService can be used. Pull the getId into an 
 * interface, and use that.
 */
//@XmlAccessorType(XmlAccessType.FIELD)
public class CostSheetSearchResult extends PersistenceBase {

    private CostSheetSearchResultType type;

    private String incoterm;

    private String reference;

    private String number;

    private Date createdDate;

    private String placeOfLoading;

    private String placeOfDischarge;

    private boolean selected;

    private long costDefinitionId;

    private long costableCostDefinitionId;

    public CostSheetSearchResultType getType() {
        return type;
    }

    public void setType(CostSheetSearchResultType type) {
        this.type = type;
    }

    public String getIncoterm() {
        return incoterm;
    }

    public void setIncoterm(String incoterm) {
        this.incoterm = incoterm;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPlaceOfLoading() {
        return placeOfLoading;
    }

    public void setPlaceOfLoading(String placeOfLoading) {
        this.placeOfLoading = placeOfLoading;
    }

    public String getPlaceOfDischarge() {
        return placeOfDischarge;
    }

    public void setPlaceOfDischarge(String placeOfDischarge) {
        this.placeOfDischarge = placeOfDischarge;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public void setCostDefinitionId(long costDefinitionId) {
        this.costDefinitionId = costDefinitionId;
    }

    public void setCostableCostDefinitionId(long costableCostDefinitionId) {
        this.costableCostDefinitionId = costableCostDefinitionId;
    }

    public long getCostDefinitionId() {
        return costDefinitionId;
    }

    public long getCostableCostDefinitionId() {
        return costableCostDefinitionId;
    }
}