|
Public Member Functions |
virtual bool | assign (const terimber_memlookup &x)=0 |
| copy method lookups must be created for the same index
|
virtual bool | reset (const terimber_db_value_vector *info)=0 |
| navigation methods
|
virtual bool | next () const =0 |
| tries to find the next row according to lookup values
|
virtual bool | prev () const =0 |
| tries to find the previous row according to lookup values
|
virtual bool | get_value_is_null (size_t index) const =0 |
| checks if value is null
|
virtual bool | get_value_as_bool (size_t index) const =0 |
| gets value as a boolean
|
virtual sb1_t | get_value_as_char (size_t index) const =0 |
| gets value as a char
|
virtual ub1_t | get_value_as_byte (size_t index) const =0 |
| gets value as a byte
|
virtual sb2_t | get_value_as_short (size_t index) const =0 |
| gets value as a short
|
virtual ub2_t | get_value_as_word (size_t index) const =0 |
| gets value as an unsigned short
|
virtual sb4_t | get_value_as_long (size_t index) const =0 |
| gets value as a long
|
virtual ub4_t | get_value_as_dword (size_t index) const =0 |
| gets value as an unsigned long
|
virtual float | get_value_as_float (size_t index) const =0 |
| gets value as a float
|
virtual double | get_value_as_double (size_t index) const =0 |
| gets value as a double
|
virtual sb8_t | get_value_as_long64 (size_t index) const =0 |
| gets value as a int64
|
virtual ub8_t | get_value_as_dword64 (size_t index) const =0 |
| gets value as an unsigned int64
|
virtual bool | get_value_as_guid (size_t index, guid_t &val) const =0 |
| gets value as a guid for high performance we are using reference
|
virtual const char * | get_value_as_numeric (size_t index, char delimeter) const =0 |
| gets value as a numeric delimeter defines the desirable delimeter sign
|
virtual const char * | get_value_as_decimal (size_t index, char delimeter) const =0 |
| gets value as a decimal delimeter defines the desirable delimeter sign
|
virtual bool | get_value_as_date (size_t index, ub4_t &year, ub1_t &month, ub1_t &day, ub1_t &hour, ub1_t &minute, ub1_t &second, ub2_t &millisec, ub1_t &wday, ub2_t &yday) const =0 |
| gets value as a date to avoid confusions with different date formats the functions returns parsed date
|
virtual const char * | get_value_as_string (size_t index) const =0 |
| gets value as a string function returns the pointer to string
|
virtual const wchar_t * | get_value_as_wstring (size_t index) const =0 |
| gets value as a wide string function returns the pointer to wide string
|
virtual const ub1_t * | get_value_as_binary (size_t index, size_t &len) const =0 |
| gets value as a binary returns pointer to the raw bytes size of bytes is put to len
|
virtual const ub1_t * | get_value_as_binary_ptr (size_t index) const =0 |
| gets value as a binary pointer for reusing only the format of buffer is as follows first size_t bytes the length of the rest of buffer, which contains the raw byte data
|
virtual bool | insert_row (const terimber_db_value_vector *info)=0 |
| insert new row if the row is modified it will still have a status = new if the row is removed it's just deleted from recordset inserted row has all columns' value as null
|
virtual bool | delete_row ()=0 |
| deletes existing row if row was in original recordset (modified or not), it will have a status = delete, and will not be accessible anymore deleting of new row will just remove row from recordset
|
virtual bool | update_row (const terimber_db_value_vector *info)=0 |
| updates the column value update of new row will preserve status = new update of original row will change status from original to update.
|
virtual terimber_db_row_status | get_row_status ()=0 |
| returns the current status user can't get the status of row already deleted however if lookup is created from empty index, then all rows are available to see including deleted ones
|
Protected Member Functions |
virtual | ~terimber_memlookup () |
| destructor users can't call destructor, memtable will take case about cleanup
|