 |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
Go to the documentation of this file.
26 #ifndef D_TRANSACTION_HH
27 #define D_TRANSACTION_HH
r_TAMode get_mode() const
returns current mode
void begin(r_TAMode mode=read_write)
start the transaction
void abort()
The transaction is committed and changes are made persistent in the database.
void setDatabase(r_Database *database)
sets the database reference that this transaction is using.
@ active
Definition: transaction.hh:55
The class r_Ref_Any is defined to support a reference to any type.
Definition: ref.hh:64
void add_object_list(GenRefType type, void *ref)
adds a non-r_Object to the list of persistent objects
@ aborting
Definition: transaction.hh:58
static r_Transaction * actual_transaction
store a pointer to the actual transaction
Definition: transaction.hh:119
@ read_only
Definition: transaction.hh:65
References of type r_Ref in many respects behave like C++ pointers but provide an additional mechanis...
Definition: collection.hh:196
@ inactive
Definition: transaction.hh:56
r_Transaction(r_Database *db=NULL)
create a new transaction object; if the db object is not provided, this class not thread-safe.
@ read_write
Definition: transaction.hh:64
r_TAStatus
possible states of the transaction
Definition: transaction.hh:53
r_TAStatus get_status() const
returns the current state
The class implements a set container.
Definition: oqlquery.hh:31
Transactions can be started, committed, aborted, and checkpointed.
Definition: transaction.hh:49
@ comiting
Definition: transaction.hh:57
~r_Transaction()
destructor, an active transaction is aborted
r_TAMode
possible transaction modes
Definition: transaction.hh:62
GenRefType
possible non-r_Object values maintained by the transaction
Definition: genreftype.hh:27
Through inheritance of this class, the type definer specifies that the subclass is capable of having ...
Definition: object.hh:61
r_Database * getDatabase()
returns the database used by this transaction
r_Ref_Any load_object(const r_OId &oid)
load an object (internal use only)
A database object must be instantiated and opened before starting any transaction which uses the data...
Definition: database.hh:59
void commit()
By default, a transaction is started in write mode.
Class r_OId represents an object identifier.
Definition: oid.hh:38