private static Struct getUsage(QueryEntry qe) throws PageException {
Query qry = ((QueryEntryImpl)qe).getQry();
QueryColumn c;
DebugQueryColumn dqc;
outer:if(qry!=null) {
Struct usage=null;
Collection.Key[] columnNames = qry.getColumnNames();
Collection.Key columnName;
for(int i=0;i<columnNames.length;i++){
columnName=columnNames[i];
c = qry.getColumn(columnName);
if(!(c instanceof DebugQueryColumn)) break outer;
dqc=(DebugQueryColumn) c;
if(usage==null) usage=new StructImpl();
usage.setEL(columnName, Caster.toBoolean(dqc.isUsed()));
}
return usage;
}
return null;
}