TracciaModel.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.tracciamento.model;

  21. import org.openspcoop2.core.tracciamento.Traccia;

  22. import org.openspcoop2.generic_project.beans.AbstractModel;
  23. import org.openspcoop2.generic_project.beans.IField;
  24. import org.openspcoop2.generic_project.beans.Field;
  25. import org.openspcoop2.generic_project.beans.ComplexField;


  26. /**    
  27.  * Model Traccia
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class TracciaModel extends AbstractModel<Traccia> {

  34.     public TracciaModel(){
  35.    
  36.         super();
  37.    
  38.         this.ID_TRANSAZIONE = new Field("id-transazione",java.lang.String.class,"traccia",Traccia.class);
  39.         this.DOMINIO = new org.openspcoop2.core.tracciamento.model.DominioModel(new Field("dominio",org.openspcoop2.core.tracciamento.Dominio.class,"traccia",Traccia.class));
  40.         this.ORA_REGISTRAZIONE = new Field("ora-registrazione",java.util.Date.class,"traccia",Traccia.class);
  41.         this.ESITO_ELABORAZIONE = new org.openspcoop2.core.tracciamento.model.TracciaEsitoElaborazioneModel(new Field("esito-elaborazione",org.openspcoop2.core.tracciamento.TracciaEsitoElaborazione.class,"traccia",Traccia.class));
  42.         this.IDENTIFICATIVO_CORRELAZIONE_RICHIESTA = new Field("identificativo-correlazione-richiesta",java.lang.String.class,"traccia",Traccia.class);
  43.         this.IDENTIFICATIVO_CORRELAZIONE_RISPOSTA = new Field("identificativo-correlazione-risposta",java.lang.String.class,"traccia",Traccia.class);
  44.         this.CORRELAZIONE_APPLICATIVA_AND_MATCH = new Field("correlazione-applicativa-and-match",boolean.class,"traccia",Traccia.class);
  45.         this.LOCATION = new Field("location",java.lang.String.class,"traccia",Traccia.class);
  46.         this.BUSTA = new org.openspcoop2.core.tracciamento.model.BustaModel(new Field("busta",org.openspcoop2.core.tracciamento.Busta.class,"traccia",Traccia.class));
  47.         this.RICERCA_SOLO_BUSTE_ERRORE = new Field("ricerca-solo-buste-errore",boolean.class,"traccia",Traccia.class);
  48.         this.BUSTA_RAW = new Field("busta-raw",java.lang.String.class,"traccia",Traccia.class);
  49.         this.ALLEGATI = new org.openspcoop2.core.tracciamento.model.AllegatiModel(new Field("allegati",org.openspcoop2.core.tracciamento.Allegati.class,"traccia",Traccia.class));
  50.         this.TIPO = new Field("tipo",java.lang.String.class,"traccia",Traccia.class);
  51.    
  52.     }
  53.    
  54.     public TracciaModel(IField father){
  55.    
  56.         super(father);
  57.    
  58.         this.ID_TRANSAZIONE = new ComplexField(father,"id-transazione",java.lang.String.class,"traccia",Traccia.class);
  59.         this.DOMINIO = new org.openspcoop2.core.tracciamento.model.DominioModel(new ComplexField(father,"dominio",org.openspcoop2.core.tracciamento.Dominio.class,"traccia",Traccia.class));
  60.         this.ORA_REGISTRAZIONE = new ComplexField(father,"ora-registrazione",java.util.Date.class,"traccia",Traccia.class);
  61.         this.ESITO_ELABORAZIONE = new org.openspcoop2.core.tracciamento.model.TracciaEsitoElaborazioneModel(new ComplexField(father,"esito-elaborazione",org.openspcoop2.core.tracciamento.TracciaEsitoElaborazione.class,"traccia",Traccia.class));
  62.         this.IDENTIFICATIVO_CORRELAZIONE_RICHIESTA = new ComplexField(father,"identificativo-correlazione-richiesta",java.lang.String.class,"traccia",Traccia.class);
  63.         this.IDENTIFICATIVO_CORRELAZIONE_RISPOSTA = new ComplexField(father,"identificativo-correlazione-risposta",java.lang.String.class,"traccia",Traccia.class);
  64.         this.CORRELAZIONE_APPLICATIVA_AND_MATCH = new ComplexField(father,"correlazione-applicativa-and-match",boolean.class,"traccia",Traccia.class);
  65.         this.LOCATION = new ComplexField(father,"location",java.lang.String.class,"traccia",Traccia.class);
  66.         this.BUSTA = new org.openspcoop2.core.tracciamento.model.BustaModel(new ComplexField(father,"busta",org.openspcoop2.core.tracciamento.Busta.class,"traccia",Traccia.class));
  67.         this.RICERCA_SOLO_BUSTE_ERRORE = new ComplexField(father,"ricerca-solo-buste-errore",boolean.class,"traccia",Traccia.class);
  68.         this.BUSTA_RAW = new ComplexField(father,"busta-raw",java.lang.String.class,"traccia",Traccia.class);
  69.         this.ALLEGATI = new org.openspcoop2.core.tracciamento.model.AllegatiModel(new ComplexField(father,"allegati",org.openspcoop2.core.tracciamento.Allegati.class,"traccia",Traccia.class));
  70.         this.TIPO = new ComplexField(father,"tipo",java.lang.String.class,"traccia",Traccia.class);
  71.    
  72.     }
  73.    
  74.    

  75.     public IField ID_TRANSAZIONE = null;
  76.      
  77.     public org.openspcoop2.core.tracciamento.model.DominioModel DOMINIO = null;
  78.      
  79.     public IField ORA_REGISTRAZIONE = null;
  80.      
  81.     public org.openspcoop2.core.tracciamento.model.TracciaEsitoElaborazioneModel ESITO_ELABORAZIONE = null;
  82.      
  83.     public IField IDENTIFICATIVO_CORRELAZIONE_RICHIESTA = null;
  84.      
  85.     public IField IDENTIFICATIVO_CORRELAZIONE_RISPOSTA = null;
  86.      
  87.     public IField CORRELAZIONE_APPLICATIVA_AND_MATCH = null;
  88.      
  89.     public IField LOCATION = null;
  90.      
  91.     public org.openspcoop2.core.tracciamento.model.BustaModel BUSTA = null;
  92.      
  93.     public IField RICERCA_SOLO_BUSTE_ERRORE = null;
  94.      
  95.     public IField BUSTA_RAW = null;
  96.      
  97.     public org.openspcoop2.core.tracciamento.model.AllegatiModel ALLEGATI = null;
  98.      
  99.     public IField TIPO = null;
  100.      

  101.     @Override
  102.     public Class<Traccia> getModeledClass(){
  103.         return Traccia.class;
  104.     }
  105.    
  106.     @Override
  107.     public String toString(){
  108.         if(this.getModeledClass()!=null){
  109.             return this.getModeledClass().getName();
  110.         }else{
  111.             return "N.D.";
  112.         }
  113.     }

  114. }