com.wewebu.ow.csqlc.ast
Class OwQueryStatement

java.lang.Object
  extended by com.wewebu.ow.csqlc.ast.OwQueryStatement

public class OwQueryStatement
extends Object

SQL AST node : <query statement> syntax root 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
OwQueryStatement(OwRepositoryTarget repositoryTarget_p, OwSimpleTable simpleTable_p)
          Constructor
OwQueryStatement(OwRepositoryTarget repositoryTarget_p, OwSimpleTable simpleTable_p, OwOrderByClause orderByClause_p)
          Constructor
 
Method Summary
 void addJoin(OwCorrelatedTableName joinedTableReference_p, OwJoinSpecification joinSpec_p)
           
 StringBuilder createSQLString()
           
 List<OwColumnQualifier> getColumnQualifiers()
           
 OwColumnQualifier getMainTableQualifier()
           
 OwMergeType getMergeType()
           
 Map<String,OwColumnQualifier> getNormalizedQualifiers()
           
 OwSimpleTable getSimpleTable()
           
 String getTargetRepositoryID()
           
 void setNormalizedQualifiers(Set<OwColumnQualifier> qualifiers_p)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OwQueryStatement

public OwQueryStatement(OwRepositoryTarget repositoryTarget_p,
                        OwSimpleTable simpleTable_p)
Constructor

Parameters:
simpleTable_p - the simple table non-terminal , must not be null

OwQueryStatement

public OwQueryStatement(OwRepositoryTarget repositoryTarget_p,
                        OwSimpleTable simpleTable_p,
                        OwOrderByClause orderByClause_p)
Constructor

Parameters:
simpleTable_p - the simple table non-terminal , must not be null
orderByClause_p - the order by non-terminal , can be null
Method Detail

getTargetRepositoryID

public String getTargetRepositoryID()

getMergeType

public OwMergeType getMergeType()

createSQLString

public StringBuilder createSQLString()
Returns:
a StringBuilder filled with the string representation of this non-terminal the order by clause is omitted if null or invalid (see OwOrderByClause.isValid())

getColumnQualifiers

public List<OwColumnQualifier> getColumnQualifiers()

toString

public String toString()
Overrides:
toString in class Object

getMainTableQualifier

public OwColumnQualifier getMainTableQualifier()

addJoin

public void addJoin(OwCorrelatedTableName joinedTableReference_p,
                    OwJoinSpecification joinSpec_p)

setNormalizedQualifiers

public void setNormalizedQualifiers(Set<OwColumnQualifier> qualifiers_p)

getNormalizedQualifiers

public Map<String,OwColumnQualifier> getNormalizedQualifiers()

getSimpleTable

public OwSimpleTable getSimpleTable()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.