class GroupService {

    public boolean isNotExistByName(DasGroup group) throws SQLException {
        Long n = groupDao.getCountByName(group.getGroup_name());
        Long i = groupDao.getCountByIdAndName(group.getId(), group.getGroup_name());
        if (n == 0 || (n == 1 && i == 1)) {
            return true;
        }
        return false;
    }

}