GDBMS 1.0
Public Member Functions
tr_twin_ht Class Reference

#include <tr_twin_ht.h>

Inheritance diagram for tr_twin_ht:
hash_table

List of all members.

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 ()

Detailed Description

Definition at line 1 of file tr_twin_ht.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void tr_twin_ht::AddRecord ( char *  column_names,
char *  values 
)

Adds a record to the hash table..

Parameters:
column_namesa string parameter that contains ; separated names of the columns of the record.
valuesa 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.

Parameters:
column_namea string parameter that contains the name of the column.
valuea 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.

Parameters:
where_column_namea string parameter that contains the name of the column by which the record to be found must be searched.
where_column_valuea string parameter that contains the value which determines the record to be found.
find_columna 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.

Parameters:
where_columna string parameter that contains the name of the column by which the record to be updated must be searched.
where_valuea string parameter that contains the value which determines the record to be updated.
column_namesa string parameter that contains ; separated names of the update fields
column_valuesa string parameter that contains ; separated values of the update fields

Reimplemented from hash_table.

Definition at line 139 of file tr_twin_ht.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines