DatabaseSetDao extends BaseDao { public List<DatabaseSet> getAllDatabaseSetByNames(List<String> names) throws SQLException { DatabaseSet.DatabasesetDefinition databaseset = DatabaseSet.DATABASESET; SqlBuilder builder = SqlBuilder.selectAllFrom(databaseset).where().allOf(databaseset.name.in(names)).into(DatabaseSet.class); return this.getDasClient().query(builder); }  Long insertDatabaseSet(DatabaseSet dbset); int updateDatabaseSet(DatabaseSet dbset); int deleteDatabaseSetById(Long dbsetId); int deleteDatabaseSetEntryByDbsetId(Long dbsetId); DatabaseSet getDatabaseSetById(Long id); DatabaseSet getDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByNames(List<String> names); List<DatabaseSet> getAllDatabaseSetById(Long id); List<DatabaseSetView> getAllDatabaseSetByProjectId(Long projectId); List<DatabaseSet> getAllDatabaseSetByGroupId(Long groupId); DatabaseSetEntry getMasterDatabaseSetEntryByDatabaseSetId(Long dbset_id); Long getDbSetTotalCount(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageList(Paging<DatabaseSet> paging); Long getDbSetTotalCountByAppid(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageListByAppid(Paging<DatabaseSet> paging);  }
@Test public void getAllDatabaseSetByNames() throws Exception { List<String> names = new ArrayList<>(); names.add("test_das"); names.add("sy_test"); names.add("test"); List<DatabaseSet> list = databaseSetDao.getAllDatabaseSetByNames(names); System.out.println("getAllDatabaseSetByName :-------> " + list); Assert.assertTrue(list.size() > 0); }