CONZEPT 16 C++ API
|
#include "C16/Table.hpp"
Classes | |
class | Fields |
Fields of a table. More... | |
Static Public Attributes | |
static const int | NUMBER_MINIMUM = 1 |
Minimum number of a table. More... | |
static const int | NUMBER_MAXIMUM = 999 |
Maximum number of a table. More... | |
Public Member Functions | |
virtual Database & | database () const =0 |
Gets the database of the table. More... | |
virtual int | number () const =0 |
Gets the number of the table. More... | |
virtual const std::string & | name () const =0 |
Gets the name of the table. More... | |
virtual long long int | prime_counter () const =0 |
Gets the prime counter of the table. More... | |
virtual bool | subordinated () const =0 |
Gets if the table is subordinated. More... | |
virtual const Table * | master_table () const =0 |
Gets the master table of the table, if subordinated. More... | |
virtual long int | records_count () const =0 |
Gets the count of records of the table. More... | |
virtual long int | records_count_link (const Record &record_source, int link_number) const =0 |
Gets the count of records of a link to the table. More... | |
virtual void | records_erase () const =0 |
Deletes the records of the table. More... | |
virtual Result | record_lock_id (long long int id, Locking locking=Locking::LOCK_EXCLUSIVE) const =0 |
Applies a locking to a record by means of its id. More... | |
virtual Result | record_lock_position_key (int key_number, long int position, Locking locking=Locking::LOCK_EXCLUSIVE, bool reverse=false) const =0 |
Applies a locking to a record by means of its position dependent on a key. More... | |
virtual Result | record_lock_position_link (const Record &record_source, int link_number, long int position, Locking locking=Locking::LOCK_EXCLUSIVE, bool reverse=false) const =0 |
Applies a locking to a record by means of its position dependent on a link. More... | |
virtual Result | record_test_id (long long int id) const =0 |
Tests the existence of a record by means of its id. More... | |
virtual const Series< Subrecord > & | subrecords () const =0 |
Gets the subrecords of the table. More... | |
virtual const Series< Key > & | keys () const =0 |
Gets the keys of the table. More... | |
virtual const Series< Link > & | links () const =0 |
Gets the links of the table. More... | |
virtual const Fields & | fields () const =0 |
Gets the fields of the table. More... | |
|
static |
Minimum number of a table.
|
static |
Maximum number of a table.
|
pure virtual |
Gets the number of the table.
|
pure virtual |
Gets the name of the table.
|
pure virtual |
Gets the prime counter of the table.
|
pure virtual |
Gets if the table is subordinated.
|
pure virtual |
Gets the master table of the table, if subordinated.
!= nullptr | Pointer to the master table of the table. |
nullptr | Table not subordinated. |
|
pure virtual |
Gets the count of records of the table.
|
pure virtual |
Gets the count of records of a link to the table.
record_source | Record buffer of the table of the link |
link_number | Number of the link |
Exception::Difference | Table different. Destination table of the link is different to table. |
|
pure virtual |
Deletes the records of the table.
|
pure virtual |
Applies a locking to a record by means of its id.
id | Id of the record | ||||||||||
locking | Locking to apply to the record
|
Result::OK | Locking applied. |
Result::LOCKED | Record already locked. |
Result::NO_REC | Record inexistent. |
Result::NO_RIGHTS | Permissions insufficient. |
Exception::Invalidity | Locking invalid. |
|
pure virtual |
Applies a locking to a record by means of its position dependent on a key.
key_number | Number of the key | ||||||||||
position | Position of the record dependent on the key (1 to records_count()). | ||||||||||
locking | Locking to apply to the record
| ||||||||||
reverse | Option to use the key in reverse order |
Result::OK | Locking applied. |
Result::LOCKED | Record already locked. |
Result::NO_REC | Record inexistent. |
Result::NO_RIGHTS | Permissions insufficient. |
Exception::Inexistence | Key inexistent. |
Exception::Invalidity | Locking invalid. |
|
pure virtual |
Applies a locking to a record by means of its position dependent on a link.
record_source | Record buffer of the table of the link | ||||||||||||
link_number | Number of the link | ||||||||||||
position | Position of the record dependent on the link (1 to records_count_link()). | ||||||||||||
locking | Locking to apply to the record
| ||||||||||||
reverse | Option to use the destination key of the link in reverse order |
Result::OK | Locking applied. |
Result::LOCKED | Record already locked. |
Result::NO_REC | Record inexistent. |
Result::NO_RIGHTS | Permissions insufficient. |
Exception::Inexistence | Link inexistent. |
Exception::Invalidity | Locking invalid. |
|
pure virtual |
Tests the existence of a record by means of its id.
id | Id of the record |
Result::OK | Record existent. |
Result::NO_REC | Record inexistent. |
Result::NO_RIGHTS | Permissions insufficient. |
Gets the subrecords of the table.