Criteria.iterate() and Criteria.getQueryString()

Description

1 Criteria does not have iterate() method, so it can not pull object from cache

2 Criteria does not have a method to get the query string it constructs

when i use Query class, i can do this:
give me the query string, for example "select foo from Foo foo",
i can construct a new query "select count(foo) from Foo foo" automaticlly to find out the record count, i think this is useful.

Environment

None

Assignee

Unassigned

Reporter

YeHuisheng

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Major
Configure