JDBCConfigurazioneServizioAzioneServiceImpl.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.plugins.dao.jdbc;

  21. import java.sql.Connection;

  22. import org.openspcoop2.utils.sql.ISQLQueryObject;

  23. import org.slf4j.Logger;

  24. import org.openspcoop2.generic_project.dao.jdbc.IJDBCServiceCRUDWithId;
  25. import org.openspcoop2.core.plugins.IdConfigurazioneServizioAzione;
  26. import org.openspcoop2.generic_project.beans.NonNegativeNumber;
  27. import org.openspcoop2.generic_project.beans.UpdateField;
  28. import org.openspcoop2.generic_project.beans.UpdateModel;

  29. import org.openspcoop2.generic_project.dao.jdbc.utils.GenericJDBCUtilities;
  30. import org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject;
  31. import org.openspcoop2.generic_project.exception.NotFoundException;
  32. import org.openspcoop2.generic_project.exception.NotImplementedException;
  33. import org.openspcoop2.generic_project.exception.ServiceException;
  34. import org.openspcoop2.generic_project.expression.IExpression;
  35. import org.openspcoop2.generic_project.dao.jdbc.JDBCExpression;
  36. import org.openspcoop2.generic_project.dao.jdbc.JDBCPaginatedExpression;

  37. import org.openspcoop2.generic_project.dao.jdbc.JDBCServiceManagerProperties;
  38. import org.openspcoop2.core.plugins.ConfigurazioneServizio;
  39. import org.openspcoop2.core.plugins.ConfigurazioneServizioAzione;

  40. /**    
  41.  * JDBCConfigurazioneServizioAzioneServiceImpl
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * @version $Rev$, $Date$
  46.  */
  47. public class JDBCConfigurazioneServizioAzioneServiceImpl extends JDBCConfigurazioneServizioAzioneServiceSearchImpl
  48.     implements IJDBCServiceCRUDWithId<ConfigurazioneServizioAzione, IdConfigurazioneServizioAzione, JDBCServiceManager> {

  49.     @Override
  50.     public void create(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, ConfigurazioneServizioAzione configurazioneServizioAzione, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {

  51.         org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities jdbcUtilities =
  52.                 new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities(sqlQueryObject.getTipoDatabaseOpenSPCoop2(), log, connection);
  53.        
  54.         ISQLQueryObject sqlQueryObjectInsert = sqlQueryObject.newSQLQueryObject();
  55.                

  56.         // Object _configurazioneServizio
  57.         if(configurazioneServizioAzione.getIdConfigurazioneServizio()==null){
  58.             throw new ServiceException("IdConfigurazioneServizio is null");
  59.         }
  60.                
  61.         IExpression expressionSearchConfigurazioneServizio = this.getServiceManager().getConfigurazioneServizioServiceSearch().newExpression();
  62.         expressionSearchConfigurazioneServizio.
  63.             and().
  64.             equals(ConfigurazioneServizio.model().ACCORDO, configurazioneServizioAzione.getIdConfigurazioneServizio().getAccordo()).
  65.             equals(ConfigurazioneServizio.model().TIPO_SOGGETTO_REFERENTE, configurazioneServizioAzione.getIdConfigurazioneServizio().getTipoSoggettoReferente()).
  66.             equals(ConfigurazioneServizio.model().NOME_SOGGETTO_REFERENTE, configurazioneServizioAzione.getIdConfigurazioneServizio().getNomeSoggettoReferente()).
  67.             equals(ConfigurazioneServizio.model().VERSIONE, configurazioneServizioAzione.getIdConfigurazioneServizio().getVersione()).
  68.             equals(ConfigurazioneServizio.model().SERVIZIO, configurazioneServizioAzione.getIdConfigurazioneServizio().getServizio());
  69.         ConfigurazioneServizio configurazioneServizio = this.getServiceManager().getConfigurazioneServizioServiceSearch().find(expressionSearchConfigurazioneServizio);
  70.         Long id_configurazioneServizio = configurazioneServizio.getId();


  71.         // Object configurazioneServizioAzione
  72.         sqlQueryObjectInsert.addInsertTable(this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()));
  73.         sqlQueryObjectInsert.addInsertField(this.getConfigurazioneServizioAzioneFieldConverter().toColumn(ConfigurazioneServizioAzione.model().AZIONE,false),"?");
  74.         sqlQueryObjectInsert.addInsertField("id_config_servizio","?");

  75.         // Insert configurazioneServizioAzione
  76.         org.openspcoop2.utils.jdbc.IKeyGeneratorObject keyGenerator = this.getConfigurazioneServizioAzioneFetch().getKeyGeneratorObject(ConfigurazioneServizioAzione.model());
  77.         long id = jdbcUtilities.insertAndReturnGeneratedKey(sqlQueryObjectInsert, keyGenerator, jdbcProperties.isShowSql(),
  78.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(configurazioneServizioAzione.getAzione(),ConfigurazioneServizioAzione.model().AZIONE.getFieldType()),
  79.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(id_configurazioneServizio,Long.class)
  80.         );
  81.         configurazioneServizioAzione.setId(id);

  82.    
  83.     }

  84.     @Override
  85.     public void update(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione oldId, ConfigurazioneServizioAzione configurazioneServizioAzione, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  86.         ISQLQueryObject sqlQueryObjectUpdate = sqlQueryObject.newSQLQueryObject();
  87.         Long longIdByLogicId = this.findIdConfigurazioneServizioAzione(jdbcProperties, log, connection, sqlQueryObjectUpdate.newSQLQueryObject(), oldId, true);
  88.         Long tableId = configurazioneServizioAzione.getId();
  89.         if(tableId != null && tableId.longValue() > 0) {
  90.             if(tableId.longValue() != longIdByLogicId.longValue()) {
  91.                 throw new Exception("Ambiguous parameter: configurazioneServizioAzione.id ["+tableId+"] does not match logic id ["+longIdByLogicId+"]");
  92.             }
  93.         } else {
  94.             tableId = longIdByLogicId;
  95.             configurazioneServizioAzione.setId(tableId);
  96.         }
  97.         if(tableId==null || tableId<=0){
  98.             throw new Exception("Retrieve tableId failed");
  99.         }

  100.         this.update(jdbcProperties, log, connection, sqlQueryObject, tableId, configurazioneServizioAzione, idMappingResolutionBehaviour);
  101.     }
  102.     @Override
  103.     public void update(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, ConfigurazioneServizioAzione configurazioneServizioAzione, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  104.    
  105.         org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities jdbcUtilities =
  106.                 new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities(sqlQueryObject.getTipoDatabaseOpenSPCoop2(), log, connection);
  107.        
  108.         ISQLQueryObject sqlQueryObjectInsert = sqlQueryObject.newSQLQueryObject();
  109.         ISQLQueryObject sqlQueryObjectDelete = sqlQueryObjectInsert.newSQLQueryObject();
  110.         ISQLQueryObject sqlQueryObjectGet = sqlQueryObjectDelete.newSQLQueryObject();
  111.         ISQLQueryObject sqlQueryObjectUpdate = sqlQueryObjectGet.newSQLQueryObject();
  112.        
  113.         boolean setIdMappingResolutionBehaviour =
  114.             (idMappingResolutionBehaviour==null) ||
  115.             org.openspcoop2.generic_project.beans.IDMappingBehaviour.ENABLED.equals(idMappingResolutionBehaviour) ||
  116.             org.openspcoop2.generic_project.beans.IDMappingBehaviour.USE_TABLE_ID.equals(idMappingResolutionBehaviour);
  117.            

  118.         // Object _configurazioneServizioAzione_configurazioneServizio
  119.         Long id_configurazioneServizioAzione_configurazioneServizio = null;
  120.         org.openspcoop2.core.plugins.IdConfigurazioneServizio idLogic_configurazioneServizioAzione_configurazioneServizio = null;
  121.         idLogic_configurazioneServizioAzione_configurazioneServizio = configurazioneServizioAzione.getIdConfigurazioneServizio();
  122.         if(idLogic_configurazioneServizioAzione_configurazioneServizio!=null){
  123.             if(idMappingResolutionBehaviour==null ||
  124.                 (org.openspcoop2.generic_project.beans.IDMappingBehaviour.ENABLED.equals(idMappingResolutionBehaviour))){
  125.                 id_configurazioneServizioAzione_configurazioneServizio = ((JDBCConfigurazioneServizioServiceSearch)(this.getServiceManager().getConfigurazioneServizioServiceSearch())).findTableId(idLogic_configurazioneServizioAzione_configurazioneServizio, false);
  126.             }
  127.             else if(org.openspcoop2.generic_project.beans.IDMappingBehaviour.USE_TABLE_ID.equals(idMappingResolutionBehaviour)){
  128.                 id_configurazioneServizioAzione_configurazioneServizio = idLogic_configurazioneServizioAzione_configurazioneServizio.getId();
  129.                 if(id_configurazioneServizioAzione_configurazioneServizio==null || id_configurazioneServizioAzione_configurazioneServizio<=0){
  130.                     throw new Exception("Logic id not contains table id");
  131.                 }
  132.             }
  133.         }


  134.         // Object configurazioneServizioAzione
  135.         sqlQueryObjectUpdate.setANDLogicOperator(true);
  136.         sqlQueryObjectUpdate.addUpdateTable(this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()));
  137.         boolean isUpdate_configurazioneServizioAzione = true;
  138.         java.util.List<JDBCObject> lstObjects_configurazioneServizioAzione = new java.util.ArrayList<>();
  139.         sqlQueryObjectUpdate.addUpdateField(this.getConfigurazioneServizioAzioneFieldConverter().toColumn(ConfigurazioneServizioAzione.model().AZIONE,false), "?");
  140.         lstObjects_configurazioneServizioAzione.add(new JDBCObject(configurazioneServizioAzione.getAzione(), ConfigurazioneServizioAzione.model().AZIONE.getFieldType()));
  141.         if(setIdMappingResolutionBehaviour){
  142.             sqlQueryObjectUpdate.addUpdateField("id_config_servizio","?");
  143.         }
  144.         if(setIdMappingResolutionBehaviour){
  145.             lstObjects_configurazioneServizioAzione.add(new JDBCObject(id_configurazioneServizioAzione_configurazioneServizio, Long.class));
  146.         }
  147.         sqlQueryObjectUpdate.addWhereCondition("id=?");
  148.         lstObjects_configurazioneServizioAzione.add(new JDBCObject(tableId, Long.class));

  149.         if(isUpdate_configurazioneServizioAzione) {
  150.             // Update configurazioneServizioAzione
  151.             jdbcUtilities.executeUpdate(sqlQueryObjectUpdate.createSQLUpdate(), jdbcProperties.isShowSql(),
  152.                 lstObjects_configurazioneServizioAzione.toArray(new JDBCObject[]{}));
  153.         }


  154.     }
  155.    
  156.     @Override
  157.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione id, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  158.        
  159.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  160.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  161.                 this.getMapTableToPKColumnEngine(),
  162.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, id),
  163.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, null, updateFields);
  164.     }
  165.    
  166.     @Override
  167.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione id, IExpression condition, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  168.        
  169.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  170.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  171.                 this.getMapTableToPKColumnEngine(),
  172.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, id),
  173.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, condition, updateFields);
  174.     }
  175.    
  176.     @Override
  177.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione id, UpdateModel ... updateModels) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  178.        
  179.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  180.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  181.                 this.getMapTableToPKColumnEngine(),
  182.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, id),
  183.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, updateModels);
  184.     }  
  185.    
  186.     @Override
  187.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  188.         java.util.List<Object> ids = new java.util.ArrayList<>();
  189.         ids.add(tableId);
  190.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  191.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  192.                 this.getMapTableToPKColumnEngine(),
  193.                 ids,
  194.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, null, updateFields);
  195.     }
  196.    
  197.     @Override
  198.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, IExpression condition, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  199.         java.util.List<Object> ids = new java.util.ArrayList<>();
  200.         ids.add(tableId);
  201.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  202.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  203.                 this.getMapTableToPKColumnEngine(),
  204.                 ids,
  205.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, condition, updateFields);
  206.     }
  207.    
  208.     @Override
  209.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, UpdateModel ... updateModels) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  210.         java.util.List<Object> ids = new java.util.ArrayList<>();
  211.         ids.add(tableId);
  212.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  213.                 this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()),
  214.                 this.getMapTableToPKColumnEngine(),
  215.                 ids,
  216.                 this.getConfigurazioneServizioAzioneFieldConverter(), this, updateModels);
  217.     }
  218.    
  219.     @Override
  220.     public void updateOrCreate(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione oldId, ConfigurazioneServizioAzione configurazioneServizioAzione, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {
  221.    
  222.         if(this.exists(jdbcProperties, log, connection, sqlQueryObject, oldId)) {
  223.             this.update(jdbcProperties, log, connection, sqlQueryObject, oldId, configurazioneServizioAzione,idMappingResolutionBehaviour);
  224.         } else {
  225.             this.create(jdbcProperties, log, connection, sqlQueryObject, configurazioneServizioAzione,idMappingResolutionBehaviour);
  226.         }
  227.        
  228.     }
  229.    
  230.     @Override
  231.     public void updateOrCreate(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, ConfigurazioneServizioAzione configurazioneServizioAzione, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {
  232.         if(this.exists(jdbcProperties, log, connection, sqlQueryObject, tableId)) {
  233.             this.update(jdbcProperties, log, connection, sqlQueryObject, tableId, configurazioneServizioAzione,idMappingResolutionBehaviour);
  234.         } else {
  235.             this.create(jdbcProperties, log, connection, sqlQueryObject, configurazioneServizioAzione,idMappingResolutionBehaviour);
  236.         }
  237.     }
  238.    
  239.     @Override
  240.     public void delete(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, ConfigurazioneServizioAzione configurazioneServizioAzione) throws NotImplementedException,ServiceException,Exception {
  241.        
  242.        
  243.         Long longId = null;
  244.         if( (configurazioneServizioAzione.getId()!=null) && (configurazioneServizioAzione.getId()>0) ){
  245.             longId = configurazioneServizioAzione.getId();
  246.         }
  247.         else{
  248.             IdConfigurazioneServizioAzione idConfigurazioneServizioAzione = this.convertToId(jdbcProperties,log,connection,sqlQueryObject,configurazioneServizioAzione);
  249.             longId = this.findIdConfigurazioneServizioAzione(jdbcProperties,log,connection,sqlQueryObject,idConfigurazioneServizioAzione,false);
  250.             if(longId == null){
  251.                 return; // entry not exists
  252.             }
  253.         }      
  254.        
  255.         this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, longId);
  256.        
  257.     }

  258.     private void deleteEngine(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, Long id) throws NotImplementedException,ServiceException,Exception {
  259.    
  260.         if(id!=null && id.longValue()<=0){
  261.             throw new ServiceException("Id is less equals 0");
  262.         }
  263.        
  264.         org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities jdbcUtilities =
  265.                 new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities(sqlQueryObject.getTipoDatabaseOpenSPCoop2(), log, connection);
  266.        
  267.         ISQLQueryObject sqlQueryObjectDelete = sqlQueryObject.newSQLQueryObject();
  268.        

  269.         // Object configurazioneServizioAzione
  270.         sqlQueryObjectDelete.setANDLogicOperator(true);
  271.         sqlQueryObjectDelete.addDeleteTable(this.getConfigurazioneServizioAzioneFieldConverter().toTable(ConfigurazioneServizioAzione.model()));
  272.         if(id != null)
  273.             sqlQueryObjectDelete.addWhereCondition("id=?");

  274.         // Delete configurazioneServizioAzione
  275.         jdbcUtilities.execute(sqlQueryObjectDelete.createSQLDelete(), jdbcProperties.isShowSql(),
  276.             new JDBCObject(id,Long.class));

  277.     }

  278.     @Override
  279.     public void deleteById(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, IdConfigurazioneServizioAzione idConfigurazioneServizioAzione) throws NotImplementedException,ServiceException,Exception {

  280.         Long id = null;
  281.         try{
  282.             id = this.findIdConfigurazioneServizioAzione(jdbcProperties, log, connection, sqlQueryObject, idConfigurazioneServizioAzione, true);
  283.         }catch(NotFoundException notFound){
  284.             return;
  285.         }
  286.         this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, id);
  287.        
  288.     }
  289.    
  290.     @Override
  291.     public NonNegativeNumber deleteAll(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject) throws NotImplementedException,ServiceException,Exception {
  292.        
  293.         return this.deleteAll(jdbcProperties, log, connection, sqlQueryObject, new JDBCExpression(this.getConfigurazioneServizioAzioneFieldConverter()));

  294.     }

  295.     @Override
  296.     public NonNegativeNumber deleteAll(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, JDBCExpression expression) throws NotImplementedException, ServiceException,Exception {

  297.         java.util.List<Long> lst = this.findAllTableIds(jdbcProperties, log, connection, sqlQueryObject, new JDBCPaginatedExpression(expression));
  298.        
  299.         for(Long id : lst) {
  300.             this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, id);
  301.         }
  302.        
  303.         return new NonNegativeNumber(lst.size());
  304.    
  305.     }



  306.     // -- DB
  307.    
  308.     @Override
  309.     public void deleteById(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId) throws ServiceException, NotImplementedException, Exception {
  310.         this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, Long.valueOf(tableId));
  311.     }
  312.    
  313.     @Override
  314.     public int nativeUpdate(JDBCServiceManagerProperties jdbcProperties, Logger log,Connection connection,ISQLQueryObject sqlObject, String sql,Object ... param) throws ServiceException,NotImplementedException, Exception {
  315.    
  316.         return org.openspcoop2.generic_project.dao.jdbc.utils.GenericJDBCUtilities.nativeUpdate(jdbcProperties, log, connection, sqlObject,
  317.                                                                                             sql,param);
  318.    
  319.     }
  320. }