com.wewebu.ow.csqlc.ast
Class OwBetweenPredicate
java.lang.Object
com.wewebu.ow.csqlc.ast.OwBooleanTerm
com.wewebu.ow.csqlc.ast.OwBooleanFactor
com.wewebu.ow.csqlc.ast.OwBooleanTest
com.wewebu.ow.csqlc.ast.OwPredicate
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwBetweenPredicate
public OwBetweenPredicate(OwColumnReference columnReference_p,
OwLiteral value1_p,
OwLiteral value2_p)
- Parameters:
columnReference_p
- the left column reference operand, must not be nullvalue1_p
- first value right operand literal , can be nullvalue2_p
- second value right operand literal , can be null
OwBetweenPredicate
public OwBetweenPredicate(OwColumnReference columnReference_p,
OwLiteral value1_p,
OwLiteral value2_p,
boolean negate_p)
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.