StatisticaModel.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.statistiche.model;

  21. import org.openspcoop2.core.statistiche.Statistica;

  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 Statistica
  28.  *
  29.  * @author Poli Andrea (poli@link.it)
  30.  * @author Tommaso Burlon (tommaso.burlon@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */
  34. public class StatisticaModel extends AbstractModel<Statistica> {

  35.     public StatisticaModel(){
  36.    
  37.         super();
  38.    
  39.         this.DATA = new Field("data",java.util.Date.class,"statistica",Statistica.class);
  40.         this.STATO_RECORD = new Field("stato-record",int.class,"statistica",Statistica.class);
  41.         this.ID_PORTA = new Field("id-porta",java.lang.String.class,"statistica",Statistica.class);
  42.         this.TIPO_PORTA = new Field("tipo-porta",java.lang.String.class,"statistica",Statistica.class);
  43.         this.TIPO_MITTENTE = new Field("tipo-mittente",java.lang.String.class,"statistica",Statistica.class);
  44.         this.MITTENTE = new Field("mittente",java.lang.String.class,"statistica",Statistica.class);
  45.         this.TIPO_DESTINATARIO = new Field("tipo-destinatario",java.lang.String.class,"statistica",Statistica.class);
  46.         this.DESTINATARIO = new Field("destinatario",java.lang.String.class,"statistica",Statistica.class);
  47.         this.TIPO_SERVIZIO = new Field("tipo-servizio",java.lang.String.class,"statistica",Statistica.class);
  48.         this.SERVIZIO = new Field("servizio",java.lang.String.class,"statistica",Statistica.class);
  49.         this.VERSIONE_SERVIZIO = new Field("versione-servizio",int.class,"statistica",Statistica.class);
  50.         this.AZIONE = new Field("azione",java.lang.String.class,"statistica",Statistica.class);
  51.         this.SERVIZIO_APPLICATIVO = new Field("servizio-applicativo",java.lang.String.class,"statistica",Statistica.class);
  52.         this.TRASPORTO_MITTENTE = new Field("trasporto-mittente",java.lang.String.class,"statistica",Statistica.class);
  53.         this.TOKEN_ISSUER = new Field("token-issuer",java.lang.String.class,"statistica",Statistica.class);
  54.         this.TOKEN_CLIENT_ID = new Field("token-client-id",java.lang.String.class,"statistica",Statistica.class);
  55.         this.TOKEN_SUBJECT = new Field("token-subject",java.lang.String.class,"statistica",Statistica.class);
  56.         this.TOKEN_USERNAME = new Field("token-username",java.lang.String.class,"statistica",Statistica.class);
  57.         this.TOKEN_MAIL = new Field("token-mail",java.lang.String.class,"statistica",Statistica.class);
  58.         this.ESITO = new Field("esito",java.lang.Integer.class,"statistica",Statistica.class);
  59.         this.ESITO_CONTESTO = new Field("esito-contesto",java.lang.String.class,"statistica",Statistica.class);
  60.         this.CLIENT_ADDRESS = new Field("client-address",java.lang.String.class,"statistica",Statistica.class);
  61.         this.GRUPPI = new Field("gruppi",java.lang.String.class,"statistica",Statistica.class);
  62.         this.URI_API = new Field("uri-api",java.lang.String.class,"statistica",Statistica.class);
  63.         this.CLUSTER_ID = new Field("cluster-id",java.lang.String.class,"statistica",Statistica.class);
  64.         this.NUMERO_TRANSAZIONI = new Field("numero-transazioni",java.lang.Integer.class,"statistica",Statistica.class);
  65.         this.DIMENSIONI_BYTES_BANDA_COMPLESSIVA = new Field("dimensioni-bytes-banda-complessiva",java.lang.Long.class,"statistica",Statistica.class);
  66.         this.DIMENSIONI_BYTES_BANDA_INTERNA = new Field("dimensioni-bytes-banda-interna",java.lang.Long.class,"statistica",Statistica.class);
  67.         this.DIMENSIONI_BYTES_BANDA_ESTERNA = new Field("dimensioni-bytes-banda-esterna",java.lang.Long.class,"statistica",Statistica.class);
  68.         this.LATENZA_TOTALE = new Field("latenza-totale",java.lang.Long.class,"statistica",Statistica.class);
  69.         this.LATENZA_PORTA = new Field("latenza-porta",java.lang.Long.class,"statistica",Statistica.class);
  70.         this.LATENZA_SERVIZIO = new Field("latenza-servizio",java.lang.Long.class,"statistica",Statistica.class);
  71.    
  72.     }
  73.    
  74.     public StatisticaModel(IField father){
  75.    
  76.         super(father);
  77.    
  78.         this.DATA = new ComplexField(father,"data",java.util.Date.class,"statistica",Statistica.class);
  79.         this.STATO_RECORD = new ComplexField(father,"stato-record",int.class,"statistica",Statistica.class);
  80.         this.ID_PORTA = new ComplexField(father,"id-porta",java.lang.String.class,"statistica",Statistica.class);
  81.         this.TIPO_PORTA = new ComplexField(father,"tipo-porta",java.lang.String.class,"statistica",Statistica.class);
  82.         this.TIPO_MITTENTE = new ComplexField(father,"tipo-mittente",java.lang.String.class,"statistica",Statistica.class);
  83.         this.MITTENTE = new ComplexField(father,"mittente",java.lang.String.class,"statistica",Statistica.class);
  84.         this.TIPO_DESTINATARIO = new ComplexField(father,"tipo-destinatario",java.lang.String.class,"statistica",Statistica.class);
  85.         this.DESTINATARIO = new ComplexField(father,"destinatario",java.lang.String.class,"statistica",Statistica.class);
  86.         this.TIPO_SERVIZIO = new ComplexField(father,"tipo-servizio",java.lang.String.class,"statistica",Statistica.class);
  87.         this.SERVIZIO = new ComplexField(father,"servizio",java.lang.String.class,"statistica",Statistica.class);
  88.         this.VERSIONE_SERVIZIO = new ComplexField(father,"versione-servizio",int.class,"statistica",Statistica.class);
  89.         this.AZIONE = new ComplexField(father,"azione",java.lang.String.class,"statistica",Statistica.class);
  90.         this.SERVIZIO_APPLICATIVO = new ComplexField(father,"servizio-applicativo",java.lang.String.class,"statistica",Statistica.class);
  91.         this.TRASPORTO_MITTENTE = new ComplexField(father,"trasporto-mittente",java.lang.String.class,"statistica",Statistica.class);
  92.         this.TOKEN_ISSUER = new ComplexField(father,"token-issuer",java.lang.String.class,"statistica",Statistica.class);
  93.         this.TOKEN_CLIENT_ID = new ComplexField(father,"token-client-id",java.lang.String.class,"statistica",Statistica.class);
  94.         this.TOKEN_SUBJECT = new ComplexField(father,"token-subject",java.lang.String.class,"statistica",Statistica.class);
  95.         this.TOKEN_USERNAME = new ComplexField(father,"token-username",java.lang.String.class,"statistica",Statistica.class);
  96.         this.TOKEN_MAIL = new ComplexField(father,"token-mail",java.lang.String.class,"statistica",Statistica.class);
  97.         this.ESITO = new ComplexField(father,"esito",java.lang.Integer.class,"statistica",Statistica.class);
  98.         this.ESITO_CONTESTO = new ComplexField(father,"esito-contesto",java.lang.String.class,"statistica",Statistica.class);
  99.         this.CLIENT_ADDRESS = new ComplexField(father,"client-address",java.lang.String.class,"statistica",Statistica.class);
  100.         this.GRUPPI = new ComplexField(father,"gruppi",java.lang.String.class,"statistica",Statistica.class);
  101.         this.URI_API = new ComplexField(father,"uri-api",java.lang.String.class,"statistica",Statistica.class);
  102.         this.CLUSTER_ID = new ComplexField(father,"cluster-id",java.lang.String.class,"statistica",Statistica.class);
  103.         this.NUMERO_TRANSAZIONI = new ComplexField(father,"numero-transazioni",java.lang.Integer.class,"statistica",Statistica.class);
  104.         this.DIMENSIONI_BYTES_BANDA_COMPLESSIVA = new ComplexField(father,"dimensioni-bytes-banda-complessiva",java.lang.Long.class,"statistica",Statistica.class);
  105.         this.DIMENSIONI_BYTES_BANDA_INTERNA = new ComplexField(father,"dimensioni-bytes-banda-interna",java.lang.Long.class,"statistica",Statistica.class);
  106.         this.DIMENSIONI_BYTES_BANDA_ESTERNA = new ComplexField(father,"dimensioni-bytes-banda-esterna",java.lang.Long.class,"statistica",Statistica.class);
  107.         this.LATENZA_TOTALE = new ComplexField(father,"latenza-totale",java.lang.Long.class,"statistica",Statistica.class);
  108.         this.LATENZA_PORTA = new ComplexField(father,"latenza-porta",java.lang.Long.class,"statistica",Statistica.class);
  109.         this.LATENZA_SERVIZIO = new ComplexField(father,"latenza-servizio",java.lang.Long.class,"statistica",Statistica.class);
  110.    
  111.     }
  112.    
  113.    

  114.     public IField DATA = null;
  115.      
  116.     public IField STATO_RECORD = null;
  117.      
  118.     public IField ID_PORTA = null;
  119.      
  120.     public IField TIPO_PORTA = null;
  121.      
  122.     public IField TIPO_MITTENTE = null;
  123.      
  124.     public IField MITTENTE = null;
  125.      
  126.     public IField TIPO_DESTINATARIO = null;
  127.      
  128.     public IField DESTINATARIO = null;
  129.      
  130.     public IField TIPO_SERVIZIO = null;
  131.      
  132.     public IField SERVIZIO = null;
  133.      
  134.     public IField VERSIONE_SERVIZIO = null;
  135.      
  136.     public IField AZIONE = null;
  137.      
  138.     public IField SERVIZIO_APPLICATIVO = null;
  139.      
  140.     public IField TRASPORTO_MITTENTE = null;
  141.      
  142.     public IField TOKEN_ISSUER = null;
  143.      
  144.     public IField TOKEN_CLIENT_ID = null;
  145.      
  146.     public IField TOKEN_SUBJECT = null;
  147.      
  148.     public IField TOKEN_USERNAME = null;
  149.      
  150.     public IField TOKEN_MAIL = null;
  151.      
  152.     public IField ESITO = null;
  153.      
  154.     public IField ESITO_CONTESTO = null;
  155.      
  156.     public IField CLIENT_ADDRESS = null;
  157.      
  158.     public IField GRUPPI = null;
  159.      
  160.     public IField URI_API = null;
  161.      
  162.     public IField CLUSTER_ID = null;
  163.      
  164.     public IField NUMERO_TRANSAZIONI = null;
  165.      
  166.     public IField DIMENSIONI_BYTES_BANDA_COMPLESSIVA = null;
  167.      
  168.     public IField DIMENSIONI_BYTES_BANDA_INTERNA = null;
  169.      
  170.     public IField DIMENSIONI_BYTES_BANDA_ESTERNA = null;
  171.      
  172.     public IField LATENZA_TOTALE = null;
  173.      
  174.     public IField LATENZA_PORTA = null;
  175.      
  176.     public IField LATENZA_SERVIZIO = null;
  177.      

  178.     @Override
  179.     public Class<Statistica> getModeledClass(){
  180.         return Statistica.class;
  181.     }
  182.    
  183.     @Override
  184.     public String toString(){
  185.         if(this.getModeledClass()!=null){
  186.             return this.getModeledClass().getName();
  187.         }else{
  188.             return "N.D.";
  189.         }
  190.     }

  191. }