CONZEPT 16 C++ API
|
Record set of records restricted and ordered by a link. More...
#include "C16/RecordsLink.hpp"
Record set of records restricted and ordered by a link.
Public Member Functions | |
RecordsLink (const Link &link, bool reverse=false) | |
Constructs a record set by means of a link. More... | |
RecordsLink (const Table &table_source, int link_number, bool reverse=false) | |
Constructs a record set by means of a source table and the number of a link. More... | |
RecordsLink (const Database &database, const std::string &link_name, bool reverse=false) | |
Constructs a record set by means of a database and the name of a link. More... | |
RecordsLink (const Database &database, const std::string &table_name_source, int link_number, bool reverse=false) | |
Constructs a record set by means of a database, the name of source table and the number of a link. More... | |
RecordsLink (const Database &database, int table_number_source, int link_number, bool reverse=false) | |
Constructs a record set by means of a database, the number of a source table and the number of a link. More... | |
long int | count () const override |
Gets the count of records of the record set. More... | |
const Link & | link () const |
Gets the link of the record set. More... | |
const Record & | record_source () const |
Gets the source record buffer of the record set. More... | |
Record & | record_source () |
Gets the source record buffer of the record set. More... | |
![]() | |
const Table & | table () const |
Gets the table of the record set. More... | |
const Record & | record () const |
Gets the record buffer of the record set. More... | |
Record & | record () |
Gets the record buffer of the record set. More... | |
bool | reverse () const |
Gets if the order of the records is reverted. More... | |
void | reverse_set (bool reverse) |
Sets if the order of the records is reverted. More... | |
Result | read (Place place, Locking locking=Locking::NONE, bool reverse=false) |
Reads a record by means of a place into the record buffer. More... | |
Result | read (long int position, Locking locking=Locking::NONE, bool reverse=false) |
Reads a record by means of its position into the record buffer. More... | |
|
explicit |
Constructs a record set by means of a link.
link | Link |
reverse | Option to use the destination key of the link in reverse order |
C16::RecordsLink::RecordsLink | ( | const Table & | table_source, |
int | link_number, | ||
bool | reverse = false |
||
) |
Constructs a record set by means of a source table and the number of a link.
table_source | Source table |
link_number | Number of the link |
reverse | Option to use the destination key of the link in reverse order |
Exception::Inexistence | Link inexistent. |
C16::RecordsLink::RecordsLink | ( | const Database & | database, |
const std::string & | link_name, | ||
bool | reverse = false |
||
) |
Constructs a record set by means of a database and the name of a link.
database | Database |
link_name | Name of the link |
reverse | Option to use the destination key of the link in reverse order |
Exception::Inexistence | Link inexistent. |
C16::RecordsLink::RecordsLink | ( | const Database & | database, |
const std::string & | table_name_source, | ||
int | link_number, | ||
bool | reverse = false |
||
) |
Constructs a record set by means of a database, the name of source table and the number of a link.
database | Database |
table_name_source | Name of the source table |
link_number | Number of the link link |
reverse | Option to use the destination key of the link in reverse order |
Exception::Inexistence | Table inexistent. |
Exception::Inexistence | Link inexistent. |
C16::RecordsLink::RecordsLink | ( | const Database & | database, |
int | table_number_source, | ||
int | link_number, | ||
bool | reverse = false |
||
) |
Constructs a record set by means of a database, the number of a source table and the number of a link.
database | Database |
table_number_source | Number of the source table |
link_number | Number of the link |
reverse | Option to use the destination key of the link in reverse order |
Exception::Inexistence | Table inexistent. |
Exception::Inexistence | Link inexistent. |
|
overridevirtual |
Gets the count of records of the record set.
Implements C16::Records.
const Record& C16::RecordsLink::record_source | ( | ) | const |
Gets the source record buffer of the record set.
Record& C16::RecordsLink::record_source | ( | ) |
Gets the source record buffer of the record set.