class DatabaseSetDao extends BaseDao {

    public DatabaseSetEntry getMasterDatabaseSetEntryByDatabaseSetId(Long dbset_id) throws SQLException {
        String sql = "SELECT en.id, en.name, en.database_type, en.sharding, en.db_Id, en.dbset_id, en.update_user_no, en.update_time " +
                "FROM databasesetentry as en " +
                "WHERE en.database_type = 1 and en.dbset_id = ? limit 1";
        List<DatabaseSetEntry> list = this.queryBySql(sql, DatabaseSetEntry.class, Parameter.integerOf(StringUtils.EMPTY, dbset_id));
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}