Dv::Sql::Row< database_table >::Set Class Reference
A set of rows of this table.
More...
#include <row.h>
List of all members.
Public Member Functions |
| Set (SelectExp select_exp, const std::string &rest="") throw (std::logic_error) |
| Initialize a set using the result of a query.
|
| Set (Row< database_table > &r, const std::string &rest="") throw (std::logic_error) |
| Initialize the set with all objects that match the dirty column values in r .
|
template<typename Target > |
| Set (const Target &target, const Dv::Sql::Reference &reference) throw (std::logic_error) |
| Initialize a set with all source objects that are linked to a target object via a reference.
|
Detailed Description
template<Dv::Sql::Table::Ref & database_table>
class Dv::Sql::Row< database_table >::Set
A set of rows of this table.
- Examples:
-
example-row.C.
Definition at line 185 of file row.h.
Constructor & Destructor Documentation
template<Dv::Sql::Table::Ref & database_table>
Dv::Sql::Row< database_table >::Set::Set |
( |
SelectExp |
select_exp, |
|
|
const std::string & |
rest = "" | |
|
) |
| | throw (std::logic_error) [inline] |
Initialize a set using the result of a query.
The query has the following form.
select * from database_table where select_exp rest
- Example
-
- Parameters:
-
| select_exp | condition to be used in the query text |
| rest | suffix of the query text, may be 0 |
- Exceptions:
-
| std::logic_error | if executing the query fails |
Definition at line 204 of file row.h.
template<Dv::Sql::Table::Ref & database_table>
Dv::Sql::Row< database_table >::Set::Set |
( |
Row< database_table > & |
r, |
|
|
const std::string & |
rest = "" | |
|
) |
| | throw (std::logic_error) [inline] |
Initialize the set with all objects that match the dirty column values in r
.
- Parameters:
-
| r | object to match |
| rest | optional suffix for the constructed query |
- Exceptions:
-
| std::logic_error | iff executing the query fails |
- See also:
- Object::match
Definition at line 215 of file row.h.
template<Dv::Sql::Table::Ref & database_table>
template<typename Target >
Initialize a set with all source objects that are linked to a target object via a reference.
- Parameters:
-
| target | object |
| reference | to follow (in the inverse direction: from taregt to source) |
Definition at line 226 of file row.h.
The documentation for this class was generated from the following file: