te::da::PreparedQuery Class Referenceabstract

A class that model a prepared query. More...

#include <PreparedQuery.h>

Inheritance diagram for te::da::PreparedQuery:
te::pgis::PreparedQuery

Public Member Functions

virtual void bind (int i, char value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, unsigned char value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, boost::int16_t value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, boost::int32_t value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, boost::int64_t value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, bool value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, float value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, double value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const std::string &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const te::dt::ByteArray &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const te::gm::Geometry &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const te::rst::Raster &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const te::dt::DateTime &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const DataSet &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void bind (int i, const te::dt::AbstractData &ad)
 Binds the i-th parameter of the query to a value. More...
 
virtual void bindNumeric (int i, const std::string &value)=0
 Binds the i-th parameter of the query to a value. More...
 
virtual void execute ()=0
 
virtual std::string getName () const =0
 It returns the prepared query name. More...
 
virtual DataSourceTransactorgetTransactor () const =0
 It returns a pointer to the underlying data source transactor. More...
 
virtual void prepare (const Query &query, const std::vector< te::dt::Property * > &paramTypes)=0
 It prepares the query that may be used for commands that are used mutiple times (select, insert, update and delete). More...
 
virtual void prepare (const std::string &query, const std::vector< te::dt::Property * > &paramTypes)=0
 It prepares the query using native dialect. More...
 
 PreparedQuery ()
 Constructor. More...
 
virtual DataSetquery (te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess)=0
 
virtual ~PreparedQuery ()
 Virtual destructor. More...
 

Detailed Description

A class that model a prepared query.

See also
DataSourceTransactor, DataSet, Query, Literal

Definition at line 69 of file PreparedQuery.h.

Constructor & Destructor Documentation

te::da::PreparedQuery::PreparedQuery ( )
inline

Constructor.

Definition at line 74 of file PreparedQuery.h.

virtual te::da::PreparedQuery::~PreparedQuery ( )
inlinevirtual

Virtual destructor.

Reimplemented in te::pgis::PreparedQuery.

Definition at line 77 of file PreparedQuery.h.

Member Function Documentation

virtual void te::da::PreparedQuery::bind ( int  i,
char  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
unsigned char  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
boost::int16_t  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
boost::int32_t  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
boost::int64_t  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
bool  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
float  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
double  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const std::string &  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const te::dt::ByteArray value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const te::gm::Geometry value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const te::rst::Raster value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const te::dt::DateTime value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const DataSet value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bind ( int  i,
const te::dt::AbstractData ad 
)
virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Reimplemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::bindNumeric ( int  i,
const std::string &  value 
)
pure virtual

Binds the i-th parameter of the query to a value.

Parameters
iThe parameter index.
valueThe parameter value.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::execute ( )
pure virtual

Implemented in te::pgis::PreparedQuery.

virtual std::string te::da::PreparedQuery::getName ( ) const
pure virtual

It returns the prepared query name.

Parameters
returnThe prepared query name.

Implemented in te::pgis::PreparedQuery.

virtual DataSourceTransactor* te::da::PreparedQuery::getTransactor ( ) const
pure virtual

It returns a pointer to the underlying data source transactor.

Returns
A pointer to the underlying data source transactor.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::prepare ( const Query query,
const std::vector< te::dt::Property * > &  paramTypes 
)
pure virtual

It prepares the query that may be used for commands that are used mutiple times (select, insert, update and delete).

This command will submit a request to create a prepared query with the given parameters.

Parameters
queryThe query to be prepared.
paramTypesThe list of parameters data type.
Exceptions
ExceptionIt throws an exception if the prepared query can not be created. For example if another prepared query with the same name already exists, this may throws an exception.

Implemented in te::pgis::PreparedQuery.

virtual void te::da::PreparedQuery::prepare ( const std::string &  query,
const std::vector< te::dt::Property * > &  paramTypes 
)
pure virtual

It prepares the query using native dialect.

This command may be used for commands that are used mutiple times (select, insert, update and delete).

This command will submit a request to create a prepared query with the given parameters.

Parameters
queryThe query to be prepared.
paramTypesThe list of parameters data type.
Exceptions
ExceptionIt throws an exception if the prepared query can not be created. For example if another prepared query with the same name already exists, this may throws an exception.

Implemented in te::pgis::PreparedQuery.

virtual DataSet* te::da::PreparedQuery::query ( te::common::TraverseType  travType = te::common::FORWARDONLY,
te::common::AccessPolicy  rwRole = te::common::RAccess 
)
pure virtual

Implemented in te::pgis::PreparedQuery.


The documentation for this class was generated from the following file: