com.sun.ebxml.registry.query.filter
Class QueryProcessor

java.lang.Object
  |
  +--com.sun.ebxml.registry.query.filter.QueryProcessor
All Implemented Interfaces:
SQLConverter
Direct Known Subclasses:
RegistryObjectQueryProcessor

public abstract class QueryProcessor
extends java.lang.Object
implements SQLConverter

Class Declaration for QueryProcessor

Author:
Nikola Stojanovic
See Also:

Field Summary
protected  ClauseHandler clauseHandler
           
protected  FilterProcessor filterProcessor
           
protected  org.oasis.ebxml.registry.bindings.query.RegistryObjectQueryType nativeQuery
           
protected  java.lang.String sqlQuery
           
protected  java.lang.String whereClause
           
 
Constructor Summary
QueryProcessor()
           
 
Method Summary
 java.lang.String addWhereClause(java.lang.String whereClause, java.lang.Object query)
           
protected abstract  void buildBranchClauses()
           
protected abstract  void buildFilterClauses()
           
protected  void buildForeignWhereClause(org.oasis.ebxml.registry.bindings.query.FilterType foreignFilter)
           
protected  void buildNativeWhereClause(org.oasis.ebxml.registry.bindings.query.FilterType nativeFilter)
           
protected abstract  void buildQueryClauses()
           
 java.lang.String convertToSQL(java.lang.Object obj)
          Convert the specified Object obj to an equivalent SQL query string.
protected abstract  java.lang.String getName()
           
protected abstract  void setNativeQuery(org.oasis.ebxml.registry.bindings.query.RegistryObjectQueryType query)
           
 void setParentJoinColumn(java.lang.String parJoinColumn)
           
 void setSelectColumn(java.lang.String selColumn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filterProcessor

protected FilterProcessor filterProcessor

clauseHandler

protected ClauseHandler clauseHandler

sqlQuery

protected java.lang.String sqlQuery

whereClause

protected java.lang.String whereClause

nativeQuery

protected org.oasis.ebxml.registry.bindings.query.RegistryObjectQueryType nativeQuery
Constructor Detail

QueryProcessor

public QueryProcessor()
Method Detail

setNativeQuery

protected abstract void setNativeQuery(org.oasis.ebxml.registry.bindings.query.RegistryObjectQueryType query)

getName

protected abstract java.lang.String getName()

buildFilterClauses

protected abstract void buildFilterClauses()
                                    throws RegistryException
RegistryException

buildQueryClauses

protected abstract void buildQueryClauses()
                                   throws RegistryException
RegistryException

buildBranchClauses

protected abstract void buildBranchClauses()
                                    throws RegistryException
RegistryException

setParentJoinColumn

public void setParentJoinColumn(java.lang.String parJoinColumn)

setSelectColumn

public void setSelectColumn(java.lang.String selColumn)

convertToSQL

public java.lang.String convertToSQL(java.lang.Object obj)
                              throws RegistryException
Convert the specified Object obj to an equivalent SQL query string.

Specified by:
convertToSQL in interface SQLConverter
RegistryException

addWhereClause

public java.lang.String addWhereClause(java.lang.String whereClause,
                                       java.lang.Object query)
                                throws RegistryException
RegistryException

buildNativeWhereClause

protected void buildNativeWhereClause(org.oasis.ebxml.registry.bindings.query.FilterType nativeFilter)
                               throws RegistryException
RegistryException

buildForeignWhereClause

protected void buildForeignWhereClause(org.oasis.ebxml.registry.bindings.query.FilterType foreignFilter)
                                throws RegistryException
RegistryException


Copyright © 2001-2003 OASIS. All Rights Reserved.