@Test public void put() { LideaMethodBO bo = new LideaMethodBO(); bo.setTime(TimeUtil.dateToString(LocalDateTime.now())); bo.setAppName("cabinet-base-server"); bo.setServiceName("com.fcbox.edms.terminal.api.CabinetServiceFacade"); bo.setMethodName("getCabinetInfo"); bo.setCount("100"); bo = lideaMethodDAO.put(bo); System.out.println("=========================================================================================="); System.out.println(JSON.toJSONString(bo)); }
public LideaMethodBO put(LideaMethodBO bo) { Put put = LideaMethodEntry.of(bo); return hbaseTemplate.execute(Const.LIDEA_METHOD_TABLE, (htable) -> { htable.put(put); return bo; }); }
LideaMethodDAO { public LideaMethodBO put(LideaMethodBO bo) { Put put = LideaMethodEntry.of(bo); return hbaseTemplate.execute(Const.LIDEA_METHOD_TABLE, (htable) -> { htable.put(put); return bo; }); } }
LideaMethodDAO { public LideaMethodBO put(LideaMethodBO bo) { Put put = LideaMethodEntry.of(bo); return hbaseTemplate.execute(Const.LIDEA_METHOD_TABLE, (htable) -> { htable.put(put); return bo; }); }  }
LideaMethodDAO { public LideaMethodBO put(LideaMethodBO bo) { Put put = LideaMethodEntry.of(bo); return hbaseTemplate.execute(Const.LIDEA_METHOD_TABLE, (htable) -> { htable.put(put); return bo; }); }  LideaMethodBO put(LideaMethodBO bo); List<LideaMethodBO> scan(LideaMethodReq req); LideaMethodResp get(LideaMethodReq req); }
LideaMethodDAO { public LideaMethodBO put(LideaMethodBO bo) { Put put = LideaMethodEntry.of(bo); return hbaseTemplate.execute(Const.LIDEA_METHOD_TABLE, (htable) -> { htable.put(put); return bo; }); }  LideaMethodBO put(LideaMethodBO bo); List<LideaMethodBO> scan(LideaMethodReq req); LideaMethodResp get(LideaMethodReq req);  }