NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CBlobStoreDynamic Class Reference

Search Toolkit Book for CBlobStoreDynamic

#include <dbapi/driver/util/blobstore.hpp>

+ Inheritance diagram for CBlobStoreDynamic:
+ Collaboration diagram for CBlobStoreDynamic:

Public Member Functions

 CBlobStoreDynamic (I_DriverContext *pCntxt, const string &server, const string &user, const string &passwd, const string &table_name, ECompressMethod cm=eNone, size_t image_limit=IMAGE_LIMIT_16MB, CSimpleBlobStore::TFlags flags=CSimpleBlobStore::kDefaults)
 
 CBlobStoreDynamic (I_DriverContext *pCntxt, const string &server, const string &user, const string &passwd, const string &table_name, ECompressMethod cm, size_t image_limit, bool log_it)
 
virtual ~CBlobStoreDynamic ()
 
- Public Member Functions inherited from CBlobStoreBase
bool Exists (const string &blob_id)
 
istream * OpenForRead (const string &blob_id, const CTempString &table_hint=kEmptyStr)
 Obtain an input stream for a specific BLOB. More...
 
ostream * OpenForWrite (const string &blob_id, const CTempString &table_hint=kEmptyStr)
 Obtain an output stream for a specific BLOB. More...
 
void Delete (const string &blob_id)
 
size_t GetImageLimit () const
 
ECompressMethod getCM () const
 
void setCM (ECompressMethod cm)
 
const stringgetTableName () const
 
const stringgetKeyColName () const
 
const stringgetNumColName () const
 
virtual ~CBlobStoreBase ()
 

Protected Member Functions

virtual CDB_ConnectionGetConn ()
 
virtual bool ReleaseConn (CDB_Connection *)
 
- Protected Member Functions inherited from CBlobStoreBase
 CBlobStoreBase (const string &table_name, ECompressMethod cm, size_t image_limit, bool log_it)
 
 CBlobStoreBase (const string &table_name, ECompressMethod cm=eNone, size_t image_limit=IMAGE_LIMIT_16MB, CSimpleBlobStore::TFlags flags=CSimpleBlobStore::kDefaults)
 
void ReadTableDescr ()
 
void SetTableDescr (const string &tableName, const string &keyColName, const string &numColName, const string *blobColNames, unsigned nofBC, bool isText=false)
 
void SetTextSizeServerSide (CDB_Connection *pConn, size_t textSize=2147483647)
 
virtual void GenReadQuery (const CTempString &table_hint)
 

Private Attributes

I_DriverContextm_Cntxt
 
string m_Server
 
string m_User
 
string m_Passwd
 
string m_Pool
 

Additional Inherited Members

- Public Types inherited from CBlobStoreBase
enum  { IMAGE_LIMIT_16MB = 0x1000000 }
 

Detailed Description

Definition at line 402 of file blobstore.hpp.

Constructor & Destructor Documentation

◆ CBlobStoreDynamic() [1/2]

CBlobStoreDynamic::CBlobStoreDynamic ( I_DriverContext pCntxt,
const string server,
const string user,
const string passwd,
const string table_name,
ECompressMethod  cm = eNone,
size_t  image_limit = IMAGE_LIMIT_16MB,
CSimpleBlobStore::TFlags  flags = CSimpleBlobStore::kDefaults 
)

◆ CBlobStoreDynamic() [2/2]

CBlobStoreDynamic::CBlobStoreDynamic ( I_DriverContext pCntxt,
const string server,
const string user,
const string passwd,
const string table_name,
ECompressMethod  cm,
size_t  image_limit,
bool  log_it 
)

Definition at line 970 of file blobstore.cpp.

◆ ~CBlobStoreDynamic()

CBlobStoreDynamic::~CBlobStoreDynamic ( )
virtual

Definition at line 1006 of file blobstore.cpp.

Member Function Documentation

◆ GetConn()

CDB_Connection * CBlobStoreDynamic::GetConn ( )
protectedvirtual

◆ ReleaseConn()

bool CBlobStoreDynamic::ReleaseConn ( CDB_Connection pConn)
protectedvirtual

Implements CBlobStoreBase.

Definition at line 1030 of file blobstore.cpp.

Member Data Documentation

◆ m_Cntxt

I_DriverContext* CBlobStoreDynamic::m_Cntxt
private

Definition at line 432 of file blobstore.hpp.

Referenced by CBlobStoreDynamic(), and GetConn().

◆ m_Passwd

string CBlobStoreDynamic::m_Passwd
private

Definition at line 435 of file blobstore.hpp.

Referenced by GetConn().

◆ m_Pool

string CBlobStoreDynamic::m_Pool
private

Definition at line 436 of file blobstore.hpp.

Referenced by GetConn().

◆ m_Server

string CBlobStoreDynamic::m_Server
private

Definition at line 433 of file blobstore.hpp.

Referenced by GetConn().

◆ m_User

string CBlobStoreDynamic::m_User
private

Definition at line 434 of file blobstore.hpp.

Referenced by GetConn().


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:09:17 2024 by modify_doxy.py rev. 669887