com.avaje.ebean.bean
Class CallStack

java.lang.Object
  extended by com.avaje.ebean.bean.CallStack
All Implemented Interfaces:
Serializable

public final class CallStack
extends Object
implements Serializable

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.

See Also:
Serialized Form

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

CallStack

public CallStack(StackTraceElement[] callStack)
Method Detail

getFirstStackTraceElement

public StackTraceElement getFirstStackTraceElement()
Return the first element of the call stack.


getCallStack

public StackTraceElement[] getCallStack()
Return the call stack.


getZeroHash

public String getZeroHash()
Return the hash for the first stack element.


getPathHash

public String getPathHash()
Return the hash for the stack elements (excluding first stack element).


toString

public String toString()
Overrides:
toString in class Object

getOriginKey

public String getOriginKey(int queryHash)

enc

public static String enc(int i)
Convert the integer to unsigned base 64.



Copyright © 2010. All Rights Reserved.