Package de.linwave.gtm.spring.info

Source Code of de.linwave.gtm.spring.info.QueryInfo

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();
  }
}
TOP

Related Classes of de.linwave.gtm.spring.info.QueryInfo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.