net.sf.letsparty.parser
Class PartTableVisitor

java.lang.Object
  extended bynet.sf.letsparty.parser.PartTableVisitor
All Implemented Interfaces:
net.sf.jsqlparser.statement.select.FromItemVisitor, net.sf.jsqlparser.statement.select.SelectVisitor

public class PartTableVisitor
extends java.lang.Object
implements net.sf.jsqlparser.statement.select.SelectVisitor, net.sf.jsqlparser.statement.select.FromItemVisitor

Finds partitioned tables (and aliases) in select statements.


Field Summary
private  java.util.List aliases
           
private  Configuration configuration
           
private  boolean isOuter
           
private  java.util.List partitionedTablesInStatement
           
 
Constructor Summary
PartTableVisitor(Configuration configuration)
           
 
Method Summary
private  void addPartitionedTableInStatement(java.lang.String alias, PartitionedTableInStatement partitionedTableInStatement)
           
 PartitionedColumn getPartitionedColumn(net.sf.jsqlparser.schema.Column tableColumn)
           
 PartitionedColumn getPartitionedColumn(java.lang.String tableAlias, net.sf.jsqlparser.schema.Column tableColumn)
           
 PartitionedTable getPartitionedTable(int index)
           
 PartitionedTable getPartitionedTable(java.lang.String alias)
           
 int getPartitionedTableIndex(PartitionedTable partitionedTable)
           
 int getPartitionedTableIndex(java.lang.String alias)
           
 java.util.List getPartitionedTablesInStatement()
           
 void visit(net.sf.jsqlparser.statement.select.PlainSelect plainSelect)
           
 void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
           
 void visit(net.sf.jsqlparser.schema.Table tableName)
           
 void visit(net.sf.jsqlparser.statement.select.Union union)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

private Configuration configuration

isOuter

private boolean isOuter

partitionedTablesInStatement

private java.util.List partitionedTablesInStatement

aliases

private java.util.List aliases
Constructor Detail

PartTableVisitor

public PartTableVisitor(Configuration configuration)
Method Detail

addPartitionedTableInStatement

private void addPartitionedTableInStatement(java.lang.String alias,
                                            PartitionedTableInStatement partitionedTableInStatement)

getPartitionedTable

public PartitionedTable getPartitionedTable(java.lang.String alias)

getPartitionedTable

public PartitionedTable getPartitionedTable(int index)

getPartitionedTableIndex

public int getPartitionedTableIndex(java.lang.String alias)

getPartitionedTableIndex

public int getPartitionedTableIndex(PartitionedTable partitionedTable)

getPartitionedTablesInStatement

public java.util.List getPartitionedTablesInStatement()

getPartitionedColumn

public PartitionedColumn getPartitionedColumn(net.sf.jsqlparser.schema.Column tableColumn)

getPartitionedColumn

public PartitionedColumn getPartitionedColumn(java.lang.String tableAlias,
                                              net.sf.jsqlparser.schema.Column tableColumn)

visit

public void visit(net.sf.jsqlparser.statement.select.PlainSelect plainSelect)
Specified by:
visit in interface net.sf.jsqlparser.statement.select.SelectVisitor

visit

public void visit(net.sf.jsqlparser.statement.select.Union union)
Specified by:
visit in interface net.sf.jsqlparser.statement.select.SelectVisitor

visit

public void visit(net.sf.jsqlparser.schema.Table tableName)
Specified by:
visit in interface net.sf.jsqlparser.statement.select.FromItemVisitor

visit

public void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
Specified by:
visit in interface net.sf.jsqlparser.statement.select.FromItemVisitor