com.wewebu.ow.csqlc.ast
Class OwFolderPredicate

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

public class OwFolderPredicate
extends OwPredicate

SQL AST node : <in folder> 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

Constructor Summary
OwFolderPredicate(OwCharacterStringLiteral folderId_p, boolean inTree_p, OwFolderPredicateFormat format_p)
           
 
Method Summary
 StringBuilder createPredicateSQLString()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
 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
 

Constructor Detail

OwFolderPredicate

public OwFolderPredicate(OwCharacterStringLiteral folderId_p,
                         boolean inTree_p,
                         OwFolderPredicateFormat format_p)
Parameters:
folderId_p - folder id string terminal value
inTree_p - true for an in tree search folder predicate (egg. IN_TREE(myFoderID))
false for an in folder search folder predicate (egg. IN_FOLDER(myFoderID))
Method Detail

createPredicateSQLString

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

isValid

public boolean isValid()
Returns:
true if the given folder ID is not null and has a length greater than 0
false otherwise

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.