CAY-1958 SelectById - a new full-featured select query to get objects by id

* support for prefetches