TransazioneExport.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.core.transazioni;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.transazioni.constants.DeleteState;
  27. import org.openspcoop2.core.transazioni.constants.ExportState;
  28. import java.io.Serializable;


  29. /** <p>Java class for transazione-export complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="transazione-export"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="intervallo-inizio" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="intervallo-fine" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="export-state" type="{http://www.openspcoop2.org/core/transazioni}export-state" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="export-error" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  41.  *          &lt;element name="export-time-start" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="export-time-end" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="delete-state" type="{http://www.openspcoop2.org/core/transazioni}delete-state" minOccurs="1" maxOccurs="1"/&gt;
  44.  *          &lt;element name="delete-error" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  45.  *          &lt;element name="delete-time-start" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  46.  *          &lt;element name="delete-time-end" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0" maxOccurs="1"/&gt;
  47.  *      &lt;/sequence&gt;
  48.  * &lt;/complexType&gt;
  49.  * </pre>
  50.  *
  51.  * @version $Rev$, $Date$
  52.  *
  53.  * @author Poli Andrea (poli@link.it)
  54.  * @author $Author$
  55.  * */

  56. @XmlAccessorType(XmlAccessType.FIELD)
  57. @XmlType(name = "transazione-export",
  58.   propOrder = {
  59.     "intervalloInizio",
  60.     "intervalloFine",
  61.     "nome",
  62.     "exportState",
  63.     "exportError",
  64.     "exportTimeStart",
  65.     "exportTimeEnd",
  66.     "deleteState",
  67.     "deleteError",
  68.     "deleteTimeStart",
  69.     "deleteTimeEnd"
  70.   }
  71. )

  72. @XmlRootElement(name = "transazione-export")

  73. public class TransazioneExport extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  74.   public TransazioneExport() {
  75.     super();
  76.   }

  77.   public java.util.Date getIntervalloInizio() {
  78.     return this.intervalloInizio;
  79.   }

  80.   public void setIntervalloInizio(java.util.Date intervalloInizio) {
  81.     this.intervalloInizio = intervalloInizio;
  82.   }

  83.   public java.util.Date getIntervalloFine() {
  84.     return this.intervalloFine;
  85.   }

  86.   public void setIntervalloFine(java.util.Date intervalloFine) {
  87.     this.intervalloFine = intervalloFine;
  88.   }

  89.   public java.lang.String getNome() {
  90.     return this.nome;
  91.   }

  92.   public void setNome(java.lang.String nome) {
  93.     this.nome = nome;
  94.   }

  95.   public void setExportStateRawEnumValue(String value) {
  96.     this.exportState = (ExportState) ExportState.toEnumConstantFromString(value);
  97.   }

  98.   public String getExportStateRawEnumValue() {
  99.     if(this.exportState == null){
  100.         return null;
  101.     }else{
  102.         return this.exportState.toString();
  103.     }
  104.   }

  105.   public org.openspcoop2.core.transazioni.constants.ExportState getExportState() {
  106.     return this.exportState;
  107.   }

  108.   public void setExportState(org.openspcoop2.core.transazioni.constants.ExportState exportState) {
  109.     this.exportState = exportState;
  110.   }

  111.   public java.lang.String getExportError() {
  112.     return this.exportError;
  113.   }

  114.   public void setExportError(java.lang.String exportError) {
  115.     this.exportError = exportError;
  116.   }

  117.   public java.util.Date getExportTimeStart() {
  118.     return this.exportTimeStart;
  119.   }

  120.   public void setExportTimeStart(java.util.Date exportTimeStart) {
  121.     this.exportTimeStart = exportTimeStart;
  122.   }

  123.   public java.util.Date getExportTimeEnd() {
  124.     return this.exportTimeEnd;
  125.   }

  126.   public void setExportTimeEnd(java.util.Date exportTimeEnd) {
  127.     this.exportTimeEnd = exportTimeEnd;
  128.   }

  129.   public void setDeleteStateRawEnumValue(String value) {
  130.     this.deleteState = (DeleteState) DeleteState.toEnumConstantFromString(value);
  131.   }

  132.   public String getDeleteStateRawEnumValue() {
  133.     if(this.deleteState == null){
  134.         return null;
  135.     }else{
  136.         return this.deleteState.toString();
  137.     }
  138.   }

  139.   public org.openspcoop2.core.transazioni.constants.DeleteState getDeleteState() {
  140.     return this.deleteState;
  141.   }

  142.   public void setDeleteState(org.openspcoop2.core.transazioni.constants.DeleteState deleteState) {
  143.     this.deleteState = deleteState;
  144.   }

  145.   public java.lang.String getDeleteError() {
  146.     return this.deleteError;
  147.   }

  148.   public void setDeleteError(java.lang.String deleteError) {
  149.     this.deleteError = deleteError;
  150.   }

  151.   public java.util.Date getDeleteTimeStart() {
  152.     return this.deleteTimeStart;
  153.   }

  154.   public void setDeleteTimeStart(java.util.Date deleteTimeStart) {
  155.     this.deleteTimeStart = deleteTimeStart;
  156.   }

  157.   public java.util.Date getDeleteTimeEnd() {
  158.     return this.deleteTimeEnd;
  159.   }

  160.   public void setDeleteTimeEnd(java.util.Date deleteTimeEnd) {
  161.     this.deleteTimeEnd = deleteTimeEnd;
  162.   }

  163.   private static final long serialVersionUID = 1L;

  164.   private static org.openspcoop2.core.transazioni.model.TransazioneExportModel modelStaticInstance = null;
  165.   private static synchronized void initModelStaticInstance(){
  166.       if(org.openspcoop2.core.transazioni.TransazioneExport.modelStaticInstance==null){
  167.             org.openspcoop2.core.transazioni.TransazioneExport.modelStaticInstance = new org.openspcoop2.core.transazioni.model.TransazioneExportModel();
  168.       }
  169.   }
  170.   public static org.openspcoop2.core.transazioni.model.TransazioneExportModel model(){
  171.       if(org.openspcoop2.core.transazioni.TransazioneExport.modelStaticInstance==null){
  172.             initModelStaticInstance();
  173.       }
  174.       return org.openspcoop2.core.transazioni.TransazioneExport.modelStaticInstance;
  175.   }


  176.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  177.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  178.   @XmlElement(name="intervallo-inizio",required=true,nillable=false,type=java.lang.String.class)
  179.   protected java.util.Date intervalloInizio;

  180.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  181.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  182.   @XmlElement(name="intervallo-fine",required=true,nillable=false,type=java.lang.String.class)
  183.   protected java.util.Date intervalloFine;

  184.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  185.   @XmlElement(name="nome",required=false,nillable=false)
  186.   protected java.lang.String nome;

  187.   @javax.xml.bind.annotation.XmlTransient
  188.   protected java.lang.String exportStateRawEnumValue;

  189.   @XmlElement(name="export-state",required=true,nillable=false)
  190.   protected ExportState exportState;

  191.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  192.   @XmlElement(name="export-error",required=false,nillable=false)
  193.   protected java.lang.String exportError;

  194.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  195.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  196.   @XmlElement(name="export-time-start",required=true,nillable=false,type=java.lang.String.class)
  197.   protected java.util.Date exportTimeStart;

  198.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  199.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  200.   @XmlElement(name="export-time-end",required=false,nillable=false,type=java.lang.String.class)
  201.   protected java.util.Date exportTimeEnd;

  202.   @javax.xml.bind.annotation.XmlTransient
  203.   protected java.lang.String deleteStateRawEnumValue;

  204.   @XmlElement(name="delete-state",required=true,nillable=false)
  205.   protected DeleteState deleteState;

  206.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  207.   @XmlElement(name="delete-error",required=false,nillable=false)
  208.   protected java.lang.String deleteError;

  209.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  210.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  211.   @XmlElement(name="delete-time-start",required=false,nillable=false,type=java.lang.String.class)
  212.   protected java.util.Date deleteTimeStart;

  213.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.DateTime2String.class)
  214.   @javax.xml.bind.annotation.XmlSchemaType(name="dateTime")
  215.   @XmlElement(name="delete-time-end",required=false,nillable=false,type=java.lang.String.class)
  216.   protected java.util.Date deleteTimeEnd;

  217. }