|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.bean.CallStack
public final class CallStack
Represent the call stack (stack trace elements).
Used with a query to identify a CallStackQuery for AutoFetch 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.
Constructor Summary | |
---|---|
CallStack(StackTraceElement[] callStack)
|
Method Summary | |
---|---|
static String |
enc(int i)
Convert the integer to unsigned base 64. |
StackTraceElement[] |
getCallStack()
Return the call stack. |
StackTraceElement |
getFirstStackTraceElement()
Return the first element of the call stack. |
String |
getOriginKey(int queryHash)
|
String |
getPathHash()
Return the hash for the stack elements (excluding first stack element). |
String |
getZeroHash()
Return the hash for the first stack element. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CallStack(StackTraceElement[] callStack)
Method Detail |
---|
public StackTraceElement getFirstStackTraceElement()
public StackTraceElement[] getCallStack()
public String getZeroHash()
public String getPathHash()
public String toString()
toString
in class Object
public String getOriginKey(int queryHash)
public static String enc(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |