All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.config.SlowQueryEvent Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebean.config;

import io.ebean.ProfileLocation;
import io.ebean.bean.ObjectGraphNode;

import java.util.List;

/**
 * The data for the slow query.
 */
public interface SlowQueryEvent {

  /**
   * Return the SQL for the slow query.
   */
  String getSql();

  /**
   * Return the execution time in millis.
   */
  long getTimeMillis();

  /**
   * Return the total row count associated with the query.
   */
  int getRowCount();

  /**
   * Return the origin point for the root query.
   * 

* Typically the originNode.getOriginQueryPoint().getFirstStackElement() provides the stack line that * shows the code that invoked the query. *

*/ ObjectGraphNode getOriginNode(); /** * Return the bind parameters. */ List getBindParams(); /** * Return the label. */ String getLabel(); /** * Return the profile location. */ ProfileLocation getProfileLocation(); }