167168169170171172173174175176177
PreparedStatement ps = null; ResultSet rs = null; try { ps = dialect.psForCount(conn, where); rs = ps.executeQuery(); return new NumberHandler().handle(rs).intValue(); } catch (SQLException e) { throw e; } finally { DbUtil.close(rs, ps); }