001package io.ebean.bean;
002
003/**
004 * A call origin for query execution profiling to collect graph use (for query tuning).
005 */
006public interface CallOrigin {
007
008  /**
009   * Return the top element. Typically the top stack element with class and line.
010   */
011  String getTopElement();
012
013  /**
014   * Return the full description of the call origin.
015   */
016  String getFullDescription();
017
018  /**
019   * Compute and return an origin key based on the query hash.
020   */
021  String getOriginKey(int queryHash);
022}