Module io.ebean.api
Package io.ebean.bean

Class ObjectGraphOrigin

java.lang.Object
io.ebean.bean.ObjectGraphOrigin
All Implemented Interfaces:
Serializable

public final class ObjectGraphOrigin extends Object implements Serializable
Represents a "origin" of an ORM object graph. This combines the call stack and query plan hash.

The call stack is included so that the query can have different tuned fetches for each unique call stack. For example, a query to fetch a customer could be called by three different methods and each can be treated as a separate origin point (and autoTune can tune each one separately).

See Also:
  • Constructor Details

    • ObjectGraphOrigin

      public ObjectGraphOrigin(int queryHash, CallOrigin callOrigin, String beanType)
  • Method Details

    • key

      public String key()
      The key includes the queryPlan hash and the callStack hash. This becomes the unique identifier for a query point.
    • beanType

      public String beanType()
      The type of bean the query is fetching.
    • callOrigin

      public CallOrigin callOrigin()
      The call stack involved.
    • top

      public String top()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object