我正在使用greendao的android项目,并想知道如何正确删除和从数据库和会话缓存对象。目前我做了以下从DB删除:greendao删除数据库和会话
ChatDao chatDao = daoSession.getChatDao();
chatDao.queryBuilder().buildDelete().executeDeleteWithoutDetachingEntities();
但是作为方法的名称和文件状态,这可能留在会话缓存过时对象,我怎么可以从那里将它删除的对象?
我不能删除特定实体的缓存对象而不是所有缓存的对象吗?例如,做这样的事情:** ChatDao.clear()**? – Leeeeeeelo 2013-02-14 09:24:59