java.lang.Object
io.ebean.bean.CallStack
- All Implemented Interfaces:
CallOrigin,Serializable
Represent the call stack (stack trace elements).
Used with a query to identify a CallStackQuery for AutoTune automatic query tuning.
This is used so that a single query called from different methods can be tuned for each different call stack.
Note the call stack is trimmed to remove the common ebean internal elements.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the call stack lines appended with the given newLine string.getOriginKey(int queryHash) Compute and return an origin key based on the query hash.Return the first element of the call stack.inthashCode()toString()
-
Constructor Details
-
CallStack
-
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
getTopElement
Return the first element of the call stack.- Specified by:
getTopElementin interfaceCallOrigin
-
getFullDescription
Return the call stack lines appended with the given newLine string.- Specified by:
getFullDescriptionin interfaceCallOrigin
-
getOriginKey
Description copied from interface:CallOriginCompute and return an origin key based on the query hash.- Specified by:
getOriginKeyin interfaceCallOrigin
-