exposed getQueryFlag method in Query, needed by DBWebWar