26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_SQLVISITOR_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_SQLVISITOR_H
41 #include <boost/noncopyable.hpp>
72 virtual void visit(
const FromItem& visited);
73 virtual void visit(
const Function& visited);
74 virtual void visit(
const Insert& visited);
75 virtual void visit(
const Join& visited);
79 virtual void visit(
const Literal& visited);
91 virtual void visit(
const Query& visited);
92 virtual void visit(
const Select& visited);
94 virtual void visit(
const SubSelect& visited);
95 virtual void visit(
const In& visited);
96 virtual void visit(
const Cast& visited);
100 virtual void visitDistinct(
const Distinct& visited);
101 virtual void visit(
const Fields& visited);
102 virtual void visit(
const From& visited);
103 virtual void visit(
const GroupBy& visited);
104 virtual void visit(
const OrderBy& visited);
117 #endif // __TERRALIB_DATAACCESS_INTERNAL_SQLVISITOR_H
boost::ptr_vector< GroupByItem > GroupBy
A class that can be used to model a GROUP BY clause.
te::da::SQLDialect * dialect
An abstract class that models a source of data in a query.
A class that models the name of a dataset used in a From clause.
boost::ptr_vector< Expression > Distinct
A class that models a Distinct clause on a query.
virtual ~SQLVisitor()
Virtual destructor.
A class that models the name of any property of an object.
It represents the SQL query dialect accepted by a given data source.
A class that models a Distinct clause on a query.
This class models a bool Literal value.
boost::ptr_vector< OrderByItem > OrderBy
A class that can be used to model an ORDER BY clause.
A visitor interface for the Query hierarchy.
The Insert object can add the return of a select object.
This is an abstract class that models a query expression.
A class that models a literal for Date and Time values.
A visitor interface for the Query hierarchy.
This class models a literal value.
A class that models a literal for ByteArray values.
A condition to be used in a Join clause.
std::string & m_sql
The buffer string where the query will be outputed.
boost::ptr_vector< Field > Fields
Fields is just a boost::ptr_vector of Field pointers.
A class that models a Function expression.
A Join clause combines two FromItems.
A class that models a literal for double values.
A Select models a query to be used when retrieving data from a DataSource.
A class that can be used to model a GROUP BY clause.
boost::ptr_vector< FromItem > From
It models the FROM clause for a query.
A Select can be used as a source of information in another query.
JoinConditionUsing class can be used to model a USING clause in a Join.
A class that can be used to model an ORDER BY clause.
A class that models a literal for Envelope values.
Cast a expression function.
It models the FROM clause for a query.
A visitor for building an SQL statement from a given Query hierarchy.
The Fields class can be used to model a set of expressions that form the output items of a SELECT...
A class that represents the IN operator.
JoinConditionOn is a boolean expression and it specifies which items in a join are considered to matc...
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
A Select can be used as a source of information in another query.
SQLVisitor(const SQLDialect &dialect, std::string &sql)
Default constructor.
A Query is independent from the data source language/dialect.
A class that models a literal for Geometry values.
This class models a string Literal value.
const SQLDialect & m_dialect
The function catalog to use when translating the query.