@Test public void create処理が正常に終了する() { EsIndex index = esClient.idxUser(UNIT_PREFIX, UNIT_USER_NAME); assertNotNull(index); ODataLinkAccessor linkAccessor = new ODataLinkAccessor(index, TYPE_NAME, ROUTING_ID); LinkDocHandler docHandler = createTestLinkDocHandler(); DcIndexResponse response = linkAccessor.create(docHandler); assertNotNull(response); assertFalse(response.getId().equals("")); if (linkAccessor.getAds() != null) { JdbcAds ads = null; try { ads = new JdbcAds(); assertEquals(1, ads.countLink(INDEX_NAME)); } catch (Exception e) { fail(e.getMessage()); } } linkAccessor.delete(docHandler); }
public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final LinkDocHandler docHandler); DcIndexResponse create(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler, long version); DcDeleteResponse delete(final LinkDocHandler docHandler); DcDeleteResponse delete(final LinkDocHandler docHandler, long version); }
ODataLinkAccessor extends DataSourceAccessor { public DcIndexResponse create(final LinkDocHandler docHandler) { String id = DcUUID.randomUUID(); return this.create(id, docHandler); } ODataLinkAccessor(EsIndex index, String name, String routingId); DcIndexResponse create(final LinkDocHandler docHandler); DcIndexResponse create(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler); DcIndexResponse update(String id, LinkDocHandler docHandler, long version); DcDeleteResponse delete(final LinkDocHandler docHandler); DcDeleteResponse delete(final LinkDocHandler docHandler, long version);  }