net.sf.letsparty.parser
Class PartExpressionVisitor

java.lang.Object
  extended bynet.sf.letsparty.parser.PartExpressionVisitor
All Implemented Interfaces:
net.sf.jsqlparser.expression.ExpressionVisitor, net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor

public class PartExpressionVisitor
extends java.lang.Object
implements net.sf.jsqlparser.expression.ExpressionVisitor, net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor

Visits the tree of expression to find an array of PartitionedExpressions. There is a PartitionedExpression per partitioned table in partTableVisitor.


Field Summary
private  ColumnAliasVisitor columnAliasVisitor
           
private  ColumnSynonymsVisitor columnSynonymsVisitor
           
private  PartitionedExpression[] currentPartitionedExpressions
           
private  boolean isNot
           
private  boolean isParsingInExpression
           
private  PartTableVisitor partTableVisitor
           
private  net.sf.jsqlparser.expression.Expression tmpLeftExpression
           
private  ValueUtils valueUtils
           
 
Constructor Summary
PartExpressionVisitor(PartTableVisitor partTableVisitor, ColumnSynonymsVisitor columnSynonymsVisitor, ColumnAliasVisitor columnAliasVisitor, int jdbcParIndexStart)
           
 
Method Summary
 void binaryExpression(net.sf.jsqlparser.expression.BinaryExpression binaryExpression, java.lang.Class expressionKind)
           
private  PartitionedExpression[] copyCurrentPartitionedExpressions()
           
 PartitionedExpression[] getResultPartitionedExpressions()
           
private  void resetCurrentPartitionedExpressions()
           
 void visit(net.sf.jsqlparser.expression.operators.arithmetic.Addition addition)
           
 void visit(net.sf.jsqlparser.expression.operators.conditional.AndExpression andExpression)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.Between between)
           
 void visit(net.sf.jsqlparser.schema.Column tableColumn)
           
 void visit(net.sf.jsqlparser.expression.DateValue dateValue)
           
 void visit(net.sf.jsqlparser.expression.operators.arithmetic.Division division)
           
 void visit(net.sf.jsqlparser.expression.DoubleValue numberValue)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.EqualsTo equalsTo)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.ExpressionList expressionList)
           
 void visit(net.sf.jsqlparser.expression.Function function)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.GreaterThan greaterThan)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.GreaterThanEquals greaterThanEquals)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.InExpression inExpression)
           
 void visit(net.sf.jsqlparser.expression.InverseExpression inverseExpression)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.IsNullExpression isNullExpression)
           
 void visit(net.sf.jsqlparser.expression.JdbcParameter jdbcParameter)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.LikeExpression likeExpression)
           
 void visit(net.sf.jsqlparser.expression.LongValue longValue)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.MinorThan minorThan)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.MinorThanEquals minorThanEquals)
           
 void visit(net.sf.jsqlparser.expression.operators.arithmetic.Multiplication multiplication)
           
 void visit(net.sf.jsqlparser.expression.operators.relational.NotEqualsTo notEqualsTo)
           
 void visit(net.sf.jsqlparser.expression.NullValue nullValue)
           
 void visit(net.sf.jsqlparser.expression.operators.conditional.OrExpression orExpression)
           
 void visit(net.sf.jsqlparser.expression.Parenthesis parenthesis)
           
 void visit(net.sf.jsqlparser.expression.StringValue stringValue)
           
 void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
           
 void visit(net.sf.jsqlparser.expression.operators.arithmetic.Subtraction subtraction)
           
 void visit(net.sf.jsqlparser.expression.TimestampValue timestampValue)
           
 void visit(net.sf.jsqlparser.expression.TimeValue timeValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partTableVisitor

private PartTableVisitor partTableVisitor

columnSynonymsVisitor

private ColumnSynonymsVisitor columnSynonymsVisitor

columnAliasVisitor

private ColumnAliasVisitor columnAliasVisitor

currentPartitionedExpressions

private PartitionedExpression[] currentPartitionedExpressions

valueUtils

private ValueUtils valueUtils

isParsingInExpression

private boolean isParsingInExpression

tmpLeftExpression

private net.sf.jsqlparser.expression.Expression tmpLeftExpression

isNot

private boolean isNot
Constructor Detail

PartExpressionVisitor

public PartExpressionVisitor(PartTableVisitor partTableVisitor,
                             ColumnSynonymsVisitor columnSynonymsVisitor,
                             ColumnAliasVisitor columnAliasVisitor,
                             int jdbcParIndexStart)
Method Detail

getResultPartitionedExpressions

public PartitionedExpression[] getResultPartitionedExpressions()

visit

public void visit(net.sf.jsqlparser.expression.operators.arithmetic.Addition addition)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.conditional.AndExpression andExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.Between between)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.arithmetic.Division division)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.EqualsTo equalsTo)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

binaryExpression

public void binaryExpression(net.sf.jsqlparser.expression.BinaryExpression binaryExpression,
                             java.lang.Class expressionKind)

visit

public void visit(net.sf.jsqlparser.expression.Function function)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.GreaterThan greaterThan)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.GreaterThanEquals greaterThanEquals)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.InExpression inExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.InverseExpression inverseExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.IsNullExpression isNullExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.JdbcParameter jdbcParameter)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.LikeExpression likeExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.MinorThan minorThan)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.MinorThanEquals minorThanEquals)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.arithmetic.Multiplication multiplication)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.NotEqualsTo notEqualsTo)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.NullValue nullValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.DoubleValue numberValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.conditional.OrExpression orExpression)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.Parenthesis parenthesis)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.StringValue stringValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.operators.arithmetic.Subtraction subtraction)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.schema.Column tableColumn)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

resetCurrentPartitionedExpressions

private void resetCurrentPartitionedExpressions()

copyCurrentPartitionedExpressions

private PartitionedExpression[] copyCurrentPartitionedExpressions()

visit

public void visit(net.sf.jsqlparser.expression.LongValue longValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

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

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.ExpressionList expressionList)
Specified by:
visit in interface net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor

visit

public void visit(net.sf.jsqlparser.expression.DateValue dateValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.TimestampValue timestampValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor

visit

public void visit(net.sf.jsqlparser.expression.TimeValue timeValue)
Specified by:
visit in interface net.sf.jsqlparser.expression.ExpressionVisitor