TempiAttraversamentoPDD.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */

  20. package org.openspcoop2.pdd.core;

  21. import java.io.Serializable;
  22. import java.sql.Timestamp;

  23. /**
  24.  * Classe utilizzata per rappresentare i tempi di attraversamento PdD
  25.  *
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author Tronci Fabio (tronci@link.it)
  28.  * @author $Author$
  29.  * @version $Rev$, $Date$
  30.  */
  31. public class TempiAttraversamentoPDD implements Serializable {

  32.     private static final long serialVersionUID = 1L;
  33.        
  34.     private java.sql.Timestamp ricezioneMsgIngresso = null ;
  35.     private java.sql.Timestamp ricezioneMsgRisposta = null ;
  36.     private java.sql.Timestamp spedizioneMessaggioIngresso = null ;
  37.    


  38.     public java.sql.Timestamp getRicezioneMsgIngresso() {
  39.         return this.ricezioneMsgIngresso;
  40.     }

  41.     public void setRicezioneMsgIngresso(java.sql.Timestamp ricezioneMsgIngresso) {
  42.         this.ricezioneMsgIngresso = ricezioneMsgIngresso;
  43.     }

  44.     public java.sql.Timestamp getRicezioneMsgRisposta() {
  45.         return this.ricezioneMsgRisposta;
  46.     }

  47.     public void setRicezioneMsgRisposta(java.sql.Timestamp ricezioneMsgRisposta) {
  48.         this.ricezioneMsgRisposta = ricezioneMsgRisposta;
  49.     }

  50.     public java.sql.Timestamp getSpedizioneMessaggioIngresso() {
  51.         return this.spedizioneMessaggioIngresso;
  52.     }

  53.     public void setSpedizioneMessaggioIngresso(
  54.             java.sql.Timestamp spedizioneMessaggioIngresso) {
  55.         this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  56.     }

  57.     public TempiAttraversamentoPDD(Timestamp ricezioneMessaggioIngresso, Timestamp spedizioneMessaggioIngresso, Timestamp ricezioneMessaggioRisposta) {
  58.         this.ricezioneMsgIngresso = ricezioneMessaggioIngresso;
  59.         this.ricezioneMsgRisposta = ricezioneMessaggioRisposta;
  60.         this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  61.     }

  62.     public TempiAttraversamentoPDD() {
  63.     }

  64.     public void aggiornaTempiAttraversamentoPDD(Timestamp ricezioneMessaggioIngresso, Timestamp spedizioneMessaggioIngresso, Timestamp ricezioneMessaggioRisposta) {
  65.         if (ricezioneMessaggioIngresso != null )
  66.             this.ricezioneMsgIngresso = ricezioneMessaggioIngresso;
  67.         if (ricezioneMessaggioRisposta != null )
  68.             this.ricezioneMsgRisposta = ricezioneMessaggioRisposta;
  69.         if (spedizioneMessaggioIngresso != null )
  70.             this.spedizioneMessaggioIngresso = spedizioneMessaggioIngresso;
  71.     }


  72. }