GDBMS 1.0
|
#include <tr_twin_ht.h>
Public Member Functions | |
tr_twin_ht (char *table_name, char *folder_name, int columns_nr, char *columns, char *columns_searchby, char *unique, int tr_id, char *tr_folder, hash_table *rt) | |
tr_twin_ht (char *table_name, char *folder_name, char *columns, char *columns_searchby, char *unique, int tr_id, char *tr_folder, hash_table *rt) | |
void | AddRecord (char *column_names, char *values) |
Adds a record to the hash table.. | |
void | DeleteRecord (char *column_name, char *value) |
Deletes the first occurence of a record of column_name which has value. | |
void | UpdateRecord (char *where_column, char *where_value, char *column_names, char *column_values) |
A record updater. | |
char * | FindRecord (char *where_column_name, char *where_column_value, char *find_column) |
A record finder. | |
int | begin_transaction () |
void | blockrecord (char *id_rec) |
void | unblockrecord (char *id_rec) |
virtual int | getMAXID () |
int | end_transaction (tr_twin_ht *other_tr, char *col1, char *col2) |
void | changewithrealconnections (tr_twin_ht *other_tr, char *col1, char *col2) |
char * | getrealidforfake (char *fakeid) |
void | deletetransfolder () |
Definition at line 1 of file tr_twin_ht.h.
tr_twin_ht::tr_twin_ht | ( | char * | table_name, |
char * | folder_name, | ||
int | columns_nr, | ||
char * | columns, | ||
char * | columns_searchby, | ||
char * | unique, | ||
int | tr_id, | ||
char * | tr_folder, | ||
hash_table * | rt | ||
) |
Definition at line 18 of file tr_twin_ht.cpp.
tr_twin_ht::tr_twin_ht | ( | char * | table_name, |
char * | folder_name, | ||
char * | columns, | ||
char * | columns_searchby, | ||
char * | unique, | ||
int | tr_id, | ||
char * | tr_folder, | ||
hash_table * | rt | ||
) |
Definition at line 24 of file tr_twin_ht.cpp.
void tr_twin_ht::AddRecord | ( | char * | column_names, |
char * | values | ||
) |
Adds a record to the hash table..
column_names | a string parameter that contains ; separated names of the columns of the record. |
values | a string parameter that contains ; separated values of the columns of the record. |
Reimplemented from hash_table.
Definition at line 34 of file tr_twin_ht.cpp.
int tr_twin_ht::begin_transaction | ( | ) |
Definition at line 181 of file tr_twin_ht.cpp.
void tr_twin_ht::blockrecord | ( | char * | id_rec | ) |
Definition at line 429 of file tr_twin_ht.cpp.
void tr_twin_ht::changewithrealconnections | ( | tr_twin_ht * | other_tr, |
char * | col1, | ||
char * | col2 | ||
) |
Definition at line 319 of file tr_twin_ht.cpp.
void tr_twin_ht::DeleteRecord | ( | char * | column_name, |
char * | value | ||
) |
Deletes the first occurence of a record of column_name which has value.
column_name | a string parameter that contains the name of the column. |
value | a string parameter that contains the value of the column that the record to be deleted must have |
Reimplemented from hash_table.
Definition at line 62 of file tr_twin_ht.cpp.
void tr_twin_ht::deletetransfolder | ( | ) |
Definition at line 418 of file tr_twin_ht.cpp.
int tr_twin_ht::end_transaction | ( | tr_twin_ht * | other_tr, |
char * | col1, | ||
char * | col2 | ||
) |
Definition at line 200 of file tr_twin_ht.cpp.
char * tr_twin_ht::FindRecord | ( | char * | where_column_name, |
char * | where_column_value, | ||
char * | find_column | ||
) |
A record finder.
where_column_name | a string parameter that contains the name of the column by which the record to be found must be searched. |
where_column_value | a string parameter that contains the value which determines the record to be found. |
find_column | a string parameter that contains the name of the column which value is to be returned |
Reimplemented from hash_table.
Definition at line 128 of file tr_twin_ht.cpp.
int tr_twin_ht::getMAXID | ( | ) | [virtual] |
Reimplemented from hash_table.
Definition at line 493 of file tr_twin_ht.cpp.
char * tr_twin_ht::getrealidforfake | ( | char * | fakeid | ) |
Definition at line 385 of file tr_twin_ht.cpp.
void tr_twin_ht::unblockrecord | ( | char * | id_rec | ) |
Definition at line 477 of file tr_twin_ht.cpp.
void tr_twin_ht::UpdateRecord | ( | char * | where_column, |
char * | where_value, | ||
char * | column_names, | ||
char * | column_values | ||
) |
A record updater.
where_column | a string parameter that contains the name of the column by which the record to be updated must be searched. |
where_value | a string parameter that contains the value which determines the record to be updated. |
column_names | a string parameter that contains ; separated names of the update fields |
column_values | a string parameter that contains ; separated values of the update fields |
Reimplemented from hash_table.
Definition at line 139 of file tr_twin_ht.cpp.