DataSourceParams.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.utils.datasource;

  21. import org.openspcoop2.utils.TipiDatabase;
  22. import org.openspcoop2.utils.jmx.CostantiJMX;

  23. /**
  24.  * DatasourceParams
  25.  *  
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class DataSourceParams {

  31.     private TipiDatabase databaseType;
  32.     private boolean wrapOriginalMethods = true;
  33.     private String applicativeId;
  34.    
  35.     private boolean bindJmx = true;
  36.     private String jmxDomain = "org.openspcoop2.utils";
  37.     private String jmxType = CostantiJMX.JMX_TYPE;
  38.     private String jmxName = "Datasources";
  39.    
  40.     public TipiDatabase getDatabaseType() {
  41.         return this.databaseType;
  42.     }
  43.     public void setDatabaseType(TipiDatabase tipoDatabase) {
  44.         this.databaseType = tipoDatabase;
  45.     }
  46.     public boolean isWrapOriginalMethods() {
  47.         return this.wrapOriginalMethods;
  48.     }
  49.     public void setWrapOriginalMethods(boolean wrapOriginalMethods) {
  50.         this.wrapOriginalMethods = wrapOriginalMethods;
  51.     }
  52.     public String getApplicativeId() {
  53.         return this.applicativeId;
  54.     }
  55.     public void setApplicativeId(String applicativeId) {
  56.         this.applicativeId = applicativeId;
  57.     }
  58.     public boolean isBindJmx() {
  59.         return this.bindJmx;
  60.     }
  61.     public void setBindJmx(boolean bindJmx) {
  62.         this.bindJmx = bindJmx;
  63.     }
  64.     public String getJmxDomain() {
  65.         return this.jmxDomain;
  66.     }
  67.     public void setJmxDomain(String jmxDomain) {
  68.         this.jmxDomain = jmxDomain;
  69.     }
  70.     public String getJmxType() {
  71.         return this.jmxType;
  72.     }
  73.     public void setJmxType(String jmxType) {
  74.         this.jmxType = jmxType;
  75.     }
  76.     public String getJmxName() {
  77.         return this.jmxName;
  78.     }
  79.     public void setJmxName(String jmxName) {
  80.         this.jmxName = jmxName;
  81.     }
  82. }