com.wewebu.ow.csqlc.ast
Class OwANDBooleanTerm

java.lang.Object
  extended by com.wewebu.ow.csqlc.ast.OwBooleanTerm
      extended by com.wewebu.ow.csqlc.ast.OwANDBooleanTerm
All Implemented Interfaces:
OwSearchCondition

public class OwANDBooleanTerm
extends OwBooleanTerm

SQL AST node : AND operator implementation of the <boolean term> 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

Field Summary
static String AND
           
 
Constructor Summary
OwANDBooleanTerm(OwBooleanTerm leftSideTerm_p, OwBooleanFactor rightSideFactor_p)
           
 
Method Summary
 OwBooleanTest asBooleanTest()
           
 StringBuilder createBooleanTermSQLString()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
 boolean isValid()
           
 boolean isXCondition()
           
 
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
 

Field Detail

AND

public static final String AND
See Also:
Constant Field Values
Constructor Detail

OwANDBooleanTerm

public OwANDBooleanTerm(OwBooleanTerm leftSideTerm_p,
                        OwBooleanFactor rightSideFactor_p)
Parameters:
leftSideTerm_p - the left side term of the AND operation
rightSideFactor_p - the right side factor of the AND operation
Method Detail

createBooleanTermSQLString

public StringBuilder createBooleanTermSQLString()
Specified by:
createBooleanTermSQLString in class OwBooleanTerm
Returns:
a StringBuilder filled with the string representation of this non-terminal
invalid operands are omitted

isValid

public boolean isValid()
Returns:
true if either of the operands is valid

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()

isXCondition

public boolean isXCondition()
Returns:
false if this search condition refers other tables than the main FROM clause table true if this search condition refers the main FROM clause table

asBooleanTest

public OwBooleanTest asBooleanTest()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.