com.wewebu.ow.csqlc.ast
Class OwBetweenPredicate

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.OwBetweenPredicate
All Implemented Interfaces:
OwSearchCondition

public class OwBetweenPredicate
extends OwPredicate

SQL AST node : between predicate implementation.
An aggregated predicate : a greater than and less than search condition composition.
Example :
(value>2123 AND value<7789)
(value<'foo' OR value>'bar') for the negated form (not between).

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
OwBetweenPredicate(OwColumnReference columnReference_p, OwLiteral value1_p, OwLiteral value2_p)
           
OwBetweenPredicate(OwColumnReference columnReference_p, OwLiteral value1_p, OwLiteral value2_p, boolean negate_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

OwBetweenPredicate

public OwBetweenPredicate(OwColumnReference columnReference_p,
                          OwLiteral value1_p,
                          OwLiteral value2_p)
Parameters:
columnReference_p - the left column reference operand, must not be null
value1_p - first value right operand literal , can be null
value2_p - second value right operand literal , can be null

OwBetweenPredicate

public OwBetweenPredicate(OwColumnReference columnReference_p,
                          OwLiteral value1_p,
                          OwLiteral value2_p,
                          boolean negate_p)
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:
true if both right operand values are not null and not null-valued
false otherwise
See Also:
OwLiteral.isNull()

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.