class ServerDao extends BaseDao {

    public boolean isNotExistByIpAndPort(Server server) throws SQLException {
        String sql = "select count(1) from server where ip = '" + server.getIp() + "' and port = " + server.getPort();
        return this.getCount(sql) <= 0;
    }

}