Package com.avaje.ebean.meta

Examples of com.avaje.ebean.meta.MetaInfoManager


   
    ResetBasicData.reset();
   
    EbeanServer server = Ebean.getServer(null);
   
    MetaInfoManager infoManager = server.getMetaInfoManager();
   
   
    server.find(Order.class).findRowCount();
   
    infoManager.collectNodeStatistics(true);
    infoManager.collectQueryPlanStatistics(true);

    runFindOrderQuery(server);
    runFindCustomerQuery(server);

    System.out.println("============================================================");

    List<MetaObjectGraphNodeStats> nodeStatistics = infoManager.collectNodeStatistics(true);
    for (MetaObjectGraphNodeStats stat : nodeStatistics) {
      System.out.println("-----------");
      System.out.println(stat);
    }

    System.out.println("============================================================");
   
    List<MetaQueryPlanStatistic> planStatistics = infoManager.collectQueryPlanStatistics(true);
    for (MetaQueryPlanStatistic planStatistic : planStatistics) {
      System.out.println("------------");
      System.out.println(planStatistic);
      System.out.println(planStatistic.getSql());
    }
View Full Code Here

TOP

Related Classes of com.avaje.ebean.meta.MetaInfoManager

Copyright © 2018 www.massapicom. 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.