Class JPAEnumerationOperator
java.lang.Object
com.sap.olingo.jpa.processor.core.filter.JPAEnumerationOperator
- All Implemented Interfaces:
JPAEnumerationBasedOperator,JPAOperator,JPAPrimitiveTypeOperator
-
Method Summary
-
Method Details
-
get
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 acomparablelike 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 ofcomparable, which goes with an incompatible change of annotation EdmEnumeration, as converters are required using such an array.- Specified by:
getin interfaceJPAOperator- Throws:
org.apache.olingo.server.api.ODataApplicationException
-
isNull
public boolean isNull()- Specified by:
isNullin interfaceJPAPrimitiveTypeOperator
-
getValue
- Specified by:
getValuein interfaceJPAEnumerationBasedOperator- Throws:
ODataJPAFilterException
-
getName
- Specified by:
getNamein interfaceJPAOperator
-