net.sf.csutils.core.query.impl
Class XQueryGenerator

java.lang.Object
  extended by net.sf.csutils.core.query.impl.AbstractQueryGenerator
      extended by net.sf.csutils.core.query.impl.XQueryGenerator

public class XQueryGenerator
extends AbstractQueryGenerator

Converts a CSQL query into XQuery.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.csutils.core.query.impl.AbstractQueryGenerator
AbstractQueryGenerator.NamedParameter, AbstractQueryGenerator.NumberedParameter, AbstractQueryGenerator.ObjectTypeInfo, AbstractQueryGenerator.Parameter
 
Field Summary
 
Fields inherited from class net.sf.csutils.core.query.impl.AbstractQueryGenerator
autoParameterNumber, NS_QUERY, parameters, QNAME_ALLTYPES, sb
 
Constructor Summary
XQueryGenerator()
           
 
Method Summary
protected  void parse(java.lang.Boolean pValue)
           
protected  void parse(java.util.Calendar pCalendar)
           
protected  void parse(FunctionCall pFunctionCall)
           
protected  void parse(Identifier pIdentifier)
           
protected  void parse(In pIn)
           
protected  void parse(IsNull pEmpty)
          Checks, whether a value is null.
protected  void parse(Like pLike)
           
protected  void parse(MethodCall pMethodCall)
           
protected  void parse(Negation pNegation)
           
 CsqlStatement parse(ROMetaModel pModel, Statement pQuery)
           
protected  CsqlStatement parse(SelectStatement pQuery)
           
protected  void parse(java.lang.String pValue)
          Adds the given string.
protected  AbstractQueryGenerator.ObjectTypeInfo parseAlias(java.lang.String pPath, java.lang.String pAlias)
           
 
Methods inherited from class net.sf.csutils.core.query.impl.AbstractQueryGenerator
createJoin, findMatchingObjectType, findObjectTypes, getAlias, getModel, getObjectType, getParameters, newObjectTypeInfo, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parseExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryGenerator

public XQueryGenerator()
Method Detail

parse

protected void parse(Negation pNegation)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

protected void parse(java.lang.String pValue)
              throws javax.xml.registry.JAXRException
Adds the given string.

Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException - The string could not be added.

parse

protected void parse(IsNull pEmpty)
              throws javax.xml.registry.JAXRException
Checks, whether a value is null.

Specified by:
parse in class AbstractQueryGenerator
Parameters:
pEmpty - The empty value
Throws:
javax.xml.registry.JAXRException - Could not add the check for emptiness.

parse

protected void parse(java.util.Calendar pCalendar)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException - The calendar could not be added.

parse

protected void parse(java.lang.Boolean pValue)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException - The calendar could not be added.

parse

protected void parse(FunctionCall pFunctionCall)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

protected void parse(MethodCall pMethodCall)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parseAlias

protected AbstractQueryGenerator.ObjectTypeInfo parseAlias(java.lang.String pPath,
                                                           java.lang.String pAlias)
                                                    throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

parse

protected void parse(Like pLike)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

protected void parse(In pIn)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

protected void parse(Identifier pIdentifier)
              throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

protected CsqlStatement parse(SelectStatement pQuery)
                       throws javax.xml.registry.JAXRException
Specified by:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException

parse

public CsqlStatement parse(ROMetaModel pModel,
                           Statement pQuery)
                    throws javax.xml.registry.JAXRException
Overrides:
parse in class AbstractQueryGenerator
Throws:
javax.xml.registry.JAXRException


Copyright © 2009-2010. All Rights Reserved.