StatistichePdndTracingModel.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.StatistichePdndTracing;

  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 StatistichePdndTracing
  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 StatistichePdndTracingModel extends AbstractModel<StatistichePdndTracing> {

  35.     public StatistichePdndTracingModel(){
  36.    
  37.         super();
  38.    
  39.         this.DATA_TRACCIAMENTO = new Field("data-tracciamento",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  40.         this.DATA_REGISTRAZIONE = new Field("data-registrazione",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  41.         this.DATA_PUBBLICAZIONE = new Field("data-pubblicazione",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  42.         this.PDD_CODICE = new Field("pdd-codice",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  43.         this.CSV = new Field("csv",byte[].class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  44.         this.METHOD = new Field("method",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  45.         this.STATO_PDND = new Field("stato-pdnd",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  46.         this.TENTATIVI_PUBBLICAZIONE = new Field("tentativi-pubblicazione",java.lang.Integer.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  47.         this.FORCE_PUBLISH = new Field("force-publish",boolean.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  48.         this.STATO = new Field("stato",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  49.         this.TRACING_ID = new Field("tracing-id",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  50.         this.ERROR_DETAILS = new Field("error-details",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  51.         this.HISTORY = new Field("history",int.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  52.    
  53.     }
  54.    
  55.     public StatistichePdndTracingModel(IField father){
  56.    
  57.         super(father);
  58.    
  59.         this.DATA_TRACCIAMENTO = new ComplexField(father,"data-tracciamento",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  60.         this.DATA_REGISTRAZIONE = new ComplexField(father,"data-registrazione",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  61.         this.DATA_PUBBLICAZIONE = new ComplexField(father,"data-pubblicazione",java.util.Date.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  62.         this.PDD_CODICE = new ComplexField(father,"pdd-codice",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  63.         this.CSV = new ComplexField(father,"csv",byte[].class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  64.         this.METHOD = new ComplexField(father,"method",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  65.         this.STATO_PDND = new ComplexField(father,"stato-pdnd",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  66.         this.TENTATIVI_PUBBLICAZIONE = new ComplexField(father,"tentativi-pubblicazione",java.lang.Integer.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  67.         this.FORCE_PUBLISH = new ComplexField(father,"force-publish",boolean.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  68.         this.STATO = new ComplexField(father,"stato",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  69.         this.TRACING_ID = new ComplexField(father,"tracing-id",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  70.         this.ERROR_DETAILS = new ComplexField(father,"error-details",java.lang.String.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  71.         this.HISTORY = new ComplexField(father,"history",int.class,"statistiche-pdnd-tracing",StatistichePdndTracing.class);
  72.    
  73.     }
  74.    
  75.    

  76.     public IField DATA_TRACCIAMENTO = null;
  77.      
  78.     public IField DATA_REGISTRAZIONE = null;
  79.      
  80.     public IField DATA_PUBBLICAZIONE = null;
  81.      
  82.     public IField PDD_CODICE = null;
  83.      
  84.     public IField CSV = null;
  85.      
  86.     public IField METHOD = null;
  87.      
  88.     public IField STATO_PDND = null;
  89.      
  90.     public IField TENTATIVI_PUBBLICAZIONE = null;
  91.      
  92.     public IField FORCE_PUBLISH = null;
  93.      
  94.     public IField STATO = null;
  95.      
  96.     public IField TRACING_ID = null;
  97.      
  98.     public IField ERROR_DETAILS = null;
  99.      
  100.     public IField HISTORY = null;
  101.      

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

  115. }