| java.lang.Object com.versant.core.ejb.query.ResolveContext
ResolveContext | public class ResolveContext (Code) | | Information collected and used during a Node.resolve call (e.g.
identification variables and so on).
|
Inner Class :public static class ParamUsage | |
addIdVar | public void addIdVar(String identifier, NavBase navBase)(Code) | | Add an identification variable for an identifier.
|
checkIdVarDoesNotExist | public void checkIdVarDoesNotExist(String identifier, Node node)(Code) | | Throw a duplicate ID var exception if identifier already exists.
|
checkIdVarExists | public NavBase checkIdVarExists(String identifier, Node node)(Code) | | Get the identification variable for the identifier or throw an
exception if not found.
|
createUserException | public RuntimeException createUserException(String msg, Node node)(Code) | | Throw a user exception of some kind. This is invoked for user errors
in the query (e.g. duplicate identification variables). The node
parameter is used to provide a line and column reference to the
original query string.
|
getFirstParamUsage | public ParamUsage getFirstParamUsage(Object nameOrPosition)(Code) | | Find the first usage of a parameter in the query String. Throws
an exception if none found (should not be possible).
|
getIdVar | public NavBase getIdVar(String identifier)(Code) | | Get the identification variable for the identifier or null if
not found.
|
getParameters | public ParamUsage[] getParameters()(Code) | | Get the parameters used in the query sorted in the order that they
appear. Returns empty array if the query uses no parameters.
|
getRoot | public NavRoot getRoot(int index)(Code) | | Get the root with index.
|
getRootCount | public int getRootCount()(Code) | | Get the number of roots.
|
isUsingPositionalParameters | public boolean isUsingPositionalParameters()(Code) | | Is this query using positional parameters?
|
resolveJoinPath | public NavBase resolveJoinPath(PathNode path, boolean outer, boolean fetch)(Code) | | Resolve a path into a NavField. A new path is created in the tree
starting at the identification variable if necessary.
|
resolveJoinPath | public NavBase resolveJoinPath(PathNode path, boolean outer, boolean fetch, int sz)(Code) | | Resolve a path sz identifiers deep into a NavBase. A new path is
created in the tree starting at the identification variable if
necessary.
|
|
|