/** Return the maximum ID; return null if the table is empty. */ public Integer getMaximumId() { JwSqlSelect st = createSelect(); st.selectMaximum(ALIAS, ID); st.from(TABLE, ALIAS); return composeFirstInteger(st); }