com.wewebu.ow.csqlc.ast
Class OwLikePredicate

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.OwFormatPredicate
                      extended by 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

Field Summary
static String LIKE
           
static String NOT
           
static String NOT_LIKE
           
 
Constructor Summary
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
 
Method Summary
protected  StringBuilder createLeftOperand()
           
protected  StringBuilder createRightOperand()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
 boolean isValid()
           
 
Methods inherited from class com.wewebu.ow.csqlc.ast.OwFormatPredicate
createPredicateSQLString
 
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
 

Field Detail

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
Constructor Detail

OwLikePredicate

public OwLikePredicate(OwColumnReference columnReference_p,
                       OwCharacterStringLiteral characterStringLiteral_p,
                       OwPredicateFormat format_p)
Constructor

Parameters:
columnReference_p - the column reference operand, must not be null
characterStringLiteral_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 null
characterStringLiteral_p - the literal operand , must not be null , can be null-valued
negated_p - true for a negated operand (eg. NOT LIKE) false otherwise (eg. LIKE)
Method Detail

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.