org.cloudgraph.rdb.filter
Class FilterAssembler

java.lang.Object
  extended by org.plasma.query.visitor.DefaultQueryVisitor
      extended by org.plasma.sdo.access.provider.common.TextQueryFilterAssembler
          extended by org.plasma.sdo.access.provider.common.SQLQueryFilterAssembler
              extended by org.cloudgraph.rdb.filter.FilterAssembler
All Implemented Interfaces:
org.plasma.query.model.QueryConstants, org.plasma.query.visitor.QueryVisitor, org.plasma.sdo.access.model.EntityConstants

public class FilterAssembler
extends org.plasma.sdo.access.provider.common.SQLQueryFilterAssembler
implements org.plasma.query.model.QueryConstants, org.plasma.sdo.access.model.EntityConstants


Field Summary
 
Fields inherited from class org.plasma.sdo.access.provider.common.SQLQueryFilterAssembler
ALIAS_PREFIX, contextRelationalOperator, contextWildcardOperator, stringType
 
Fields inherited from class org.plasma.sdo.access.provider.common.TextQueryFilterAssembler
contextProperty, contextType, filter, params
 
Fields inherited from interface org.plasma.query.model.QueryConstants
FREE_TEXT_SELECT_DECLARATION_DELIMITER_REGEXP, FREE_TEXT_SELECT_PATH_DELIMITER_REGEXP, MAX_RESULTS, MAX_WILDCARDS, PATH_DELIMITER, WILDCARD
 
Fields inherited from interface org.plasma.sdo.access.model.EntityConstants
DATA_ACCESS_CLASS_MEMBER_MULTI_VALUED_SUFFIX, DATA_ACCESS_CLASS_MEMBER_PREFIX, DATA_ACCESS_DECLARATION_DELIMITER, DATA_ACCESS_TRAVERSAL_PATH_DELIMITER, JAVAX_JDO_OPTION_CONNECTIONDRIVERNAME, JAVAX_JDO_OPTION_CONNECTIONFACTORYNAME, JAVAX_JDO_OPTION_CONNECTIONPASSWORD, JAVAX_JDO_OPTION_CONNECTIONURL, JAVAX_JDO_OPTION_CONNECTIONUSERNAME, JPA_METADATA_INIT_ON_STARTUP
 
Constructor Summary
FilterAssembler(org.plasma.query.model.Where where, commonj.sdo.Type contextType, AliasMap aliasMap)
           
 
Method Summary
protected  void assembleSubquery(org.plasma.query.model.Property property, org.plasma.query.model.SubqueryOperator oper, org.plasma.query.model.Query query)
           
 String getImportDeclarations()
           
 String getParameterDeclarations()
           
 String getVariableDeclarations()
           
 boolean hasImportDeclarations()
           
 boolean hasParameterDeclarations()
           
 boolean hasVariableDeclarations()
           
protected  void log(org.plasma.query.model.Where root)
           
protected  void processWildcardExpression(org.plasma.query.model.Property property, org.plasma.query.model.WildcardOperator oper, org.plasma.query.model.Literal literal)
           
 void start(org.plasma.query.model.Expression expression)
           
 void start(org.plasma.query.model.Property property)
          Handles a property query node, traversing the property path appending SQL 'AND' expressions based on key relationships until the property endpoint is reached.
 
Methods inherited from class org.plasma.sdo.access.provider.common.SQLQueryFilterAssembler
start, start, start, start, start
 
Methods inherited from class org.plasma.sdo.access.provider.common.TextQueryFilterAssembler
filterTokens, getFilter, getParams, hasWildcard, start
 
Methods inherited from class org.plasma.query.visitor.DefaultQueryVisitor
end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, end, getContext, start, start, start, start, start, start, start, start, start, start, start, start, start, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterAssembler

public FilterAssembler(org.plasma.query.model.Where where,
                       commonj.sdo.Type contextType,
                       AliasMap aliasMap)
Method Detail

getVariableDeclarations

public String getVariableDeclarations()

hasVariableDeclarations

public boolean hasVariableDeclarations()

getImportDeclarations

public String getImportDeclarations()

hasImportDeclarations

public boolean hasImportDeclarations()

getParameterDeclarations

public String getParameterDeclarations()

hasParameterDeclarations

public boolean hasParameterDeclarations()

start

public void start(org.plasma.query.model.Expression expression)
Specified by:
start in interface org.plasma.query.visitor.QueryVisitor
Overrides:
start in class org.plasma.sdo.access.provider.common.TextQueryFilterAssembler

assembleSubquery

protected void assembleSubquery(org.plasma.query.model.Property property,
                                org.plasma.query.model.SubqueryOperator oper,
                                org.plasma.query.model.Query query)
Specified by:
assembleSubquery in class org.plasma.sdo.access.provider.common.TextQueryFilterAssembler

processWildcardExpression

protected void processWildcardExpression(org.plasma.query.model.Property property,
                                         org.plasma.query.model.WildcardOperator oper,
                                         org.plasma.query.model.Literal literal)
Specified by:
processWildcardExpression in class org.plasma.sdo.access.provider.common.TextQueryFilterAssembler

start

public void start(org.plasma.query.model.Property property)
Handles a property query node, traversing the property path appending SQL 'AND' expressions based on key relationships until the property endpoint is reached. Superclass handlers deal with other query nodes such as operators and literals.

Specified by:
start in interface org.plasma.query.visitor.QueryVisitor
Overrides:
start in class org.plasma.query.visitor.DefaultQueryVisitor

log

protected void log(org.plasma.query.model.Where root)


Copyright © 2014. All rights reserved.