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 $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class StatisticaModel extends AbstractModel<Statistica> {

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

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

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

  190. }