public class SelectDeParser extends java.lang.Object implements SelectVisitor, OrderByVisitor, SelectItemVisitor, FromItemVisitor
Select
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuffer |
buffer |
protected ExpressionVisitor |
expressionVisitor |
Constructor and Description |
---|
SelectDeParser() |
SelectDeParser(ExpressionVisitor expressionVisitor,
java.lang.StringBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
void |
deparseJoin(Join join) |
void |
deparseLimit(Limit limit) |
void |
deparseOrderBy(java.util.List orderByElements) |
java.lang.StringBuffer |
getBuffer() |
ExpressionVisitor |
getExpressionVisitor() |
void |
setBuffer(java.lang.StringBuffer buffer) |
void |
setExpressionVisitor(ExpressionVisitor visitor) |
void |
visit(AllColumns allColumns) |
void |
visit(AllTableColumns allTableColumns) |
void |
visit(Column column) |
void |
visit(OrderByElement orderBy) |
void |
visit(PlainSelect plainSelect) |
void |
visit(SelectExpressionItem selectExpressionItem) |
void |
visit(SubJoin subjoin) |
void |
visit(SubSelect subSelect) |
void |
visit(Table tableName) |
void |
visit(Union union) |
protected java.lang.StringBuffer buffer
protected ExpressionVisitor expressionVisitor
public SelectDeParser()
public SelectDeParser(ExpressionVisitor expressionVisitor, java.lang.StringBuffer buffer)
expressionVisitor
- a ExpressionVisitor
to de-parse expressions. It has to share the samebuffer
- the buffer that will be filled with the selectpublic void visit(PlainSelect plainSelect)
visit
in interface SelectVisitor
public void visit(Union union)
visit
in interface SelectVisitor
public void visit(OrderByElement orderBy)
visit
in interface OrderByVisitor
public void visit(Column column)
public void visit(AllColumns allColumns)
visit
in interface SelectItemVisitor
public void visit(AllTableColumns allTableColumns)
visit
in interface SelectItemVisitor
public void visit(SelectExpressionItem selectExpressionItem)
visit
in interface SelectItemVisitor
public void visit(SubSelect subSelect)
visit
in interface FromItemVisitor
public void visit(Table tableName)
visit
in interface FromItemVisitor
public void deparseOrderBy(java.util.List orderByElements)
public void deparseLimit(Limit limit)
public java.lang.StringBuffer getBuffer()
public void setBuffer(java.lang.StringBuffer buffer)
public ExpressionVisitor getExpressionVisitor()
public void setExpressionVisitor(ExpressionVisitor visitor)
public void visit(SubJoin subjoin)
visit
in interface FromItemVisitor
public void deparseJoin(Join join)