org.axiondb.engine.visitors
Class ResolveSelectableVisitor

java.lang.Object
  extended by org.axiondb.engine.visitors.ResolveSelectableVisitor

public class ResolveSelectableVisitor
extends Object

Resolves a (@link Selectable) for a given (@link Database)


Constructor Summary
ResolveSelectableVisitor(Database db)
           
 
Method Summary
 Selectable visit(ColumnIdentifier column, List selected, TableIdentifier[] tables)
           
 Selectable visit(FunctionIdentifier fn, List selected, TableIdentifier[] tables)
           
 Selectable visit(Selectable selectable, List selected, TableIdentifier[] tables)
          "Resolve" the given Selectablerelative to the given list of tables, converting aliased or relative references into absolute ones.
 Selectable visit(SubSelectCommand select, TableIdentifier[] tables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolveSelectableVisitor

public ResolveSelectableVisitor(Database db)
Method Detail

visit

public Selectable visit(ColumnIdentifier column,
                        List selected,
                        TableIdentifier[] tables)
                 throws AxionException
Throws:
AxionException

visit

public Selectable visit(FunctionIdentifier fn,
                        List selected,
                        TableIdentifier[] tables)
                 throws AxionException
Throws:
AxionException

visit

public Selectable visit(Selectable selectable,
                        List selected,
                        TableIdentifier[] tables)
                 throws AxionException
"Resolve" the given Selectablerelative to the given list of tables, converting aliased or relative references into absolute ones.

Throws:
AxionException

visit

public Selectable visit(SubSelectCommand select,
                        TableIdentifier[] tables)
                 throws AxionException
Throws:
AxionException