com.wewebu.ow.csqlc.ast
Class OwTextSearchPredicate

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.OwTextSearchPredicate
All Implemented Interfaces:
OwSearchCondition

public class OwTextSearchPredicate
extends OwPredicate

SQL AST base node : <content based retrieval> 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
protected  OwColumnReference columnReference
           
protected  OwColumnQualifier contentJoinedColumn
           
 
Constructor Summary
OwTextSearchPredicate(OwCharacterStringLiteral searchExpression_p, OwColumnReference columnReference_p, OwColumnQualifier contentJoinedColumn_p, String dialect_p)
          Constructor for a text search predicate where every parameter can be null, but for a valid predicate at least the search expression should be a non-null and non-empty element.
 
Method Summary
 StringBuilder createPredicateSQLString()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
protected  String getDialect()
          Get the defined dialect, which was provided through constructor.
protected  OwCharacterStringLiteral getSearchExpression()
          Return the current search expression, defined during instantiation.
 boolean isValid()
           
 
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

contentJoinedColumn

protected OwColumnQualifier contentJoinedColumn

columnReference

protected OwColumnReference columnReference
Constructor Detail

OwTextSearchPredicate

public OwTextSearchPredicate(OwCharacterStringLiteral searchExpression_p,
                             OwColumnReference columnReference_p,
                             OwColumnQualifier contentJoinedColumn_p,
                             String dialect_p)
Constructor for a text search predicate where every parameter can be null, but for a valid predicate at least the search expression should be a non-null and non-empty element.

Parameters:
searchExpression_p - OwCharacterStringLiteral (can be null)
columnReference_p - OwColumnReference (can be null)
contentJoinedColumn_p - OwColumnQualifier (can be null)
dialect_p - (can be null)
Method Detail

isValid

public boolean isValid()
Returns:
true if this search condition can produce a valid string representation through OwSearchCondition.createSearchConditionSQLString()
false if this search condition can NOT produce a valid string representation through OwSearchCondition.createSearchConditionSQLString()

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()

createPredicateSQLString

public StringBuilder createPredicateSQLString()
Specified by:
createPredicateSQLString in class OwPredicate
Returns:
a StringBuilder filled with the string representation of this non-terminal

getSearchExpression

protected OwCharacterStringLiteral getSearchExpression()
Return the current search expression, defined during instantiation.

Returns:
OwCharacterStringLiteral or null

getDialect

protected String getDialect()
Get the defined dialect, which was provided through constructor.

Returns:
String or null


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.