net.sf.csutils.core.query
Class CsqlParser

java.lang.Object
  extended by net.sf.csutils.core.query.CsqlParser

public class CsqlParser
extends java.lang.Object

A parser for HQL statements. Converts HQL into XML query, suitable for querying JAXR objects.


Constructor Summary
CsqlParser(ROMetaModel pModel)
          Creates a new instance with the given meta model, and the CentraSite registry info.
CsqlParser(ROMetaModel pModel, RegistryInfo pRegistryInfo)
          Creates a new instance with the given meta model, and registry info.
 
Method Summary
 CsqlStatement parse(RegistryFacade pFacade, java.lang.String pQuery)
          Parses the given query and converts it into an executable statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsqlParser

public CsqlParser(ROMetaModel pModel,
                  RegistryInfo pRegistryInfo)
Creates a new instance with the given meta model, and registry info.

Parameters:
pModel - The registry object model to use.
pRegistryInfo - The registry info object to use.

CsqlParser

public CsqlParser(ROMetaModel pModel)
Creates a new instance with the given meta model, and the CentraSite registry info.

Parameters:
pModel - The registry object model to use.
Method Detail

parse

public CsqlStatement parse(RegistryFacade pFacade,
                           java.lang.String pQuery)
                    throws javax.xml.registry.JAXRException
Parses the given query and converts it into an executable statement.

Parameters:
pFacade - The registry facade to use.
pQuery - The query string to parse.
Returns:
The parsed query.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.