Package com.avaje.ebean.config

Examples of com.avaje.ebean.config.AutofetchConfig


   */
  public void setOwner(SpiEbeanServer server, ServerConfig serverConfig) {
    this.server = server;
    this.logging = new DefaultAutoFetchManagerLogging(serverConfig, this);
   
    AutofetchConfig autofetchConfig = serverConfig.getAutofetchConfig();
   
    garbageCollectionOnShutdown = autofetchConfig.isGarbageCollectionOnShutdown();
    queryTuning = autofetchConfig.isQueryTuning();
    queryTuningAddVersion = autofetchConfig.isQueryTuningAddVersion();
    profiling = autofetchConfig.isProfiling();
    profilingMin = autofetchConfig.getProfilingMin();
    profilingBase = autofetchConfig.getProfilingBase();

    setProfilingRate(autofetchConfig.getProfilingRate());
       
    defaultGarbageCollectionWait = (long) autofetchConfig.getGarbageCollectionWait();

    // determine the mode to use when Query.setAutoFetch() was
    // not explicitly set
    mode = autofetchConfig.getMode();

    if (profiling || queryTuning) {
      // log the guts of the autoFetch setup
      String msg = "AutoFetch queryTuning[" + queryTuning + "] profiling[" + profiling
          + "] mode[" + mode + "]  profiling rate[" + profilingRate
View Full Code Here

TOP

Related Classes of com.avaje.ebean.config.AutofetchConfig

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.