@Test public void testFindByClusterIds() { List<DcClusterTbl> result = dcClusterService.findByClusterIds(Lists.newArrayList(101L)); Assert.assertNotNull(result); Assert.assertEquals(101L, result.get(0).getClusterId()); }
@Override public List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds) { return queryHandler.handleQuery(new DalQuery<List<DcClusterTbl>>() { @Override public List<DcClusterTbl> doQuery() throws DalException { return dao.findByClusterIds(clusterIds, DcClusterTblEntity.READSET_FULL_WITH_DC); } }); }
DcClusterServiceImpl extends AbstractConsoleService<DcClusterTblDao> implements DcClusterService { @Override public List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds) { return queryHandler.handleQuery(new DalQuery<List<DcClusterTbl>>() { @Override public List<DcClusterTbl> doQuery() throws DalException { return dao.findByClusterIds(clusterIds, DcClusterTblEntity.READSET_FULL_WITH_DC); } }); } }
DcClusterServiceImpl extends AbstractConsoleService<DcClusterTblDao> implements DcClusterService { @Override public List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds) { return queryHandler.handleQuery(new DalQuery<List<DcClusterTbl>>() { @Override public List<DcClusterTbl> doQuery() throws DalException { return dao.findByClusterIds(clusterIds, DcClusterTblEntity.READSET_FULL_WITH_DC); } }); }  }
DcClusterServiceImpl extends AbstractConsoleService<DcClusterTblDao> implements DcClusterService { @Override public List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds) { return queryHandler.handleQuery(new DalQuery<List<DcClusterTbl>>() { @Override public List<DcClusterTbl> doQuery() throws DalException { return dao.findByClusterIds(clusterIds, DcClusterTblEntity.READSET_FULL_WITH_DC); } }); }  @Override DcClusterTbl find(final long dcId, final long clusterId); @Override DcClusterTbl find(final String dcName, final String clusterName); @Override DcClusterTbl addDcCluster(String dcName, String clusterName); @Override List<DcClusterTbl> findAllDcClusters(); @Override List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds); @Override List<DcClusterTbl> findAllByDcId(final long dcId); @Override List<DcClusterTbl> findClusterRelated(long clusterId); }
DcClusterServiceImpl extends AbstractConsoleService<DcClusterTblDao> implements DcClusterService { @Override public List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds) { return queryHandler.handleQuery(new DalQuery<List<DcClusterTbl>>() { @Override public List<DcClusterTbl> doQuery() throws DalException { return dao.findByClusterIds(clusterIds, DcClusterTblEntity.READSET_FULL_WITH_DC); } }); }  @Override DcClusterTbl find(final long dcId, final long clusterId); @Override DcClusterTbl find(final String dcName, final String clusterName); @Override DcClusterTbl addDcCluster(String dcName, String clusterName); @Override List<DcClusterTbl> findAllDcClusters(); @Override List<DcClusterTbl> findByClusterIds(final List<Long> clusterIds); @Override List<DcClusterTbl> findAllByDcId(final long dcId); @Override List<DcClusterTbl> findClusterRelated(long clusterId);  }