net.sf.jsqlparser.util.deparser
Class InsertDeParser

java.lang.Object
  extended by net.sf.jsqlparser.util.deparser.InsertDeParser
All Implemented Interfaces:
ItemsListVisitor

public class InsertDeParser
extends java.lang.Object
implements ItemsListVisitor

A class to de-parse (that is, tranform from JSqlParser hierarchy into a string) an Insert


Field Summary
protected  java.lang.StringBuffer buffer
           
protected  ExpressionVisitor expressionVisitor
           
protected  SelectVisitor selectVisitor
           
 
Constructor Summary
InsertDeParser()
           
InsertDeParser(ExpressionVisitor expressionVisitor, SelectVisitor selectVisitor, java.lang.StringBuffer buffer)
           
 
Method Summary
 void deParse(Insert insert)
           
 java.lang.StringBuffer getBuffer()
           
 ExpressionVisitor getExpressionVisitor()
           
 SelectVisitor getSelectVisitor()
           
 void setBuffer(java.lang.StringBuffer buffer)
           
 void setExpressionVisitor(ExpressionVisitor visitor)
           
 void setSelectVisitor(SelectVisitor visitor)
           
 void visit(ExpressionList expressionList)
           
 void visit(SubSelect subSelect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected java.lang.StringBuffer buffer

expressionVisitor

protected ExpressionVisitor expressionVisitor

selectVisitor

protected SelectVisitor selectVisitor
Constructor Detail

InsertDeParser

public InsertDeParser()

InsertDeParser

public InsertDeParser(ExpressionVisitor expressionVisitor,
                      SelectVisitor selectVisitor,
                      java.lang.StringBuffer buffer)
Parameters:
expressionVisitor - a ExpressionVisitor to de-parse Expressions. It has to share the same
StringBuffer (buffer parameter) as this object in order to work
selectVisitor - a SelectVisitor to de-parse Selects. It has to share the same
StringBuffer (buffer parameter) as this object in order to work
buffer - the buffer that will be filled with the insert
Method Detail

getBuffer

public java.lang.StringBuffer getBuffer()

setBuffer

public void setBuffer(java.lang.StringBuffer buffer)

deParse

public void deParse(Insert insert)

visit

public void visit(ExpressionList expressionList)
Specified by:
visit in interface ItemsListVisitor

visit

public void visit(SubSelect subSelect)
Specified by:
visit in interface ItemsListVisitor

getExpressionVisitor

public ExpressionVisitor getExpressionVisitor()

getSelectVisitor

public SelectVisitor getSelectVisitor()

setExpressionVisitor

public void setExpressionVisitor(ExpressionVisitor visitor)

setSelectVisitor

public void setSelectVisitor(SelectVisitor visitor)