package com.jingpu.android.apersistance.greendao.model;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit. 
/**
 * Entity mapped to table "ORDERS".
 */
public class Orders {

    private String oCompo;
    private int oId;
    private short oDId;
    private short oWId;
    private int oCId;
    /** Not-null value. */
    private String oEntryD;
    private Short oCarrierId;
    private short oOlCnt;
    private short oAllLocal;
    private Short oCarrierIdInitial;
    private Boolean oInitial;

    public Orders() {
    }

    public Orders(String oCompo) {
        this.oCompo = oCompo;
    }

    public Orders(String oCompo, int oId, short oDId, short oWId, int oCId, String oEntryD, Short oCarrierId, short oOlCnt, short oAllLocal, Short oCarrierIdInitial, Boolean oInitial) {
        this.oCompo = oCompo;
        this.oId = oId;
        this.oDId = oDId;
        this.oWId = oWId;
        this.oCId = oCId;
        this.oEntryD = oEntryD;
        this.oCarrierId = oCarrierId;
        this.oOlCnt = oOlCnt;
        this.oAllLocal = oAllLocal;
        this.oCarrierIdInitial = oCarrierIdInitial;
        this.oInitial = oInitial;
    }

    public void clear(){
        this.oCompo = null;
        this.oId = 0;
        this.oDId = 0;
        this.oWId = 0;
        this.oCId = 0;
        //this.customer = null;
        this.oEntryD = null;
        this.oCarrierId = -1;  // null
        this.oOlCnt = 0;
        this.oAllLocal = 0; // false
    }

    public static String getOCompo(Orders obj) {
        return Integer.toString(obj.getOId()) + "-"  + Short.toString(obj.getODId()) + "-"  + Short.toString(obj.getOWId());
    }

    public String getOCompo() {
        return oCompo;
    }

    public void setOCompo(String oCompo) {
        this.oCompo = oCompo;
    }

    public int getOId() {
        return oId;
    }

    public void setOId(int oId) {
        this.oId = oId;
    }

    public short getODId() {
        return oDId;
    }

    public void setODId(short oDId) {
        this.oDId = oDId;
    }

    public short getOWId() {
        return oWId;
    }

    public void setOWId(short oWId) {
        this.oWId = oWId;
    }

    public int getOCId() {
        return oCId;
    }

    public void setOCId(int oCId) {
        this.oCId = oCId;
    }

    /** Not-null value. */
    public String getOEntryD() {
        return oEntryD;
    }

    /** Not-null value; ensure this value is available before it is saved to the database. */
    public void setOEntryD(String oEntryD) {
        this.oEntryD = oEntryD;
    }

    public Short getOCarrierId() {
        return oCarrierId;
    }

    public void setOCarrierId(Short oCarrierId) {
        this.oCarrierId = oCarrierId;
    }

    public short getOOlCnt() {
        return oOlCnt;
    }

    public void setOOlCnt(short oOlCnt) {
        this.oOlCnt = oOlCnt;
    }

    public short getOAllLocal() {
        return oAllLocal;
    }

    public void setOAllLocal(short oAllLocal) {
        this.oAllLocal = oAllLocal;
    }

    public Short getOCarrierIdInitial() {
        return oCarrierIdInitial;
    }

    public void setOCarrierIdInitial(Short oCarrierIdInitial) {
        this.oCarrierIdInitial = oCarrierIdInitial;
    }

    public Boolean getOInitial() {
        return oInitial;
    }

    public void setOInitial(Boolean oInitial) {
        this.oInitial = oInitial;
    }
}
