TransazioneExportModel.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.model;

  21. import org.openspcoop2.core.transazioni.TransazioneExport;

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

  34.     public TransazioneExportModel(){
  35.    
  36.         super();
  37.    
  38.         this.INTERVALLO_INIZIO = new Field("intervallo-inizio",java.util.Date.class,"transazione-export",TransazioneExport.class);
  39.         this.INTERVALLO_FINE = new Field("intervallo-fine",java.util.Date.class,"transazione-export",TransazioneExport.class);
  40.         this.NOME = new Field("nome",java.lang.String.class,"transazione-export",TransazioneExport.class);
  41.         this.EXPORT_STATE = new Field("export-state",java.lang.String.class,"transazione-export",TransazioneExport.class);
  42.         this.EXPORT_ERROR = new Field("export-error",java.lang.String.class,"transazione-export",TransazioneExport.class);
  43.         this.EXPORT_TIME_START = new Field("export-time-start",java.util.Date.class,"transazione-export",TransazioneExport.class);
  44.         this.EXPORT_TIME_END = new Field("export-time-end",java.util.Date.class,"transazione-export",TransazioneExport.class);
  45.         this.DELETE_STATE = new Field("delete-state",java.lang.String.class,"transazione-export",TransazioneExport.class);
  46.         this.DELETE_ERROR = new Field("delete-error",java.lang.String.class,"transazione-export",TransazioneExport.class);
  47.         this.DELETE_TIME_START = new Field("delete-time-start",java.util.Date.class,"transazione-export",TransazioneExport.class);
  48.         this.DELETE_TIME_END = new Field("delete-time-end",java.util.Date.class,"transazione-export",TransazioneExport.class);
  49.    
  50.     }
  51.    
  52.     public TransazioneExportModel(IField father){
  53.    
  54.         super(father);
  55.    
  56.         this.INTERVALLO_INIZIO = new ComplexField(father,"intervallo-inizio",java.util.Date.class,"transazione-export",TransazioneExport.class);
  57.         this.INTERVALLO_FINE = new ComplexField(father,"intervallo-fine",java.util.Date.class,"transazione-export",TransazioneExport.class);
  58.         this.NOME = new ComplexField(father,"nome",java.lang.String.class,"transazione-export",TransazioneExport.class);
  59.         this.EXPORT_STATE = new ComplexField(father,"export-state",java.lang.String.class,"transazione-export",TransazioneExport.class);
  60.         this.EXPORT_ERROR = new ComplexField(father,"export-error",java.lang.String.class,"transazione-export",TransazioneExport.class);
  61.         this.EXPORT_TIME_START = new ComplexField(father,"export-time-start",java.util.Date.class,"transazione-export",TransazioneExport.class);
  62.         this.EXPORT_TIME_END = new ComplexField(father,"export-time-end",java.util.Date.class,"transazione-export",TransazioneExport.class);
  63.         this.DELETE_STATE = new ComplexField(father,"delete-state",java.lang.String.class,"transazione-export",TransazioneExport.class);
  64.         this.DELETE_ERROR = new ComplexField(father,"delete-error",java.lang.String.class,"transazione-export",TransazioneExport.class);
  65.         this.DELETE_TIME_START = new ComplexField(father,"delete-time-start",java.util.Date.class,"transazione-export",TransazioneExport.class);
  66.         this.DELETE_TIME_END = new ComplexField(father,"delete-time-end",java.util.Date.class,"transazione-export",TransazioneExport.class);
  67.    
  68.     }
  69.    
  70.    

  71.     public IField INTERVALLO_INIZIO = null;
  72.      
  73.     public IField INTERVALLO_FINE = null;
  74.      
  75.     public IField NOME = null;
  76.      
  77.     public IField EXPORT_STATE = null;
  78.      
  79.     public IField EXPORT_ERROR = null;
  80.      
  81.     public IField EXPORT_TIME_START = null;
  82.      
  83.     public IField EXPORT_TIME_END = null;
  84.      
  85.     public IField DELETE_STATE = null;
  86.      
  87.     public IField DELETE_ERROR = null;
  88.      
  89.     public IField DELETE_TIME_START = null;
  90.      
  91.     public IField DELETE_TIME_END = null;
  92.      

  93.     @Override
  94.     public Class<TransazioneExport> getModeledClass(){
  95.         return TransazioneExport.class;
  96.     }
  97.    
  98.     @Override
  99.     public String toString(){
  100.         if(this.getModeledClass()!=null){
  101.             return this.getModeledClass().getName();
  102.         }else{
  103.             return "N.D.";
  104.         }
  105.     }

  106. }