91 static void useRNP()
throw();
92 static void useRPC()
throw();
103 virtual int openDB(
const char* database ) = 0;
119 virtual int openTA(
unsigned short readOnly = 0 )
throw(
r_Error) =0;
145 virtual void insertColl(
const char* collName,
const char* typeName,
const r_OId& oid )
throw(
r_Error ) =0;
253 virtual
void setMaxRetry(
unsigned int newMaxRetry) = 0;
271 static
bool currentProtocolIsRNP;
Definition: clientcomm.hh:199
r_Type_Type
Definition: clientcomm.hh:196
Definition: raslib/basetype.hh:47
virtual int setStorageFormat(r_Data_Format format, const char *formatParams=NULL)=0
set the preferred storage format
virtual int closeDB()=0
close current database
virtual r_Ref_Any getCollByName(const char *name)=0
gets collection by name
virtual unsigned int getMaxRetry()=0
get maximum retry to get a server
virtual int openTA(unsigned short readOnly=0)=0
begin transaction
virtual void insertColl(const char *collName, const char *typeName, const r_OId &oid)=0
creates an empty MDD collection on the server
Definition: clientcomm.hh:46
virtual r_Ref_Any getMDDByOId(const r_OId &oid)=0
gets MDD object by oid
Definition: clientcomm.hh:198
virtual ~ClientComm()
destructor (closes the connection and releases resources)
Definition: clientcomm.hh:67
static bool internalSettingIsRNP()
virtual r_OId getNewOId(unsigned short objType)=0
get new oid
virtual r_Ref_Any getCollOIdsByName(const char *name)=0
gets collection references by name
r_Data_Format
Definition: mddtypes.hh:133
virtual int destroyDB(const char *name)=0
destroy a database
Definition: gmarray.hh:66
static ClientComm * createObject(const char *rasmgrName, int rasmgrPort)
virtual unsigned short getObjectType(const r_OId &oid)=0
get oid type
virtual r_Ref_Any getCollByOId(const r_OId &oid)=0
gets collection by oid
virtual int commitTA()=0
commit current transaction
virtual void deleteObjByOId(const r_OId &oid)=0
deletes an object by oid (right now, objects are collection only)
virtual int abortTA()=0
abort current transaction
virtual const char * getExtendedErrorInfo()=0
get extended error information
virtual int openDB(const char *database)=0
open database
virtual void executeQuery(const r_OQL_Query &query, r_Set< r_Ref_Any > &result)=0
query execution
Definition: oqlquery.hh:81
virtual int setTransferFormat(r_Data_Format format, const char *formatParams=NULL)=0
set the preferred transfer format
const char * getServerName()
get real server name (the dinamic one, assigned by the RasMGR)
virtual void deleteCollByName(const char *collName)=0
deletes an MDD collection by name
virtual void triggerAliveSignal()=0
triggers an alive signal
static int changeEndianness(r_GMarray *mdd, const r_Base_Type *bt=NULL)
changes endianness of MDD data
virtual void removeObjFromColl(const char *name, const r_OId &oid)=0
removes an object from a collection
virtual unsigned long getClientID() const =0
provides read access to my clientID
virtual void insertMDD(const char *collName, r_GMarray *mar)=0
inserts a MDD object in an existing MDD collection on the server
virtual char * getTypeStructure(const char *typeName, r_Type_Type typeType)=0
get type structure deallocate using delete []
virtual void sendAliveSignal()=0
send an alive signal if necessary and possible
virtual void setUserIdentification(const char *userName, const char *plainTextPassword)=0
user identification for RasMGR
virtual int getTimeoutInterval()=0
virtual void setTimeoutInterval(int seconds)=0
set and get communication timeout interval. Only RNP really uses it
virtual bool effectivTypeIsRNP()=0
virtual r_Ref_Any getCollOIdsByOId(const r_OId &oid)=0
gets collection references by oid
virtual void setMaxRetry(unsigned int newMaxRetry)=0
set maximum retry to get a server
virtual int createDB(const char *name)=0
create a database