net.sf.letsparty.parser
Class ColumnAliasVisitor
java.lang.Object
net.sf.letsparty.parser.ColumnAliasVisitor
- All Implemented Interfaces:
- net.sf.jsqlparser.statement.select.SelectItemVisitor
- public class ColumnAliasVisitor
- extends java.lang.Object
- implements net.sf.jsqlparser.statement.select.SelectItemVisitor
Looks for alias in the select list.
Method Summary |
net.sf.jsqlparser.schema.Column |
getByAlias(java.lang.String alias)
|
net.sf.jsqlparser.schema.Column |
getByAliasOrReturnSameColumn(net.sf.jsqlparser.schema.Column tableColumn)
|
void |
visit(net.sf.jsqlparser.statement.select.AllColumns allColumns)
|
void |
visit(net.sf.jsqlparser.statement.select.AllTableColumns allTableColumns)
|
void |
visit(net.sf.jsqlparser.expression.Function function)
|
void |
visit(net.sf.jsqlparser.statement.select.SelectExpressionItem selectExpressionItem)
|
void |
visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columnsAliasMap
java.util.Map columnsAliasMap
ColumnAliasVisitor
public ColumnAliasVisitor()
getByAlias
public net.sf.jsqlparser.schema.Column getByAlias(java.lang.String alias)
getByAliasOrReturnSameColumn
public net.sf.jsqlparser.schema.Column getByAliasOrReturnSameColumn(net.sf.jsqlparser.schema.Column tableColumn)
visit
public void visit(net.sf.jsqlparser.statement.select.AllColumns allColumns)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.select.SelectItemVisitor
visit
public void visit(net.sf.jsqlparser.statement.select.AllTableColumns allTableColumns)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.select.SelectItemVisitor
visit
public void visit(net.sf.jsqlparser.expression.Function function)
visit
public void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
visit
public void visit(net.sf.jsqlparser.statement.select.SelectExpressionItem selectExpressionItem)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.select.SelectItemVisitor