JDBCPaginatedExpression.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.generic_project.dao.jdbc;


  21. import java.util.List;

  22. import org.openspcoop2.generic_project.exception.ExpressionException;
  23. import org.openspcoop2.generic_project.exception.ExpressionNotImplementedException;
  24. import org.openspcoop2.generic_project.expression.impl.sql.ISQLFieldConverter;
  25. import org.openspcoop2.generic_project.expression.impl.sql.PaginatedExpressionSQL;
  26. import org.openspcoop2.utils.sql.ISQLQueryObject;

  27. /**
  28.  * JDBCPaginatedExpression
  29.  *
  30.  * @author Poli Andrea (apoli@link.it)
  31.  * @author $Author$
  32.  * @version $Rev$, $Date$
  33.  */
  34. public class JDBCPaginatedExpression extends PaginatedExpressionSQL  {

  35.     public JDBCPaginatedExpression(ISQLFieldConverter sqlFieldConverter) throws ExpressionException{
  36.         super(sqlFieldConverter);
  37.     }
  38.     public JDBCPaginatedExpression(JDBCExpression expression) throws ExpressionException{
  39.         super(expression);
  40.     }
  41.    
  42.     public String toSqlForPreparedStatement(List<Object> oggetti) throws ExpressionException{
  43.         return this.toSqlPreparedStatement(oggetti);
  44.     }
  45.    
  46.     public void toSqlForPreparedStatement(ISQLQueryObject sqlQueryObject,List<Object> oggetti) throws ExpressionException{
  47.         this.toSqlPreparedStatement(sqlQueryObject,oggetti);
  48.     }
  49.    
  50.     public void toSqlForPreparedStatementWithFromCondition(ISQLQueryObject sqlQueryObject,List<Object> oggetti,String tableNamePrincipale) throws ExpressionException, ExpressionNotImplementedException{
  51.         this.toSqlPreparedStatementWithFromCondition(sqlQueryObject,oggetti,tableNamePrincipale);
  52.     }
  53. }