ormlite - Android Debug Mode:Is it possible to view raw query or in-built query build by queryBuilder for countOf? -
try { if (cashaction != null) { dao<cashaction, integer> dao = testdb.getinstance(context).getcashactiondao(); long count = dao.querybuilder().setcountof(true).where() .eq(cashaction.local_db_cash_action_id, cashaction.getid()) .and() .isnull(cashaction.status).countof(); return count > 0; } else return false; } catch (sqlexception e) { e.printstacktrace(); return false; }
i using ormlite in android application. i'm querying using querybuilder returns countof(), possible view raw query or in-built query build querybuilder countof in android debug mode?
i don't have lot of experience android logging ormlite has following documentation logging query trace information docs around android logging.
according android docs, following log entries should give want:
adb shell setprop log.tag.statementexecutor verbose adb shell setprop log.tag.basemappedstatement verbose adb shell setprop log.tag.mappedcreate verbose
enabled debugging:
adb shell setprop log.tag.ormlite debug
hope helps.
Comments
Post a Comment