public class OwLikePredicate extends OwFormatPredicate
SQL AST node : <like 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
Modifier and Type | Field and Description |
---|---|
static String |
LIKE |
static String |
NOT |
static String |
NOT_LIKE |
Constructor and Description |
---|
OwLikePredicate(OwColumnReference columnReference_p,
OwCharacterStringLiteral characterStringLiteral_p,
boolean negated_p,
OwPredicateFormat format_p)
Constructor
|
OwLikePredicate(OwColumnReference columnReference_p,
OwCharacterStringLiteral characterStringLiteral_p,
OwPredicateFormat format_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected StringBuilder |
createLeftOperand() |
protected StringBuilder |
createRightOperand() |
List<OwColumnQualifier> |
getColumnQualifiers() |
boolean |
isValid() |
createPredicateSQLString
createBooleanTestSQLString, isXCondition
asBooleanTest, createBooleanFactorSQLString
createBooleanTermSQLString
createSearchConditionSQLString
public static final String LIKE
public static final String NOT_LIKE
public static final String NOT
public OwLikePredicate(OwColumnReference columnReference_p, OwCharacterStringLiteral characterStringLiteral_p, OwPredicateFormat format_p)
columnReference_p
- the column reference operand, must not be nullcharacterStringLiteral_p
- the literal operand , must not be null , can be null-valuedOwLiteral.isNull()
public OwLikePredicate(OwColumnReference columnReference_p, OwCharacterStringLiteral characterStringLiteral_p, boolean negated_p, OwPredicateFormat format_p)
columnReference_p
- the column reference operand, must not be nullcharacterStringLiteral_p
- the literal operand , must not be null , can be null-valuednegated_p
- true
for a negated operand (eg. NOT LIKE)
false
otherwise (eg. LIKE)public boolean isValid()
true
if character srting literal operand is null-valuedOwLiteral.isNull()
public List<OwColumnQualifier> getColumnQualifiers()
protected StringBuilder createLeftOperand()
createLeftOperand
in class OwFormatPredicate
protected StringBuilder createRightOperand()
createRightOperand
in class OwFormatPredicate
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.