org.xorm.query
Class QueryContext

java.lang.Object
  |
  +--org.xorm.query.QueryContext
Direct Known Subclasses:
BoundExpression

public class QueryContext
extends Object

Represents a Query where parameters have been bound to specific values.


Constructor Summary
QueryContext(Class candidateClass)
           
QueryContext(Class candidateClass, boolean subclasses)
           
 
Method Summary
 void bindParameter(String name, Object value)
           
 void bindVariable(String name, Object value)
           
 Object getCandidate()
           
 Class getCandidateClass()
           
 boolean hasParameter(String name)
           
 Object resolveParameter(String name)
           
 Object resolveVariable(String name)
           
 void setCandidate(Object candidate)
           
 void setMap(Map nameToValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryContext

public QueryContext(Class candidateClass)

QueryContext

public QueryContext(Class candidateClass,
                    boolean subclasses)
Method Detail

setCandidate

public void setCandidate(Object candidate)

getCandidate

public Object getCandidate()

setMap

public void setMap(Map nameToValue)

bindParameter

public void bindParameter(String name,
                          Object value)

resolveParameter

public Object resolveParameter(String name)

hasParameter

public boolean hasParameter(String name)

bindVariable

public void bindVariable(String name,
                         Object value)

resolveVariable

public Object resolveVariable(String name)

getCandidateClass

public Class getCandidateClass()


$Header: /cvsroot/xorm/xorm/docs/api/org/xorm/query/QueryContext.html,v 1.2 2004/05/30 08:55:08 wbiggs Exp $