Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo-sqale: added ResultListRowTransformer#finishTransformation
Method is default and empty, so the interface is still "SAM" (single abstract method) interface. Method finishTransformation() is called after all the rows were transformed and it can be extremely useful if some data were collected during the transformation. Example: Previously, if parent object for container was needed, it was obtained immediately (cache map for repeated parents could be used, of course) which meant potentially up to N queries (by OID, sure, which is fast, but you should still shudder when you hear infamous N+1). Now you can just collect all the distinct OID and then loaded in one SELECT ... WHERE oid IN (...) query. Cool, isn't it?
- Loading branch information