Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to get all DAOs available #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bryant1410
Copy link

No description provided.

@greenrobot
Copy link
Owner

Why would you want to expose that?

@greenrobot greenrobot closed this Sep 10, 2015
@bryant1410
Copy link
Author

In order to delete all entities of all types, being independent of which ones exists

@greenrobot
Copy link
Owner

Hmm, will think about it. It would be like reflection to access the metamodel for the app.

@greenrobot greenrobot reopened this Sep 10, 2015
@bryant1410
Copy link
Author

I use it in the following method:

public static void deleteAll() {
    for (AbstractDao<?, ?> dao : getDaoSession().getAllDaos()) {
        dao.deleteAll();
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants