com.wewebu.ow.csqlc.ast
Class OwComparisonPredicate

java.lang.Object
  extended by com.wewebu.ow.csqlc.ast.OwBooleanTerm
      extended by com.wewebu.ow.csqlc.ast.OwBooleanFactor
          extended by com.wewebu.ow.csqlc.ast.OwBooleanTest
              extended by com.wewebu.ow.csqlc.ast.OwPredicate
                  extended by com.wewebu.ow.csqlc.ast.OwComparisonPredicate
All Implemented Interfaces:
OwSearchCondition

public class OwComparisonPredicate
extends OwPredicate

SQL AST node : <comparison predicate> syntax non-terminal as defined by the SQL grammar.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.2.0.0

Constructor Summary
OwComparisonPredicate(OwValueExpression valueExpression_p, OwComparisonOperator operator_p, OwLiteral literal_p)
           
 
Method Summary
 StringBuilder createPredicateSQLString()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
 boolean isValid()
           
 
Methods inherited from class com.wewebu.ow.csqlc.ast.OwPredicate
createBooleanTestSQLString, isXCondition
 
Methods inherited from class com.wewebu.ow.csqlc.ast.OwBooleanTest
asBooleanTest, createBooleanFactorSQLString
 
Methods inherited from class com.wewebu.ow.csqlc.ast.OwBooleanFactor
createBooleanTermSQLString
 
Methods inherited from class com.wewebu.ow.csqlc.ast.OwBooleanTerm
createSearchConditionSQLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwComparisonPredicate

public OwComparisonPredicate(OwValueExpression valueExpression_p,
                             OwComparisonOperator operator_p,
                             OwLiteral literal_p)
Parameters:
valueExpression_p - the value expression of this comparison terminal (left side operand)
operator_p - the operator of this predicate
literal_p - the literal terminal of this comparison prdicate
Method Detail

createPredicateSQLString

public StringBuilder createPredicateSQLString()
Specified by:
createPredicateSQLString in class OwPredicate
Returns:
a StringBuilder filled with the string representation of this non-terminal

isValid

public boolean isValid()
Returns:
false if the literal terminal of this predicate is null-valued true otherwise
See Also:
OwLiteral.isNull()

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.