Class JPAComparisonOperatorImp<T extends Comparable<T>>

java.lang.Object
com.sap.olingo.jpa.processor.core.filter.JPAComparisonOperatorImp<T>
All Implemented Interfaces:
JPAComparisonOperator<T>, JPAExpression, JPAExpressionOperator, JPAOperator

public class JPAComparisonOperatorImp<T extends Comparable<T>> extends Object implements JPAComparisonOperator<T>
  • Constructor Details

    • JPAComparisonOperatorImp

      public JPAComparisonOperatorImp(JPAOperationConverter converter, org.apache.olingo.server.api.uri.queryoption.expression.BinaryOperatorKind operator, JPAOperator left, JPAOperator right)
  • Method Details

    • get

      public javax.persistence.criteria.Expression<Boolean> get() throws org.apache.olingo.server.api.ODataApplicationException
      Specified by:
      get in interface JPAExpression
      Specified by:
      get in interface JPAOperator
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • getOperator

      public org.apache.olingo.server.api.uri.queryoption.expression.BinaryOperatorKind getOperator()
      Specified by:
      getOperator in interface JPAExpressionOperator
    • getLeft

      public javax.persistence.criteria.Expression<T> getLeft() throws org.apache.olingo.server.api.ODataApplicationException
      Specified by:
      getLeft in interface JPAComparisonOperator<T extends Comparable<T>>
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • getRight

      public Object getRight()
      Specified by:
      getRight in interface JPAComparisonOperator<T extends Comparable<T>>
    • getRightAsComparable

      public Comparable<T> getRightAsComparable() throws org.apache.olingo.server.api.ODataApplicationException
      Specified by:
      getRightAsComparable in interface JPAComparisonOperator<T extends Comparable<T>>
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • getRightAsExpression

      public javax.persistence.criteria.Expression<T> getRightAsExpression() throws org.apache.olingo.server.api.ODataApplicationException
      Specified by:
      getRightAsExpression in interface JPAComparisonOperator<T extends Comparable<T>>
      Throws:
      org.apache.olingo.server.api.ODataApplicationException
    • getName

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