DatabaseSetDao extends BaseDao { public int updateDatabaseSet(DatabaseSet dbset) throws SQLException { if (null == dbset || dbset.getId() == null) { return 0; } return this.getDasClient().update(dbset); }  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 updateDatabaseSet() throws Exception { databaseset.setId(235L); databaseset.setClassName("DatabaseSetDaoTest"); int count = databaseSetDao.updateDatabaseSet(databaseset); System.out.println("updateDatabaseSet :-------> " + count); Assert.assertTrue(count > 0); }