![]() |
rasdaman client API
10.6.3
The Array Analytics Engine: Datacubes at Your Fingertips
|
The class ClientComm represents one connection between one client entity (for example an object of class r_Database) and the server. More...
#include <clientcomm.hh>
Public Member Functions | |
| virtual | ~ClientComm ()=default |
| destructor (closes the connection and releases resources) More... | |
| virtual int | openDB (const char *database)=0 |
| Database methods. More... | |
| virtual int | closeDB ()=0 |
| close current database More... | |
| virtual int | createDB (const char *name)=0 |
| create a database More... | |
| virtual int | destroyDB (const char *name)=0 |
| destroy a database More... | |
| virtual int | openTA (unsigned short readOnly=0)=0 |
| Transaction methods. More... | |
| virtual int | commitTA ()=0 |
| commit current transaction More... | |
| virtual int | abortTA ()=0 |
| abort current transaction More... | |
| virtual void | insertMDD (const char *collName, r_GMarray *mar)=0 |
| MDD methods. More... | |
| virtual r_Ref_Any | getMDDByOId (const r_OId &oid)=0 |
| gets MDD object by oid More... | |
| virtual void | insertColl (const char *collName, const char *typeName, const r_OId &oid)=0 |
| Collection methods. More... | |
| virtual void | deleteCollByName (const char *collName)=0 |
| deletes an MDD collection by name More... | |
| virtual void | deleteObjByOId (const r_OId &oid)=0 |
| deletes an object by oid (right now, objects are collection only) More... | |
| virtual void | removeObjFromColl (const char *name, const r_OId &oid)=0 |
| removes an object from a collection More... | |
| virtual r_Ref_Any | getCollByName (const char *name)=0 |
| gets collection by name More... | |
| virtual r_Ref_Any | getCollByOId (const r_OId &oid)=0 |
| gets collection by oid More... | |
| virtual r_Ref_Any | getCollOIdsByName (const char *name)=0 |
| gets collection references by name More... | |
| virtual r_Ref_Any | getCollOIdsByOId (const r_OId &oid)=0 |
| gets collection references by oid More... | |
| virtual void | executeQuery (const r_OQL_Query &query, r_Set< r_Ref_Any > &result)=0 |
| Query methods. More... | |
| virtual void | executeQuery (const r_OQL_Query &query)=0 |
| Executes an update query of type r_OQL_Query. More... | |
| virtual void | executeQuery (const r_OQL_Query &query, r_Set< r_Ref_Any > &result, int dummy)=0 |
| Executes an insert query of type r_OQL_Query, returning the OId of the inserted array. More... | |
| virtual int | setTransferFormat (r_Data_Format format, const char *formatParams=NULL)=0 |
| Configuration methods. More... | |
| virtual int | setStorageFormat (r_Data_Format format, const char *formatParams=NULL)=0 |
| set the preferred storage format More... | |
| virtual void | setUserIdentification (const char *userName, const char *plainTextPassword)=0 |
| user identification for RasMGR More... | |
| virtual void | setMaxRetry (unsigned int newMaxRetry)=0 |
| set maximum retry to get a server More... | |
| virtual unsigned int | getMaxRetry ()=0 |
| get maximum retry to get a server More... | |
| virtual void | setTimeoutInterval (int seconds)=0 |
| set communication timeout interval in seconds. More... | |
| virtual int | getTimeoutInterval ()=0 |
| get communication timeout interval in seconds. More... | |
| void | setDatabase (r_Database *database) |
| sets the database that is using this client communicator More... | |
| void | setTransaction (r_Transaction *transaction) |
| sets the transaction that is using this client communicator More... | |
| virtual void | updateTransaction () |
| resets to the global r_Transaction::actual_transaction if necessary More... | |
Protected Member Functions | |
| ClientComm ()=default | |
| constructor getting nothing More... | |
Protected Attributes | |
| r_Database * | database |
| reference to the database that created this client communicator More... | |
| r_Transaction * | transaction |
| reference to the transaction being used by this client communicator More... | |
| enum | r_Type_Type { r_SetType_Type = 1 , r_MDDType_Type = 2 } |
| virtual r_OId | getNewOId (unsigned short objType)=0 |
| System methods. More... | |
| virtual unsigned short | getObjectType (const r_OId &oid)=0 |
| get oid type More... | |
| virtual char * | getTypeStructure (const char *typeName, r_Type_Type typeType)=0 |
| get type structure deallocate using delete [] More... | |
The class ClientComm represents one connection between one client entity (for example an object of class r_Database) and the server.
|
virtualdefault |
destructor (closes the connection and releases resources)
|
protecteddefault |
constructor getting nothing
|
pure virtual |
abort current transaction
Implemented in RasnetClientComm.
|
pure virtual |
close current database
Implemented in RasnetClientComm.
|
pure virtual |
commit current transaction
Implemented in RasnetClientComm.
|
pure virtual |
create a database
Implemented in RasnetClientComm.
|
pure virtual |
deletes an MDD collection by name
Implemented in RasnetClientComm.
|
pure virtual |
deletes an object by oid (right now, objects are collection only)
Implemented in RasnetClientComm.
|
pure virtual |
destroy a database
Implemented in RasnetClientComm.
|
pure virtual |
Executes an update query of type r_OQL_Query.
Implemented in RasnetClientComm.
|
pure virtual |
Query methods.
Executes a retrieval query of type r_OQL_Query and returns the result. Every MDD object of the MDD collection is fetched from the server and inserted in the result r_Set.
Implemented in RasnetClientComm.
|
pure virtual |
Executes an insert query of type r_OQL_Query, returning the OId of the inserted array.
The third parameter is only used to distinguish the method signature from the retrieval query one.
Implemented in RasnetClientComm.
|
pure virtual |
gets collection by name
Implemented in RasnetClientComm.
gets collection by oid
Implemented in RasnetClientComm.
|
pure virtual |
gets collection references by name
Implemented in RasnetClientComm.
gets collection references by oid
Implemented in RasnetClientComm.
|
pure virtual |
get maximum retry to get a server
Implemented in RasnetClientComm.
gets MDD object by oid
Implemented in RasnetClientComm.
|
pure virtual |
|
pure virtual |
get oid type
Implemented in RasnetClientComm.
|
pure virtual |
get communication timeout interval in seconds.
Implemented in RasnetClientComm.
|
pure virtual |
get type structure deallocate using delete []
Implemented in RasnetClientComm.
|
pure virtual |
|
pure virtual |
MDD methods.
inserts a MDD object in an existing MDD collection on the server
Implemented in RasnetClientComm.
|
pure virtual |
|
pure virtual |
|
pure virtual |
removes an object from a collection
Implemented in RasnetClientComm.
| void ClientComm::setDatabase | ( | r_Database * | database | ) |
sets the database that is using this client communicator
|
pure virtual |
set maximum retry to get a server
Implemented in RasnetClientComm.
|
pure virtual |
set the preferred storage format
Implemented in RasnetClientComm.
|
pure virtual |
set communication timeout interval in seconds.
Implemented in RasnetClientComm.
| void ClientComm::setTransaction | ( | r_Transaction * | transaction | ) |
sets the transaction that is using this client communicator
|
pure virtual |
|
pure virtual |
user identification for RasMGR
Implemented in RasnetClientComm.
|
virtual |
resets to the global r_Transaction::actual_transaction if necessary
|
protected |
reference to the database that created this client communicator
|
protected |
reference to the transaction being used by this client communicator