32 friend class Transaction;
65 void attachToTransaction();
66 void disconnectFromTransaction();
75 inline static const std::
string openCursorMethodName =
"Cursor::open";
76 inline static const std::
string closeCursorMethodName =
"Cursor::close";
77 inline static const std::
string renewCursorMethodName =
"Cursor::renew";
An object to manage cursor internals and state.
Definition cursorcommon.h:31
static const std::string lastOperationName
member function name, just for exceptions in heir
Definition cursorcommon.h:88
void renew()
Renews a cursor.
Definition cursorcommon.cpp:259
bool empty() const
Returns true if the cursor is empty.
Definition cursorcommon.cpp:333
void reset()
A private method that turns cursor into an empty one.
Definition cursorcommon.cpp:113
static const std::string lastMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:81
void terminated()
A private function called to inform the cursor he has been terminated.
Definition cursorcommon.cpp:136
State
Definition cursorcommon.h:34
@ openedPublic
Definition cursorcommon.h:36
@ closed
Definition cursorcommon.h:35
@ openedPrivate
Definition cursorcommon.h:37
void dropped()
A private method that turns cursor into an empty one.
Definition cursorcommon.cpp:126
static const std::string currentOperationName
member function name, just for exceptions in heir
Definition cursorcommon.h:91
static const std::string prevMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:83
static const std::string currentMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:84
static const std::string nextOperationName
member function name, just for exceptions in heir
Definition cursorcommon.h:89
static const std::string firstMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:80
CursorCommon()
Creates a empty class.
Definition cursorcommon.cpp:41
void close()
Termiates a sequence of operations with the cursor.
Definition cursorcommon.cpp:161
static const std::string firstOperationName
member function name, just for exceptions in heir
Definition cursorcommon.h:87
bool opened() const
Tells if the cursor is open.
Definition cursorcommon.cpp:340
void open()
Opens the cursor for operations.
Definition cursorcommon.cpp:192
static const std::string nextMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:82
virtual ~CursorCommon() noexcept
Destroys this cursor.
Definition cursorcommon.cpp:82
static const std::string prevOperationName
member function name, just for exceptions in heir
Definition cursorcommon.h:90
static const std::string setMethodName
member function name, just for exceptions in heir
Definition cursorcommon.h:85
Definition storagecommon.h:33
Public read only transaction.
Definition transaction.h:27