@Test public void insertServer() throws Exception { Long id = serverDao.insertServer(server); System.out.println("insertServer :-------> " + id); Assert.assertTrue(id > 0); }
public Long insertServer(Server server) throws SQLException { if (server == null) { return 0L; } this.getDasClient().insert(server, Hints.hints().setIdBack()); return server.getId(); }
ServerDao extends BaseDao { public Long insertServer(Server server) throws SQLException { if (server == null) { return 0L; } this.getDasClient().insert(server, Hints.hints().setIdBack()); return server.getId(); } }
ServerDao extends BaseDao { public Long insertServer(Server server) throws SQLException { if (server == null) { return 0L; } this.getDasClient().insert(server, Hints.hints().setIdBack()); return server.getId(); }  }
ServerDao extends BaseDao { public Long insertServer(Server server) throws SQLException { if (server == null) { return 0L; } this.getDasClient().insert(server, Hints.hints().setIdBack()); return server.getId(); }  Server getServerById(Long id); Long insertServer(Server server); int updateServer(Server server); int deleteServer(Server server); int deleteServerAndServerConfigByServerId(Long serverId); boolean isNotExistByIpAndPort(Server server); int deleteServerByServerGroupId(Long serverGroupId); int changeServerGroup(long serverId, long serverGroupId); List<Server> getServersByServerGroupId(Long serverGroupId); Long getServerTotalCount(Paging<Server> paging); List<ServerView> findServerPageList(Paging<Server> paging); }
ServerDao extends BaseDao { public Long insertServer(Server server) throws SQLException { if (server == null) { return 0L; } this.getDasClient().insert(server, Hints.hints().setIdBack()); return server.getId(); }  Server getServerById(Long id); Long insertServer(Server server); int updateServer(Server server); int deleteServer(Server server); int deleteServerAndServerConfigByServerId(Long serverId); boolean isNotExistByIpAndPort(Server server); int deleteServerByServerGroupId(Long serverGroupId); int changeServerGroup(long serverId, long serverGroupId); List<Server> getServersByServerGroupId(Long serverGroupId); Long getServerTotalCount(Paging<Server> paging); List<ServerView> findServerPageList(Paging<Server> paging);  }