Method fetchAllByType added.