public int getMaxThreadId() { ThreadDAO dao = new ThreadDAO(); int result = dao.queryCreatedThreadId(); return(result); }