NotImplementedExpression.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.expression;

  21. import java.util.Collection;
  22. import java.util.List;
  23. import java.util.Map;

  24. import org.openspcoop2.generic_project.beans.IField;
  25. import org.openspcoop2.generic_project.beans.IModel;
  26. import org.openspcoop2.generic_project.exception.ExpressionException;
  27. import org.openspcoop2.generic_project.exception.ExpressionNotImplementedException;

  28. /**
  29.  * NotImplementedExpression
  30.  *
  31.  * @author Poli Andrea (apoli@link.it)
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  */
  35. public class NotImplementedExpression implements IExpression {

  36.     private static final String NOT_IMPLEMENTED = "Not Implemented";
  37.    
  38.     @Override
  39.     public IExpression equals(IField field, Object value)
  40.     throws ExpressionNotImplementedException, ExpressionException {
  41.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  42.     }

  43.     @Override
  44.     public IExpression notEquals(IField field, Object value)
  45.     throws ExpressionNotImplementedException, ExpressionException {
  46.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  47.     }

  48.     @Override
  49.     public IExpression allEquals(Map<IField, Object> propertyNameValues)
  50.     throws ExpressionNotImplementedException, ExpressionException {
  51.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  52.     }

  53.     @Override
  54.     public IExpression allNotEquals(Map<IField, Object> propertyNameValues)
  55.     throws ExpressionNotImplementedException, ExpressionException {
  56.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  57.     }

  58.     @Override
  59.     public IExpression allEquals(Map<IField, Object> propertyNameValues,boolean andConjunction)
  60.     throws ExpressionNotImplementedException, ExpressionException {
  61.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  62.     }

  63.     @Override
  64.     public IExpression allNotEquals(Map<IField, Object> propertyNameValues,boolean andConjunction)
  65.     throws ExpressionNotImplementedException, ExpressionException {
  66.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  67.     }

  68.     @Override
  69.     public IExpression greaterThan(IField field, Object value)
  70.     throws ExpressionNotImplementedException, ExpressionException {
  71.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  72.     }

  73.     @Override
  74.     public IExpression greaterEquals(IField field, Object value)
  75.     throws ExpressionNotImplementedException, ExpressionException {
  76.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  77.     }

  78.     @Override
  79.     public IExpression lessThan(IField field, Object value)
  80.     throws ExpressionNotImplementedException, ExpressionException {
  81.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  82.     }

  83.     @Override
  84.     public IExpression lessEquals(IField field, Object value)
  85.     throws ExpressionNotImplementedException, ExpressionException {
  86.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  87.     }

  88.     @Override
  89.     public IExpression between(IField field, Object lower, Object high)
  90.     throws ExpressionNotImplementedException, ExpressionException {
  91.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  92.     }

  93.     @Override
  94.     public IExpression like(IField field, String value)
  95.     throws ExpressionNotImplementedException, ExpressionException {
  96.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  97.     }

  98.     @Override
  99.     public IExpression like(IField field, String value, LikeMode mode)
  100.     throws ExpressionNotImplementedException, ExpressionException {
  101.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  102.     }

  103.     @Override
  104.     public IExpression ilike(IField field, String value)
  105.     throws ExpressionNotImplementedException, ExpressionException {
  106.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  107.     }

  108.     @Override
  109.     public IExpression ilike(IField field, String value, LikeMode mode)
  110.     throws ExpressionNotImplementedException, ExpressionException {
  111.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  112.     }
  113.    


  114.    
  115.    
  116.    
  117.     /* ************ DATE PART *********** */
  118.    
  119.     @Override
  120.     public IExpression isYear(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  121.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  122.     }
  123.     @Override
  124.     public IExpression isYear(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  125.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  126.     }
  127.    
  128.     @Override
  129.     public IExpression isMonth(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  130.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  131.     }
  132.     @Override
  133.     public IExpression isMonth(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  134.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  135.     }
  136.    
  137.     @Override
  138.     public IExpression isDayOfMonth(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  139.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  140.     }
  141.     @Override
  142.     public IExpression isDayOfMonth(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  143.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  144.     }
  145.    
  146.     @Override
  147.     public IExpression isDayOfYear(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  148.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  149.     }
  150.     @Override
  151.     public IExpression isDayOfYear(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  152.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  153.     }
  154.    
  155.     @Override
  156.     public IExpression isDayOfWeek(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  157.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  158.     }
  159.     @Override
  160.     public IExpression isDayOfWeek(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  161.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  162.     }
  163.    
  164.     @Override
  165.     public IExpression isHour(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  166.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  167.     }
  168.     @Override
  169.     public IExpression isHour(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  170.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  171.     }
  172.    
  173.     @Override
  174.     public IExpression isMinute(IField field, int value) throws ExpressionNotImplementedException,ExpressionException {
  175.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  176.     }
  177.     @Override
  178.     public IExpression isMinute(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  179.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  180.     }
  181.    
  182.     @Override
  183.     public IExpression isSecond(IField field, int second) throws ExpressionNotImplementedException,ExpressionException {
  184.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  185.     }
  186.     @Override
  187.     public IExpression isSecond(IField field, double second) throws ExpressionNotImplementedException,ExpressionException {
  188.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  189.     }
  190.     @Override
  191.     public IExpression isSecond(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  192.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  193.     }
  194.    
  195.     @Override
  196.     public IExpression isFullDayName(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  197.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  198.     }

  199.     @Override
  200.     public IExpression isShortDayName(IField field, String value) throws ExpressionNotImplementedException,ExpressionException {
  201.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  202.     }

  203.     @Override
  204.     public IExpression in(IField field, Object... values)
  205.     throws ExpressionNotImplementedException, ExpressionException {
  206.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  207.     }

  208.     @Override
  209.     public IExpression in(IField field, Collection<?> values)
  210.     throws ExpressionNotImplementedException, ExpressionException {
  211.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  212.     }

  213.     @Override
  214.     public IExpression isNull(IField field)
  215.     throws ExpressionNotImplementedException, ExpressionException {
  216.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  217.     }

  218.     @Override
  219.     public IExpression isNotNull(IField field)
  220.     throws ExpressionNotImplementedException, ExpressionException {
  221.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  222.     }

  223.     @Override
  224.     public IExpression isEmpty(IField field)
  225.     throws ExpressionNotImplementedException, ExpressionException {
  226.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  227.     }

  228.     @Override
  229.     public IExpression isNotEmpty(IField field)
  230.     throws ExpressionNotImplementedException, ExpressionException {
  231.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  232.     }

  233.     @Override
  234.     public IExpression and(IExpression f1, IExpression f2)
  235.     throws ExpressionNotImplementedException, ExpressionException {
  236.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  237.     }

  238.     @Override
  239.     public IExpression and(IExpression... filtri)
  240.     throws ExpressionNotImplementedException, ExpressionException {
  241.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  242.     }

  243.     @Override
  244.     public IExpression or(IExpression f1, IExpression f2)
  245.     throws ExpressionNotImplementedException, ExpressionException {
  246.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  247.     }

  248.     @Override
  249.     public IExpression or(IExpression... filtri)
  250.     throws ExpressionNotImplementedException, ExpressionException {
  251.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  252.     }

  253.     @Override
  254.     public IExpression not(IExpression filtro)
  255.     throws ExpressionNotImplementedException, ExpressionException {
  256.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  257.     }

  258.     @Override
  259.     public IExpression not() throws ExpressionNotImplementedException,
  260.     ExpressionException {
  261.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  262.     }

  263.     public IExpression setANDLogicOperator(boolean andLogicOperator)
  264.     throws ExpressionNotImplementedException, ExpressionException {
  265.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  266.     }

  267.     @Override
  268.     public IExpression and() throws ExpressionNotImplementedException,
  269.     ExpressionException {
  270.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  271.     }

  272.     @Override
  273.     public IExpression or() throws ExpressionNotImplementedException,
  274.     ExpressionException {
  275.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  276.     }

  277.     @Override
  278.     public IPaginatedExpression sortOrder(SortOrder sortOrder)
  279.     throws ExpressionNotImplementedException, ExpressionException {
  280.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  281.     }

  282.     @Override
  283.     public IPaginatedExpression addOrder(IField field)
  284.     throws ExpressionNotImplementedException, ExpressionException {
  285.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  286.     }
  287.    
  288.     @Override
  289.     public IExpression addOrder(IField field, SortOrder sortOrder)
  290.     throws ExpressionNotImplementedException,ExpressionException{
  291.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  292.     }

  293.     @Override
  294.     public IExpression addGroupBy(IField field)
  295.             throws ExpressionNotImplementedException, ExpressionException {
  296.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  297.     }
  298.    
  299.     @Override
  300.     public boolean inUseField(IField field,boolean checkOnlyWhereCondition) throws ExpressionNotImplementedException, ExpressionException {
  301.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  302.     }

  303.     @Override
  304.     public boolean inUseModel(IModel<?> model,boolean checkOnlyWhereCondition) throws ExpressionNotImplementedException, ExpressionException {
  305.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  306.     }

  307.     @Override
  308.     public boolean isWhereConditionsPresent() throws ExpressionNotImplementedException,
  309.             ExpressionException {
  310.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  311.     }

  312.     @Override
  313.     public List<Object> getWhereConditionFieldValues(IField field)
  314.             throws ExpressionNotImplementedException, ExpressionException {
  315.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  316.     }

  317.     @Override
  318.     public List<IField> getFields(boolean onlyWhereCondition) throws ExpressionNotImplementedException,
  319.             ExpressionException {
  320.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  321.     }

  322.     @Override
  323.     public IExpression addForceIndex(Index index) throws ExpressionNotImplementedException, ExpressionException {
  324.         throw new ExpressionNotImplementedException(NOT_IMPLEMENTED);
  325.     }

  326.     @Override
  327.     public void addProperty(String name, Object value) {
  328.         // nop
  329.     }

  330.     @Override
  331.     public Object getProperty(String name) {
  332.         // nop
  333.         return null;
  334.     }

  335. }