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
Constructor and Description |
---|
OwBetweenPredicate(OwColumnReference columnReference_p,
OwLiteral value1_p,
OwLiteral value2_p) |
OwBetweenPredicate(OwColumnReference columnReference_p,
OwLiteral value1_p,
OwLiteral value2_p,
boolean negate_p) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
createPredicateSQLString() |
List<OwColumnQualifier> |
getColumnQualifiers() |
boolean |
isValid() |
createBooleanTestSQLString, isXCondition
asBooleanTest, createBooleanFactorSQLString
createBooleanTermSQLString
createSearchConditionSQLString
public OwBetweenPredicate(OwColumnReference columnReference_p, OwLiteral value1_p, OwLiteral value2_p)
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 nullpublic OwBetweenPredicate(OwColumnReference columnReference_p, OwLiteral value1_p, OwLiteral value2_p, boolean negate_p)
public StringBuilder createPredicateSQLString()
createPredicateSQLString
in class OwPredicate
StringBuilder
filled with the string representation of this non-terminalpublic boolean isValid()
true
if both right operand values are not null and not null-valuedfalse
otherwiseOwLiteral.isNull()
public List<OwColumnQualifier> getColumnQualifiers()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.