@Test public void testCreateSingleStringValue() throws ODataJPAModelException, ODataException { String link = "BusinessPartners('123456')"; cut = new JPARequestLinkImpl(path, link, helper); completeJPAPath(); Map<String, Object> act = cut.getValues(); assertNotNull(act); assertEquals("123456", act.get("businessPartnerID")); }
@Override public Map<String, Object> getValues() throws ODataJPAProcessorException { if (values.size() == 0) try { buildKeys(); } catch (Exception e) { throw new ODataJPAProcessorException(e, HttpStatusCode.BAD_REQUEST); } return values; }
JPARequestLinkImpl implements JPARequestLink { @Override public Map<String, Object> getValues() throws ODataJPAProcessorException { if (values.size() == 0) try { buildKeys(); } catch (Exception e) { throw new ODataJPAProcessorException(e, HttpStatusCode.BAD_REQUEST); } return values; } }
JPARequestLinkImpl implements JPARequestLink { @Override public Map<String, Object> getValues() throws ODataJPAProcessorException { if (values.size() == 0) try { buildKeys(); } catch (Exception e) { throw new ODataJPAProcessorException(e, HttpStatusCode.BAD_REQUEST); } return values; } JPARequestLinkImpl(final JPAAssociationPath path, final String bindingLink, final JPAConversionHelper helper); }
JPARequestLinkImpl implements JPARequestLink { @Override public Map<String, Object> getValues() throws ODataJPAProcessorException { if (values.size() == 0) try { buildKeys(); } catch (Exception e) { throw new ODataJPAProcessorException(e, HttpStatusCode.BAD_REQUEST); } return values; } JPARequestLinkImpl(final JPAAssociationPath path, final String bindingLink, final JPAConversionHelper helper); @Override JPAEntityType getEntityType(); @Override Map<String, Object> getRelatedKeys(); @Override Map<String, Object> getValues(); }
JPARequestLinkImpl implements JPARequestLink { @Override public Map<String, Object> getValues() throws ODataJPAProcessorException { if (values.size() == 0) try { buildKeys(); } catch (Exception e) { throw new ODataJPAProcessorException(e, HttpStatusCode.BAD_REQUEST); } return values; } JPARequestLinkImpl(final JPAAssociationPath path, final String bindingLink, final JPAConversionHelper helper); @Override JPAEntityType getEntityType(); @Override Map<String, Object> getRelatedKeys(); @Override Map<String, Object> getValues();  }