net.ontopia.topicmaps.query.impl.rdbms
Class QueryBuilder

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.rdbms.QueryBuilder

public class QueryBuilder
extends java.lang.Object

INTERNAL: Class used to hold context information when building JDO queries from tolog queries.


Field Summary
protected  java.util.Map attributes
           
protected  java.util.Map params
           
protected  QueryBuilder parent
           
protected  QueryProcessor qp
           
protected  TologQuery query
           
static java.util.Map typemap
           
protected  java.util.Set unsupported
           
protected  java.util.Map variables
           
protected  int vncounter
           
 
Method Summary
 void addUnsupportedVariable(Variable var)
           
 JDOValueIF createJDOValue(java.lang.Object argument)
           
 JDOVariable createJDOVariable(java.lang.String prefix, java.lang.Class type)
          INTERNAL: Create a temporary variable.
 java.lang.Class getArgumentType(java.lang.Object argument)
           
 java.lang.Object getAttribute(java.lang.Object attr)
           
 java.lang.String[] getParameterNames()
           
 java.util.Map getParameters()
           
 java.lang.Class getParameterType(java.lang.String name)
           
protected  java.lang.Class getParameterTypeFromParent(java.lang.String name)
           
 java.lang.String getProperty(java.lang.String name)
           
 java.lang.String[] getVariableNames()
           
 java.util.Map getVariables()
           
 java.lang.Class getVariableType(java.lang.String name)
           
protected  java.lang.Class getVariableTypeFromParent(java.lang.String name)
           
 boolean isArgumentOfType(java.lang.Object argument, java.lang.Class type)
           
 boolean isSupportedVariable(Variable var)
           
 void registerJDOOrderBy(JDOQuery jdoquery, boolean aggfunc)
           
 void registerJDOSelect(JDOQuery jdoquery, java.util.Set varnames, boolean aggfunc)
           
 void registerJDOSelectDependent(JDOQuery jdoquery, java.util.Set varnames)
           
 void setAttribute(java.lang.Object attr, java.lang.Object value)
           
 void setParameters(java.util.Map params)
           
 void setVariables(java.util.Map variables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

protected TologQuery query

parent

protected QueryBuilder parent

attributes

protected java.util.Map attributes

vncounter

protected int vncounter

variables

protected java.util.Map variables

params

protected java.util.Map params

qp

protected QueryProcessor qp

unsupported

protected java.util.Set unsupported

typemap

public static java.util.Map typemap
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String name)

getAttribute

public java.lang.Object getAttribute(java.lang.Object attr)

setAttribute

public void setAttribute(java.lang.Object attr,
                         java.lang.Object value)

getVariableType

public java.lang.Class getVariableType(java.lang.String name)

getVariableTypeFromParent

protected java.lang.Class getVariableTypeFromParent(java.lang.String name)

getVariables

public java.util.Map getVariables()

setVariables

public void setVariables(java.util.Map variables)

getVariableNames

public java.lang.String[] getVariableNames()

getParameterType

public java.lang.Class getParameterType(java.lang.String name)

getParameterTypeFromParent

protected java.lang.Class getParameterTypeFromParent(java.lang.String name)

getParameters

public java.util.Map getParameters()

setParameters

public void setParameters(java.util.Map params)

getParameterNames

public java.lang.String[] getParameterNames()

isSupportedVariable

public boolean isSupportedVariable(Variable var)

addUnsupportedVariable

public void addUnsupportedVariable(Variable var)

registerJDOSelect

public void registerJDOSelect(JDOQuery jdoquery,
                              java.util.Set varnames,
                              boolean aggfunc)

registerJDOSelectDependent

public void registerJDOSelectDependent(JDOQuery jdoquery,
                                       java.util.Set varnames)

registerJDOOrderBy

public void registerJDOOrderBy(JDOQuery jdoquery,
                               boolean aggfunc)

createJDOVariable

public JDOVariable createJDOVariable(java.lang.String prefix,
                                     java.lang.Class type)
INTERNAL: Create a temporary variable.


createJDOValue

public JDOValueIF createJDOValue(java.lang.Object argument)

isArgumentOfType

public boolean isArgumentOfType(java.lang.Object argument,
                                java.lang.Class type)

getArgumentType

public java.lang.Class getArgumentType(java.lang.Object argument)


Copyright © 2000-2012 Ontopia.