com.wewebu.ow.csqlc.ast
Class OwTextSearchPredicate
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.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentJoinedColumn
protected OwColumnQualifier contentJoinedColumn
columnReference
protected OwColumnReference columnReference
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)
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.