From d95c96de251bea2744caf67202718674f41f8b8b Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Mon, 10 Aug 2015 13:30:11 -0300 Subject: [PATCH] Add method to get all DAOs available --- DaoCore/src/de/greenrobot/dao/AbstractDaoSession.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DaoCore/src/de/greenrobot/dao/AbstractDaoSession.java b/DaoCore/src/de/greenrobot/dao/AbstractDaoSession.java index 6a37ef2a6..dccae4ccd 100644 --- a/DaoCore/src/de/greenrobot/dao/AbstractDaoSession.java +++ b/DaoCore/src/de/greenrobot/dao/AbstractDaoSession.java @@ -15,6 +15,7 @@ */ package de.greenrobot.dao; +import java.lang.Iterable; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -134,6 +135,10 @@ public QueryBuilder queryBuilder(Class entityClass) { return dao; } + public Iterable> getAllDaos() { + return entityToDao.values(); + } + /** * Run the given Runnable inside a database transaction. If you except a result, consider callInTx. */