How get all entity from datasource

Hi

I need to get all entity for datasource. My datasource has set type “datasource” in xlm. I code I create datasource like below

Datasource ds = (Datasource)getDsContext().getNN("documentSpecyficationDs");

but ds hasn’t got any method for get all entity.

com.haulmont.cuba.gui.data.Datasource#getItem method returns the entity.