@Test public void getAllServerGroups() throws Exception { List<ServerGroup> list = serverGroupDao.getAllServerGroups(); System.out.println("getAllServerGroups :-------> " + list); Assert.assertTrue(list.size() > 0); }
public List<ServerGroup> getAllServerGroups() throws SQLException { ServerGroup.ServerGroupDefinition p = ServerGroup.SERVERGROUP; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(ServerGroup.class); return this.getDasClient().query(builder); }
ServerGroupDao extends BaseDao { public List<ServerGroup> getAllServerGroups() throws SQLException { ServerGroup.ServerGroupDefinition p = ServerGroup.SERVERGROUP; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(ServerGroup.class); return this.getDasClient().query(builder); } }
ServerGroupDao extends BaseDao { public List<ServerGroup> getAllServerGroups() throws SQLException { ServerGroup.ServerGroupDefinition p = ServerGroup.SERVERGROUP; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(ServerGroup.class); return this.getDasClient().query(builder); }  }
ServerGroupDao extends BaseDao { public List<ServerGroup> getAllServerGroups() throws SQLException { ServerGroup.ServerGroupDefinition p = ServerGroup.SERVERGROUP; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(ServerGroup.class); return this.getDasClient().query(builder); }  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 List<ServerGroup> getAllServerGroups() throws SQLException { ServerGroup.ServerGroupDefinition p = ServerGroup.SERVERGROUP; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(ServerGroup.class); return this.getDasClient().query(builder); }  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);  }