27 #include "../../common/Translator.h"
28 #include "../../geometry/GeometryProperty.h"
29 #include "../../datatype/Property.h"
30 #include "../dataset/ObjectIdSet.h"
31 #include "../query/DataSetName.h"
32 #include "../query/Field.h"
33 #include "../query/Fields.h"
34 #include "../query/Select.h"
35 #include "../query/Where.h"
36 #include "../utils/Utils.h"
37 #include "../Exception.h"
55 assert(!name.empty());
57 assert(oids->
size() > 0);
73 from->push_back(fromItem);
76 std::auto_ptr<Select> select(
new Select(all, from, filter));
78 std::auto_ptr<te::da::DataSet> result = query(select.get(), travType, connected);
This class represents a set of unique ids created in the same context. i.e. from the same data set...
A class that models the name of a dataset used in a From clause.
A Select models a query to be used when retrieving data from a DataSource.
The Field class can be used to model an expression that takes part of the output items of a SELECT...
boost::ptr_vector< FromItem > From
It models the FROM clause for a query.
Expression * getExpression() const
It returns the expression that can be used to retrieve the data set that contains the all indentified...
virtual std::auto_ptr< DataSet > getDataSet(const std::string &name, te::common::TraverseType travType=te::common::FORWARDONLY, bool connected=false, const te::common::AccessPolicy accessPolicy=te::common::RAccess)=0
It gets the dataset identified by the given name. A dataset can be connected or disconnected. A connected dataset, after its creation through the data source transactor, continues to depend on the connection given by its associated data source. Differently, a disconnected dataset, after its creation, no more depends of the connection given by the data source, and it continues to live after the connection has been released to the data source.
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
DataSourceTransactor()
Default constructor that can be called by subclasses.
boost::ptr_vector< Field > Fields
Fields is just a boost::ptr_vector of Field pointers.
AccessPolicy
Supported data access policies (can be used as bitfield).
An abstract class that models a source of data in a query.
std::size_t size() const
It returns the object id set size.
virtual ~DataSourceTransactor()
Virtual destructor.
TraverseType
A dataset can be traversed in two ways:
This is an abstract class that models a query expression.
A class that can be used to model a filter expression that can be applied to a query.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...