org.caleigo.core.service
Class SQLToolKitPS.CompositeQualifierParser

java.lang.Object
  extended byorg.caleigo.core.service.SQLToolKitPS.CompositeQualifierParser
All Implemented Interfaces:
SQLToolKitPS.IQualifierParser
Enclosing class:
SQLToolKitPS

public static class SQLToolKitPS.CompositeQualifierParser
extends java.lang.Object
implements SQLToolKitPS.IQualifierParser

Parser for CompositeQualifiers. Creates the necessary sql query


Constructor Summary
SQLToolKitPS.CompositeQualifierParser()
           
 
Method Summary
 java.lang.String process(Qualifier qualifier, SQLToolKitPS sql, java.util.ArrayList values)
          Processes the qualifier and creates the necessary SQL query
 java.util.Set stateDescriptorRequirement(Qualifier qualifier, SQLToolKitPS sql)
          States what descriptors are needed for the FROM expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLToolKitPS.CompositeQualifierParser

public SQLToolKitPS.CompositeQualifierParser()
Method Detail

process

public java.lang.String process(Qualifier qualifier,
                                SQLToolKitPS sql,
                                java.util.ArrayList values)
Processes the qualifier and creates the necessary SQL query

Specified by:
process in interface SQLToolKitPS.IQualifierParser
Parameters:
qualifier - The qualifier constituting the condition
sql - The Toolkit containing all data about the conversion
values - An ArrayList with all data needed to be set in the PreparedStatement
Returns:
Returns a string with the sql query

stateDescriptorRequirement

public java.util.Set stateDescriptorRequirement(Qualifier qualifier,
                                                SQLToolKitPS sql)
States what descriptors are needed for the FROM expression

Specified by:
stateDescriptorRequirement in interface SQLToolKitPS.IQualifierParser
Parameters:
qualifier - The qualifier constituting the condition
sql - The toolkit containinig the overall data for the expressionbuilding
Returns:
Returns a set of FieldDescriptor needed to be in the FROM sections of the sql expression.


Copyright © 2005 Caleigo. All Rights Reserved.