Class JPAEnumerationOperator

java.lang.Object
com.sap.olingo.jpa.processor.core.filter.JPAEnumerationOperator
All Implemented Interfaces:
JPAEnumerationBasedOperator, JPAOperator, JPAPrimitiveTypeOperator

public final class JPAEnumerationOperator extends Object implements JPAEnumerationBasedOperator
  • Method Details

    • get

      public Object get() throws org.apache.olingo.server.api.ODataApplicationException
      Returns either an instance of an enumeration or an array of enumerations. This is sufficient for eq, ne and has operations, but will not work with any operation that requires a comparable like gt. As of now such operations are already blocked by Olingo in ExpressionParser.checkType().
      In case in the future these operations shall be supported this method has to return an array of comparable, which goes with an incompatible change of annotation EdmEnumeration, as converters are required using such an array.
      Specified by:
      get in interface JPAOperator
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • isNull

      public boolean isNull()
      Specified by:
      isNull in interface JPAPrimitiveTypeOperator
    • getValue

      public Number getValue() throws ODataJPAFilterException
      Specified by:
      getValue in interface JPAEnumerationBasedOperator
      Throws:
      ODataJPAFilterException
    • getName

      public String getName()
      Specified by:
      getName in interface JPAOperator