|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xorm.query.AbstractQueryLanguage
Implementation of QueryLanguage interface that provides common methods to set and get variables and parameters.
Field Summary | |
protected Class |
clazz
|
protected LinkedHashMap |
paramNameToType
|
protected HashMap |
varNameToType
|
Fields inherited from interface org.xorm.query.QueryLanguage |
LANGUAGE |
Constructor Summary | |
AbstractQueryLanguage()
|
Method Summary | |
void |
addOrdering(QueryOrdering ordering)
|
abstract void |
compile()
A hint that the implementation should undertake the work of generating the Expression object now for future use. |
void |
declareParameter(String name,
Class type)
|
void |
declareVariable(String name,
Class type)
|
Class |
getCandidateClass()
Gets the class of candidate instances for the query. |
abstract Expression |
getExpression()
Returns the query expression generated by this object. |
QueryOrdering[] |
getOrdering()
Gets the ordering that should be used in returning the values. |
List |
getParameterNames()
Guaranteed to come out in the same order they went in. |
Class |
getParameterType(String name)
|
Set |
getVariableNames()
|
Class |
getVariableType(String name)
|
void |
setClass(Class clazz)
|
abstract void |
setFilter(Object filter)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Class clazz
protected LinkedHashMap paramNameToType
protected HashMap varNameToType
Constructor Detail |
public AbstractQueryLanguage()
Method Detail |
public abstract Expression getExpression()
QueryLanguage
getExpression
in interface QueryLanguage
public abstract void compile() throws QuerySyntaxException
QueryLanguage
compile
in interface QueryLanguage
QuerySyntaxException
public abstract void setFilter(Object filter)
public void setClass(Class clazz)
public Class getCandidateClass()
QueryLanguage
getCandidateClass
in interface QueryLanguage
public void declareVariable(String name, Class type)
public void declareParameter(String name, Class type)
public List getParameterNames()
public Class getParameterType(String name)
public Set getVariableNames()
public Class getVariableType(String name)
public String toString()
toString
in class Object
public QueryOrdering[] getOrdering()
QueryLanguage
getOrdering
in interface QueryLanguage
public void addOrdering(QueryOrdering ordering)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |