LaadProces.java

  1. package nl.b3p.brmo.loader.entity;

  2. import java.math.BigInteger;
  3. import java.util.Date;

  4. /**
  5.  * @author Boy de Wit
  6.  */
  7. public class LaadProces {

  8.   private Long id;
  9.   private String bestandNaam;
  10.   private String bestandNaamHersteld;
  11.   private Date bestandDatum;
  12.   private String soort;
  13.   private String gebied;
  14.   private String opmerking;
  15.   private LaadProces.STATUS status;
  16.   private Date statusDatum;
  17.   private String contactEmail;
  18.   private Long automatischProces;

  19.   private BigInteger klantafgiftenummer;

  20.   private BigInteger contractafgiftenummer;

  21.   private String artikelnummer;

  22.   private String contractnummer;

  23.   private String afgifteid;

  24.   private String afgiftereferentie;

  25.   private String bestandsreferentie;

  26.   private Date beschikbaar_tot;

  27.   /** see nl.b3p.brmo.persistence.staging.LaadProces */
  28.   public static enum STATUS {
  29.     // als je er bij maakt ook in de andere LaadProces klasse toevoegen
  30.     STAGING_OK,
  31.     STAGING_NOK,
  32.     STAGING_MISSING,
  33.     STAGING_DUPLICAAT,
  34.     ARCHIVE,
  35.     RSGB_TOPNL_WAITING,
  36.     RSGB_TOPNL_OK,
  37.     RSGB_TOPNL_NOK
  38.   };

  39.   public LaadProces() {}

  40.   public LaadProces(String bestandNaam, String soort) {
  41.     this.bestandNaam = bestandNaam;
  42.     this.soort = soort;
  43.   }

  44.   public Long getId() {
  45.     return id;
  46.   }

  47.   public void setId(Long id) {
  48.     this.id = id;
  49.   }

  50.   public String getBestandNaam() {
  51.     return bestandNaam;
  52.   }

  53.   public void setBestandNaam(String bestandNaam) {
  54.     this.bestandNaam = bestandNaam;
  55.   }

  56.   public Date getBestandDatum() {
  57.     return bestandDatum;
  58.   }

  59.   public void setBestandDatum(Date bestandDatum) {
  60.     this.bestandDatum = bestandDatum;
  61.   }

  62.   public String getSoort() {
  63.     return soort;
  64.   }

  65.   public void setSoort(String soort) {
  66.     this.soort = soort;
  67.   }

  68.   public String getGebied() {
  69.     return gebied;
  70.   }

  71.   public void setGebied(String gebied) {
  72.     this.gebied = gebied;
  73.   }

  74.   public String getOpmerking() {
  75.     return opmerking;
  76.   }

  77.   public void setOpmerking(String opmerking) {
  78.     this.opmerking = opmerking;
  79.   }

  80.   public STATUS getStatus() {
  81.     return status;
  82.   }

  83.   public void setStatus(STATUS status) {
  84.     this.status = status;
  85.   }

  86.   public Date getStatusDatum() {
  87.     return statusDatum;
  88.   }

  89.   public void setStatusDatum(Date statusDatum) {
  90.     this.statusDatum = statusDatum;
  91.   }

  92.   public String getContactEmail() {
  93.     return contactEmail;
  94.   }

  95.   public void setContactEmail(String contactEmail) {
  96.     this.contactEmail = contactEmail;
  97.   }

  98.   /**
  99.    * itt de hibernate variant geeft dit de id terug en niet het object.
  100.    *
  101.    * @return automatisch proces id
  102.    */
  103.   public Long getAutomatischProcesId() {
  104.     return automatischProces;
  105.   }

  106.   /**
  107.    * itt de hibernate variant neemt dit aan en niet het object, dat betaat niet in dit model.
  108.    *
  109.    * @param automatischProces automatisch proces id
  110.    */
  111.   public void setAutomatischProcesId(Long automatischProces) {
  112.     this.automatischProces = automatischProces;
  113.   }

  114.   public String getBestandNaamHersteld() {
  115.     return bestandNaamHersteld;
  116.   }

  117.   public void setBestandNaamHersteld(String bestandNaamHersteld) {
  118.     this.bestandNaamHersteld = bestandNaamHersteld;
  119.   }

  120.   public BigInteger getKlantafgiftenummer() {
  121.     return klantafgiftenummer;
  122.   }

  123.   public void setKlantafgiftenummer(BigInteger klantafgiftenummer) {
  124.     this.klantafgiftenummer = klantafgiftenummer;
  125.   }

  126.   public BigInteger getContractafgiftenummer() {
  127.     return contractafgiftenummer;
  128.   }

  129.   public void setContractafgiftenummer(BigInteger contractafgiftenummer) {
  130.     this.contractafgiftenummer = contractafgiftenummer;
  131.   }

  132.   public String getArtikelnummer() {
  133.     return artikelnummer;
  134.   }

  135.   public void setArtikelnummer(String artikelnummer) {
  136.     this.artikelnummer = artikelnummer;
  137.   }

  138.   public String getContractnummer() {
  139.     return contractnummer;
  140.   }

  141.   public void setContractnummer(String contractnummer) {
  142.     this.contractnummer = contractnummer;
  143.   }

  144.   public String getAfgifteid() {
  145.     return afgifteid;
  146.   }

  147.   public void setAfgifteid(String afgifteid) {
  148.     this.afgifteid = afgifteid;
  149.   }

  150.   public String getAfgiftereferentie() {
  151.     return afgiftereferentie;
  152.   }

  153.   public void setAfgiftereferentie(String afgiftereferentie) {
  154.     this.afgiftereferentie = afgiftereferentie;
  155.   }

  156.   public String getBestandsreferentie() {
  157.     return bestandsreferentie;
  158.   }

  159.   public void setBestandsreferentie(String bestandsreferentie) {
  160.     this.bestandsreferentie = bestandsreferentie;
  161.   }

  162.   public Date getBeschikbaar_tot() {
  163.     return beschikbaar_tot;
  164.   }

  165.   public void setBeschikbaar_tot(Date beschikbaar_tot) {
  166.     this.beschikbaar_tot = beschikbaar_tot;
  167.   }

  168.   @Override
  169.   public String toString() {
  170.     return "LaadProces{"
  171.         + "id="
  172.         + id
  173.         + ", bestandNaam='"
  174.         + bestandNaam
  175.         + '\''
  176.         + ", bestandNaamHersteld='"
  177.         + bestandNaamHersteld
  178.         + '\''
  179.         + ", bestandDatum="
  180.         + bestandDatum
  181.         + ", soort='"
  182.         + soort
  183.         + '\''
  184.         + ", gebied='"
  185.         + gebied
  186.         + '\''
  187.         + ", opmerking='"
  188.         + opmerking
  189.         + '\''
  190.         + ", status="
  191.         + status
  192.         + ", statusDatum="
  193.         + statusDatum
  194.         + ", contactEmail='"
  195.         + contactEmail
  196.         + '\''
  197.         + ", automatischProces="
  198.         + automatischProces
  199.         + ", klantafgiftenummer="
  200.         + klantafgiftenummer
  201.         + ", contractafgiftenummer="
  202.         + contractafgiftenummer
  203.         + ", artikelnummer='"
  204.         + artikelnummer
  205.         + '\''
  206.         + ", contractnummer='"
  207.         + contractnummer
  208.         + '\''
  209.         + ", afgifteid='"
  210.         + afgifteid
  211.         + '\''
  212.         + ", afgiftereferentie='"
  213.         + afgiftereferentie
  214.         + '\''
  215.         + ", bestandsreferentie='"
  216.         + bestandsreferentie
  217.         + '\''
  218.         + ", beschikbaar_tot="
  219.         + beschikbaar_tot
  220.         + '}';
  221.   }
  222. }