JDBCTransazioneExportServiceImpl.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.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.IJDBCServiceCRUDWithoutId;
  25. import org.openspcoop2.generic_project.beans.NonNegativeNumber;
  26. import org.openspcoop2.generic_project.beans.UpdateField;
  27. import org.openspcoop2.generic_project.beans.UpdateModel;

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

  36. import org.openspcoop2.generic_project.dao.jdbc.JDBCServiceManagerProperties;

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

  38. /**    
  39.  * JDBCTransazioneExportServiceImpl
  40.  *
  41.  * @author Poli Andrea (poli@link.it)
  42.  * @author $Author$
  43.  * @version $Rev$, $Date$
  44.  */
  45. public class JDBCTransazioneExportServiceImpl extends JDBCTransazioneExportServiceSearchImpl
  46.     implements IJDBCServiceCRUDWithoutId<TransazioneExport, JDBCServiceManager> {

  47.     @Override
  48.     public void create(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {

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


  54.         // Object transazioneExport
  55.         sqlQueryObjectInsert.addInsertTable(this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()));
  56.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().INTERVALLO_INIZIO,false),"?");
  57.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().INTERVALLO_FINE,false),"?");
  58.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().NOME,false),"?");
  59.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_STATE,false),"?");
  60.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_ERROR,false),"?");
  61.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_TIME_START,false),"?");
  62.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_TIME_END,false),"?");
  63.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_STATE,false),"?");
  64.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_ERROR,false),"?");
  65.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_TIME_START,false),"?");
  66.         sqlQueryObjectInsert.addInsertField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_TIME_END,false),"?");

  67.         // Insert transazioneExport
  68.         org.openspcoop2.utils.jdbc.IKeyGeneratorObject keyGenerator = this.getTransazioneExportFetch().getKeyGeneratorObject(TransazioneExport.model());
  69.         long id = jdbcUtilities.insertAndReturnGeneratedKey(sqlQueryObjectInsert, keyGenerator, jdbcProperties.isShowSql(),
  70.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getIntervalloInizio(),TransazioneExport.model().INTERVALLO_INIZIO.getFieldType()),
  71.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getIntervalloFine(),TransazioneExport.model().INTERVALLO_FINE.getFieldType()),
  72.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getNome(),TransazioneExport.model().NOME.getFieldType()),
  73.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getExportState(),TransazioneExport.model().EXPORT_STATE.getFieldType()),
  74.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getExportError(),TransazioneExport.model().EXPORT_ERROR.getFieldType()),
  75.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getExportTimeStart(),TransazioneExport.model().EXPORT_TIME_START.getFieldType()),
  76.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getExportTimeEnd(),TransazioneExport.model().EXPORT_TIME_END.getFieldType()),
  77.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getDeleteState(),TransazioneExport.model().DELETE_STATE.getFieldType()),
  78.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getDeleteError(),TransazioneExport.model().DELETE_ERROR.getFieldType()),
  79.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getDeleteTimeStart(),TransazioneExport.model().DELETE_TIME_START.getFieldType()),
  80.             new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCObject(transazioneExport.getDeleteTimeEnd(),TransazioneExport.model().DELETE_TIME_END.getFieldType())
  81.         );
  82.         transazioneExport.setId(id);

  83.        
  84.     }

  85.     @Override
  86.     public void update(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  87.        
  88.         Long tableId = transazioneExport.getId();
  89.         if(tableId==null || tableId<=0){
  90.             throw new Exception("Retrieve tableId failed");
  91.         }

  92.         this.update(jdbcProperties, log, connection, sqlQueryObject, tableId, transazioneExport, idMappingResolutionBehaviour);
  93.     }
  94.     @Override
  95.     public void update(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, TransazioneExport transazioneExport, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  96.    
  97.         org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities jdbcUtilities =
  98.                 new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities(sqlQueryObject.getTipoDatabaseOpenSPCoop2(), log, connection);
  99.        
  100.         ISQLQueryObject sqlQueryObjectInsert = sqlQueryObject.newSQLQueryObject();
  101.         ISQLQueryObject sqlQueryObjectDelete = sqlQueryObjectInsert.newSQLQueryObject();
  102.         ISQLQueryObject sqlQueryObjectGet = sqlQueryObjectDelete.newSQLQueryObject();
  103.         ISQLQueryObject sqlQueryObjectUpdate = sqlQueryObjectGet.newSQLQueryObject();
  104.        


  105.         // Object transazioneExport
  106.         sqlQueryObjectUpdate.setANDLogicOperator(true);
  107.         sqlQueryObjectUpdate.addUpdateTable(this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()));
  108.         boolean isUpdate_transazioneExport = true;
  109.         java.util.List<JDBCObject> lstObjects_transazioneExport = new java.util.ArrayList<>();
  110.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().INTERVALLO_INIZIO,false), "?");
  111.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getIntervalloInizio(), TransazioneExport.model().INTERVALLO_INIZIO.getFieldType()));
  112.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().INTERVALLO_FINE,false), "?");
  113.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getIntervalloFine(), TransazioneExport.model().INTERVALLO_FINE.getFieldType()));
  114.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().NOME,false), "?");
  115.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getNome(), TransazioneExport.model().NOME.getFieldType()));
  116.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_STATE,false), "?");
  117.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getExportState(), TransazioneExport.model().EXPORT_STATE.getFieldType()));
  118.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_ERROR,false), "?");
  119.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getExportError(), TransazioneExport.model().EXPORT_ERROR.getFieldType()));
  120.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_TIME_START,false), "?");
  121.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getExportTimeStart(), TransazioneExport.model().EXPORT_TIME_START.getFieldType()));
  122.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().EXPORT_TIME_END,false), "?");
  123.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getExportTimeEnd(), TransazioneExport.model().EXPORT_TIME_END.getFieldType()));
  124.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_STATE,false), "?");
  125.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getDeleteState(), TransazioneExport.model().DELETE_STATE.getFieldType()));
  126.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_ERROR,false), "?");
  127.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getDeleteError(), TransazioneExport.model().DELETE_ERROR.getFieldType()));
  128.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_TIME_START,false), "?");
  129.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getDeleteTimeStart(), TransazioneExport.model().DELETE_TIME_START.getFieldType()));
  130.         sqlQueryObjectUpdate.addUpdateField(this.getTransazioneExportFieldConverter().toColumn(TransazioneExport.model().DELETE_TIME_END,false), "?");
  131.         lstObjects_transazioneExport.add(new JDBCObject(transazioneExport.getDeleteTimeEnd(), TransazioneExport.model().DELETE_TIME_END.getFieldType()));
  132.         sqlQueryObjectUpdate.addWhereCondition("id=?");
  133.         lstObjects_transazioneExport.add(new JDBCObject(tableId, Long.class));

  134.         if(isUpdate_transazioneExport) {
  135.             // Update transazioneExport
  136.             jdbcUtilities.executeUpdate(sqlQueryObjectUpdate.createSQLUpdate(), jdbcProperties.isShowSql(),
  137.                 lstObjects_transazioneExport.toArray(new JDBCObject[]{}));
  138.         }


  139.     }
  140.    
  141.     @Override
  142.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  143.        
  144.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  145.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  146.                 this.getMapTableToPKColumnEngine(),
  147.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, transazioneExport),
  148.                 this.getTransazioneExportFieldConverter(), this, null, updateFields);
  149.     }
  150.    
  151.     @Override
  152.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, IExpression condition, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  153.        
  154.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  155.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  156.                 this.getMapTableToPKColumnEngine(),
  157.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, transazioneExport),
  158.                 this.getTransazioneExportFieldConverter(), this, condition, updateFields);
  159.     }
  160.    
  161.     @Override
  162.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, UpdateModel ... updateModels) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  163.        
  164.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  165.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  166.                 this.getMapTableToPKColumnEngine(),
  167.                 this.getRootTablePrimaryKeyValuesEngine(jdbcProperties, log, connection, sqlQueryObject, transazioneExport),
  168.                 this.getTransazioneExportFieldConverter(), this, updateModels);
  169.     }  
  170.    
  171.     @Override
  172.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  173.         java.util.List<Object> ids = new java.util.ArrayList<>();
  174.         ids.add(tableId);
  175.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  176.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  177.                 this.getMapTableToPKColumnEngine(),
  178.                 ids,
  179.                 this.getTransazioneExportFieldConverter(), this, null, updateFields);
  180.     }
  181.    
  182.     @Override
  183.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, IExpression condition, UpdateField ... updateFields) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  184.         java.util.List<Object> ids = new java.util.ArrayList<>();
  185.         ids.add(tableId);
  186.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  187.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  188.                 this.getMapTableToPKColumnEngine(),
  189.                 ids,
  190.                 this.getTransazioneExportFieldConverter(), this, condition, updateFields);
  191.     }
  192.    
  193.     @Override
  194.     public void updateFields(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, UpdateModel ... updateModels) throws NotFoundException, NotImplementedException, ServiceException, Exception {
  195.         java.util.List<Object> ids = new java.util.ArrayList<>();
  196.         ids.add(tableId);
  197.         GenericJDBCUtilities.updateFields(jdbcProperties, log, connection, sqlQueryObject,
  198.                 this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()),
  199.                 this.getMapTableToPKColumnEngine(),
  200.                 ids,
  201.                 this.getTransazioneExportFieldConverter(), this, updateModels);
  202.     }
  203.    
  204.     @Override
  205.     public void updateOrCreate(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {
  206.    
  207.         Long id = transazioneExport.getId();
  208.         if(id != null && this.exists(jdbcProperties, log, connection, sqlQueryObject, id)) {
  209.             this.update(jdbcProperties, log, connection, sqlQueryObject, transazioneExport,idMappingResolutionBehaviour);      
  210.         } else {
  211.             this.create(jdbcProperties, log, connection, sqlQueryObject, transazioneExport,idMappingResolutionBehaviour);
  212.         }
  213.        
  214.     }
  215.    
  216.     @Override
  217.     public void updateOrCreate(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId, TransazioneExport transazioneExport, org.openspcoop2.generic_project.beans.IDMappingBehaviour idMappingResolutionBehaviour) throws NotImplementedException,ServiceException,Exception {
  218.         if(this.exists(jdbcProperties, log, connection, sqlQueryObject, tableId)) {
  219.             this.update(jdbcProperties, log, connection, sqlQueryObject, tableId, transazioneExport,idMappingResolutionBehaviour);
  220.         } else {
  221.             this.create(jdbcProperties, log, connection, sqlQueryObject, transazioneExport,idMappingResolutionBehaviour);
  222.         }
  223.     }
  224.    
  225.     @Override
  226.     public void delete(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, TransazioneExport transazioneExport) throws NotImplementedException,ServiceException,Exception {
  227.        
  228.        
  229.         Long longId = null;
  230.         if(transazioneExport.getId()==null){
  231.             throw new Exception("Parameter "+transazioneExport.getClass().getName()+".id is null");
  232.         }
  233.         if(transazioneExport.getId()<=0){
  234.             throw new Exception("Parameter "+transazioneExport.getClass().getName()+".id is less equals 0");
  235.         }
  236.         longId = transazioneExport.getId();
  237.        
  238.         this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, longId);
  239.        
  240.     }

  241.     private void deleteEngine(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, Long id) throws NotImplementedException,ServiceException,Exception {
  242.    
  243.         if(id!=null && id.longValue()<=0){
  244.             throw new ServiceException("Id is less equals 0");
  245.         }
  246.        
  247.         org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities jdbcUtilities =
  248.                 new org.openspcoop2.generic_project.dao.jdbc.utils.JDBCPreparedStatementUtilities(sqlQueryObject.getTipoDatabaseOpenSPCoop2(), log, connection);
  249.        
  250.         ISQLQueryObject sqlQueryObjectDelete = sqlQueryObject.newSQLQueryObject();
  251.        

  252.         // Object transazioneExport
  253.         sqlQueryObjectDelete.setANDLogicOperator(true);
  254.         sqlQueryObjectDelete.addDeleteTable(this.getTransazioneExportFieldConverter().toTable(TransazioneExport.model()));
  255.         if(id != null)
  256.             sqlQueryObjectDelete.addWhereCondition("id=?");

  257.         // Delete transazioneExport
  258.         jdbcUtilities.execute(sqlQueryObjectDelete.createSQLDelete(), jdbcProperties.isShowSql(),
  259.             new JDBCObject(id,Long.class));

  260.     }

  261.    
  262.     @Override
  263.     public NonNegativeNumber deleteAll(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject) throws NotImplementedException,ServiceException,Exception {
  264.        
  265.         return this.deleteAll(jdbcProperties, log, connection, sqlQueryObject, new JDBCExpression(this.getTransazioneExportFieldConverter()));

  266.     }

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

  269.         java.util.List<Long> lst = this.findAllTableIds(jdbcProperties, log, connection, sqlQueryObject, new JDBCPaginatedExpression(expression));
  270.        
  271.         for(Long id : lst) {
  272.             this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, id);
  273.         }
  274.        
  275.         return new NonNegativeNumber(lst.size());
  276.    
  277.     }



  278.     // -- DB
  279.    
  280.     @Override
  281.     public void deleteById(JDBCServiceManagerProperties jdbcProperties, Logger log, Connection connection, ISQLQueryObject sqlQueryObject, long tableId) throws ServiceException, NotImplementedException, Exception {
  282.         this.deleteEngine(jdbcProperties, log, connection, sqlQueryObject, Long.valueOf(tableId));
  283.     }
  284.    
  285.     @Override
  286.     public int nativeUpdate(JDBCServiceManagerProperties jdbcProperties, Logger log,Connection connection,ISQLQueryObject sqlObject, String sql,Object ... param) throws ServiceException,NotImplementedException, Exception {
  287.    
  288.         return org.openspcoop2.generic_project.dao.jdbc.utils.GenericJDBCUtilities.nativeUpdate(jdbcProperties, log, connection, sqlObject,
  289.                                                                                             sql,param);
  290.    
  291.     }
  292. }