com.wewebu.ow.csqlc.ast
Class OwLikePredicate
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.OwFormatPredicate
com.wewebu.ow.csqlc.ast.OwLikePredicate
- All Implemented Interfaces:
- OwSearchCondition
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
- Since:
- 3.2.0.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIKE
public static final String LIKE
- See Also:
- Constant Field Values
NOT_LIKE
public static final String NOT_LIKE
- See Also:
- Constant Field Values
NOT
public static final String NOT
- See Also:
- Constant Field Values
OwLikePredicate
public OwLikePredicate(OwColumnReference columnReference_p,
OwCharacterStringLiteral characterStringLiteral_p,
OwPredicateFormat format_p)
- Constructor
- Parameters:
columnReference_p
- the column reference operand, must not be nullcharacterStringLiteral_p
- the literal operand , must not be null , can be null-valued- See Also:
OwLiteral.isNull()
OwLikePredicate
public OwLikePredicate(OwColumnReference columnReference_p,
OwCharacterStringLiteral characterStringLiteral_p,
boolean negated_p,
OwPredicateFormat format_p)
- Constructor
- Parameters:
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)
isValid
public boolean isValid()
- Returns:
true
if character srting literal operand is null-valued- See Also:
OwLiteral.isNull()
getColumnQualifiers
public List<OwColumnQualifier> getColumnQualifiers()
createLeftOperand
protected StringBuilder createLeftOperand()
- Specified by:
createLeftOperand
in class OwFormatPredicate
createRightOperand
protected StringBuilder createRightOperand()
- Specified by:
createRightOperand
in class OwFormatPredicate
Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.