CompleteDB Embedded: Direct C++ API
2.4.2
|
Record is statement class that provides active record pattern services. It is used to insert, select, update, delete and iterate rows in a database table. More...
#include <Record.hpp>
Public Member Functions | |
bool | cast (const Object &from) |
bool | isConnected () const |
bool | isDisconnected () const |
Type::Enum | getClassType () const |
Type::Enum | getObjectType () const |
ColumnBool | getColumnBool (const char *name) |
ColumnDouble | getColumnDouble (const char *name) |
ColumnFloat | getColumnFloat (const char *name) |
ColumnInt16 | getColumnInt16 (const char *name) |
ColumnInt32 | getColumnInt32 (const char *name) |
ColumnInt64 | getColumnInt64 (const char *name) |
ColumnInt8 | getColumnInt8 (const char *name) |
ColumnString | getColumnString (const char *name) |
Error::Enum | getLastErrorId () const |
const char * | getLastError () const |
bool | prepare () |
bool | commitRow () |
bool | commitRow (DirectId &directId) |
bool | copyBuffer () |
bool | deleteDirect (const DirectId &directId) |
bool | deleteRow () |
bool | deleteSurrogate (const SurrogateId &surrogateId) |
bool | getDirectId (DirectId &directId) |
bool | getSurrogateId (SurrogateId &surrogateId) |
bool | holdDirect (const DirectId &directId) |
bool | holdRow () |
bool | holdSurrogate (const SurrogateId &surrogateId) |
bool | insertSurrogate (const SurrogateId &surrogateId) |
bool | loadDirect (const DirectId &directId) |
bool | loadDirectOutside (const DirectId &directId) |
bool | loadRow () |
bool | loadRowOutside () |
bool | loadSurrogate (const SurrogateId &surrogateId) |
bool | loadSurrogateOutside (const SurrogateId &surrogateId) |
bool | nextRow () |
bool | nextRowOutside () |
bool | resetRowIterator () |
bool | rollbackRow () |
uint32_t | getBufferSize () const |
Record & | operator= (const Record &src) |
Record (const Record &src) | |
virtual | ~Record () |
Record () | |
![]() | |
void * | get () const |
Object & | operator= (const Object &src) |
Object (const Object &src) | |
virtual | ~Object () |
Object () | |
![]() | |
Columns & | operator= (const Columns &src) |
Columns (const Columns &src) | |
virtual | ~Columns () |
Columns () | |
![]() | |
FastStatement & | operator= (const FastStatement &src) |
FastStatement (const FastStatement &src) | |
virtual | ~FastStatement () |
FastStatement () |
Friends | |
class | Database |
class | Table |
class | TableDml |
Additional Inherited Members | |
![]() | |
Object (void *src) | |
![]() | |
void * | m |
Record is statement class that provides active record pattern services. It is used to insert, select, update, delete and iterate rows in a database table.
Definition at line 17 of file Record.hpp.
Definition at line 192 of file Record.hpp.
|
inlinevirtual |
Definition at line 196 of file Record.hpp.
|
inline |
Definition at line 197 of file Record.hpp.
|
inlinevirtual |
|
inline |
Commits the database transaction for current row only.
Definition at line 108 of file Record.hpp.
|
inline |
Definition at line 109 of file Record.hpp.
|
inline |
Definition at line 110 of file Record.hpp.
|
inline |
Deletes a row by DirectId.
Definition at line 114 of file Record.hpp.
|
inline |
Deletes current row.
Definition at line 118 of file Record.hpp.
|
inline |
Deletes a row by SurrogateId.
Definition at line 122 of file Record.hpp.
|
inline |
Definition at line 187 of file Record.hpp.
|
inlinevirtual |
|
inlinevirtual |
Retrieves existing Bool column.
Reimplemented from Columns.
Definition at line 55 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Double column.
Reimplemented from Columns.
Definition at line 59 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Float column.
Reimplemented from Columns.
Definition at line 63 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Int16 column.
Reimplemented from Columns.
Definition at line 67 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Int32 column.
Reimplemented from Columns.
Definition at line 71 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Int64 column.
Reimplemented from Columns.
Definition at line 75 of file Record.hpp.
|
inlinevirtual |
Retrieves existing Int8 column.
Reimplemented from Columns.
Definition at line 79 of file Record.hpp.
|
inlinevirtual |
Retrieves existing String column.
Reimplemented from Columns.
Definition at line 83 of file Record.hpp.
|
inline |
Gets DirectId of the current row.
Definition at line 126 of file Record.hpp.
|
inlinevirtual |
Retrieves the calling object last-error text message.
Reimplemented from FastStatement.
Definition at line 94 of file Record.hpp.
|
inlinevirtual |
Retrieves the calling object last-error id value.
Reimplemented from FastStatement.
Definition at line 90 of file Record.hpp.
|
inlinevirtual |
object type of the underlying derived object.
Reimplemented from Columns.
Definition at line 48 of file Record.hpp.
|
inline |
Gets SurrogateId of the current row if exists.
Definition at line 130 of file Record.hpp.
|
inline |
Holds a row by DirectId for update operation.
Definition at line 134 of file Record.hpp.
|
inline |
Holds current row for update operation.
Definition at line 138 of file Record.hpp.
|
inline |
Holds a row by SurrogateId for update operation.
Definition at line 142 of file Record.hpp.
|
inline |
Inserts new row in a table with user supplied surrogateId.
Definition at line 146 of file Record.hpp.
|
inlinevirtual |
if underlying database is connected.
Reimplemented from Columns.
Definition at line 36 of file Record.hpp.
|
inlinevirtual |
if underlying database is not connected.
Reimplemented from Columns.
Definition at line 40 of file Record.hpp.
|
inline |
Loads a row from a table by DirectId.
Definition at line 150 of file Record.hpp.
|
inline |
Loads a row from a table by DirectId outside of the current transaction.
Definition at line 154 of file Record.hpp.
|
inline |
Reloads current row.
Definition at line 158 of file Record.hpp.
|
inline |
Reloads current row outside of the current transaction.
Definition at line 162 of file Record.hpp.
|
inline |
Loads a row from a table by SurrogateId.
Definition at line 166 of file Record.hpp.
|
inline |
Loads a row from a table by SurrogateId outside of the current transaction.
Definition at line 170 of file Record.hpp.
|
inline |
Advances the row iterator to the next row element.
Definition at line 174 of file Record.hpp.
|
inline |
Advances the row iterator to the next row element outside of the current transaction.
Definition at line 178 of file Record.hpp.
Definition at line 191 of file Record.hpp.
|
inlinevirtual |
Validates and prepares statement for execution.
Reimplemented from FastStatement.
Definition at line 101 of file Record.hpp.
|
inline |
Sets the row iterator to its initial position.
Definition at line 182 of file Record.hpp.
|
inline |
Rolls back a transaction from a pending state for current row only.
Definition at line 186 of file Record.hpp.
|
friend |
Definition at line 23 of file Record.hpp.
|
friend |
Definition at line 24 of file Record.hpp.
|
friend |
Definition at line 25 of file Record.hpp.