@Test public void testNotSupportedConvertMethodCall() throws ODataApplicationException { final JPAMethodCall operator = mock(JPAMethodCall.class); assertThrows(ODataJPAFilterException.class, () -> ((JPAODataDatabaseOperations) cut).convert(operator)); }
@Override public Expression<Long> convert(final JPAAggregationOperation jpaOperator) throws ODataApplicationException { throw new ODataJPAFilterException(ODataJPAFilterException.MessageKeys.NOT_SUPPORTED_OPERATOR, HttpStatusCode.NOT_IMPLEMENTED, jpaOperator.getName()); }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Long> convert(final JPAAggregationOperation jpaOperator) throws ODataApplicationException { throw new ODataJPAFilterException(ODataJPAFilterException.MessageKeys.NOT_SUPPORTED_OPERATOR, HttpStatusCode.NOT_IMPLEMENTED, jpaOperator.getName()); } }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Long> convert(final JPAAggregationOperation jpaOperator) throws ODataApplicationException { throw new ODataJPAFilterException(ODataJPAFilterException.MessageKeys.NOT_SUPPORTED_OPERATOR, HttpStatusCode.NOT_IMPLEMENTED, jpaOperator.getName()); }  }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Long> convert(final JPAAggregationOperation jpaOperator) throws ODataApplicationException { throw new ODataJPAFilterException(ODataJPAFilterException.MessageKeys.NOT_SUPPORTED_OPERATOR, HttpStatusCode.NOT_IMPLEMENTED, jpaOperator.getName()); }  @Override Expression<Long> convert(final JPAAggregationOperation jpaOperator); @Override Expression<T> convert(final JPAArithmeticOperator jpaOperator); @Override Expression<Boolean> convert(final JPABooleanOperator jpaOperator); @Override Expression<Boolean> convert(@SuppressWarnings("rawtypes") final JPAComparisonOperator jpaOperator); @Override Expression<T> convert(final JPAMethodCall jpaFunction); @Override Expression<Boolean> convert(final JPAUnaryBooleanOperator jpaOperator); @Override Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq,
      From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption); @SuppressWarnings("unchecked") @Override List<T> executeFunctionQuery(final List<UriResource> uriResourceParts,
      final JPADataBaseFunction jpaFunction, final EntityManager em); @Override void setCriterialBuilder(final CriteriaBuilder cb); }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Long> convert(final JPAAggregationOperation jpaOperator) throws ODataApplicationException { throw new ODataJPAFilterException(ODataJPAFilterException.MessageKeys.NOT_SUPPORTED_OPERATOR, HttpStatusCode.NOT_IMPLEMENTED, jpaOperator.getName()); }  @Override Expression<Long> convert(final JPAAggregationOperation jpaOperator); @Override Expression<T> convert(final JPAArithmeticOperator jpaOperator); @Override Expression<Boolean> convert(final JPABooleanOperator jpaOperator); @Override Expression<Boolean> convert(@SuppressWarnings("rawtypes") final JPAComparisonOperator jpaOperator); @Override Expression<T> convert(final JPAMethodCall jpaFunction); @Override Expression<Boolean> convert(final JPAUnaryBooleanOperator jpaOperator); @Override Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq,
      From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption); @SuppressWarnings("unchecked") @Override List<T> executeFunctionQuery(final List<UriResource> uriResourceParts,
      final JPADataBaseFunction jpaFunction, final EntityManager em); @Override void setCriterialBuilder(final CriteriaBuilder cb);  }