com.avaje.ebean.bean
Class ObjectGraphOrigin
java.lang.Object
com.avaje.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 autoFetch can tune each one separately).
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectGraphOrigin
public ObjectGraphOrigin(int queryHash,
CallStack callStack,
String beanType)
getKey
public String getKey()
-
The key includes the queryPlan hash and the callStack hash. This becomes the unique identifier for a query point.
-
-
getBeanType
public String getBeanType()
-
The type of bean the query is fetching.
-
-
getCallStack
public CallStack getCallStack()
-
The call stack involved.
-
-
getFirstStackElement
public String getFirstStackElement()
-
-
toString
public String toString()
-
- Overrides:
toString
in class Object
-
Copyright © 2010. All Rights Reserved.