package de.linwave.gtm.spring.info;
import org.odbms.ObjectContainer;
import org.odbms.ObjectSet;
import org.odbms.Query;
import de.linwave.gtm.GTM;
import de.linwave.gtm.spring.server.Info;
public class QueryInfo
{
static final ObjectContainer db = GTM.getInstance();
void query()
{
Query q1 = db.query(Info.class);
ObjectSet<Info> entries = q1.execute();
int cnt = 0;
for (Info info : entries) {
cnt++;
System.out.println(cnt + " " + info);
}
q1.printConstraintInfo();
db.printCacheStatistics();
}
public static void main(String[] args)
{
QueryInfo info = new QueryInfo();
info.query();
}
}