@Test public void insertServerGroup() throws Exception { Long id = serverGroupDao.insertServerGroup(serverGroup); System.out.println("insertServerGroup :-------> " + id); Assert.assertTrue(id != null); }
public Long insertServerGroup(ServerGroup serverGroup) throws SQLException { if (serverGroup == null) { return 0L; } this.getDasClient().insert(serverGroup, Hints.hints().setIdBack()); return serverGroup.getId(); }
ServerGroupDao extends BaseDao { public Long insertServerGroup(ServerGroup serverGroup) throws SQLException { if (serverGroup == null) { return 0L; } this.getDasClient().insert(serverGroup, Hints.hints().setIdBack()); return serverGroup.getId(); } }
ServerGroupDao extends BaseDao { public Long insertServerGroup(ServerGroup serverGroup) throws SQLException { if (serverGroup == null) { return 0L; } this.getDasClient().insert(serverGroup, Hints.hints().setIdBack()); return serverGroup.getId(); }  }
ServerGroupDao extends BaseDao { public Long insertServerGroup(ServerGroup serverGroup) throws SQLException { if (serverGroup == null) { return 0L; } this.getDasClient().insert(serverGroup, Hints.hints().setIdBack()); return serverGroup.getId(); }  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 Long insertServerGroup(ServerGroup serverGroup) throws SQLException { if (serverGroup == null) { return 0L; } this.getDasClient().insert(serverGroup, Hints.hints().setIdBack()); return serverGroup.getId(); }  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);  }