@Test public void getServerGroupById() throws Exception { ServerGroup serverGroup = serverGroupDao.getServerGroupById(1L); System.out.println("getServerGroupById :-------> " + serverGroup); Assert.assertTrue(serverGroup != null); }
public ServerGroup getServerGroupById(Long id) throws SQLException { ServerGroup serverGroup = new ServerGroup(); serverGroup.setId(id); return this.getDasClient().queryByPk(serverGroup); }
ServerGroupDao extends BaseDao { public ServerGroup getServerGroupById(Long id) throws SQLException { ServerGroup serverGroup = new ServerGroup(); serverGroup.setId(id); return this.getDasClient().queryByPk(serverGroup); } }
ServerGroupDao extends BaseDao { public ServerGroup getServerGroupById(Long id) throws SQLException { ServerGroup serverGroup = new ServerGroup(); serverGroup.setId(id); return this.getDasClient().queryByPk(serverGroup); }  }
ServerGroupDao extends BaseDao { public ServerGroup getServerGroupById(Long id) throws SQLException { ServerGroup serverGroup = new ServerGroup(); serverGroup.setId(id); return this.getDasClient().queryByPk(serverGroup); }  Long insertServerGroup(ServerGroup serverGroup); ServerGroup getServerGroupById(Long id); List<ServerGroup> getAllServerGroups(); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int updateServerGroup(ServerGroup serverGroup); int deleteServerGroup(ServerGroup serverGroup); int deleteServerGroupAndServerAndServerConfigByServerGroupId(Long serverGroupId); List<Server> serversNoGroup(Integer appGroupId); Long getServerGroupTotalCount(Paging<ServerGroup> paging); List<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging); }
ServerGroupDao extends BaseDao { public ServerGroup getServerGroupById(Long id) throws SQLException { ServerGroup serverGroup = new ServerGroup(); serverGroup.setId(id); return this.getDasClient().queryByPk(serverGroup); }  Long insertServerGroup(ServerGroup serverGroup); ServerGroup getServerGroupById(Long id); List<ServerGroup> getAllServerGroups(); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int updateServerGroup(ServerGroup serverGroup); int deleteServerGroup(ServerGroup serverGroup); int deleteServerGroupAndServerAndServerConfigByServerGroupId(Long serverGroupId); List<Server> serversNoGroup(Integer appGroupId); Long getServerGroupTotalCount(Paging<ServerGroup> paging); List<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging);  }