@Test public void testNotSupportedSearch() throws ODataApplicationException { assertThrows(ODataJPADBAdaptorException.class, () -> { cut.createSearchWhereClause(null, null, null, null, null); }); }
@Override public Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq, From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption) throws ODataApplicationException { throw new ODataJPADBAdaptorException(ODataJPADBAdaptorException.MessageKeys.NOT_SUPPORTED_SEARCH, HttpStatusCode.NOT_IMPLEMENTED); }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq, From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption) throws ODataApplicationException { throw new ODataJPADBAdaptorException(ODataJPADBAdaptorException.MessageKeys.NOT_SUPPORTED_SEARCH, HttpStatusCode.NOT_IMPLEMENTED); } }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq, From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption) throws ODataApplicationException { throw new ODataJPADBAdaptorException(ODataJPADBAdaptorException.MessageKeys.NOT_SUPPORTED_SEARCH, HttpStatusCode.NOT_IMPLEMENTED); }  }
JPADefaultDatabaseProcessor extends JPAAbstractDatabaseProcessor implements JPAODataDatabaseOperations { @Override public Expression<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq, From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption) throws ODataApplicationException { throw new ODataJPADBAdaptorException(ODataJPADBAdaptorException.MessageKeys.NOT_SUPPORTED_SEARCH, HttpStatusCode.NOT_IMPLEMENTED); }  @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<Boolean> createSearchWhereClause(final CriteriaBuilder cb, final CriteriaQuery<?> cq, From<?, ?> root, final JPAEntityType entityType, final SearchOption searchOption) throws ODataApplicationException { throw new ODataJPADBAdaptorException(ODataJPADBAdaptorException.MessageKeys.NOT_SUPPORTED_SEARCH, HttpStatusCode.NOT_IMPLEMENTED); }  @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);  }