public long selectMaxPostId ( ) throws SQLException { Connection conn = null ; Statement stmt = null ; ResultSet rs = null ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . createStatement ( ) ; rs = stmt . executeQuery ( selectMaxPostIdSQL ) ; return rs . next ( ) ? rs . getLong ( 1 ) : 0L ; } finally { closeQuietly ( conn , stmt , rs ) ; } }
Selects the current maximum post id .