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

Search Toolkit Book for CBlobStoreStatic

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

+ Inheritance diagram for CBlobStoreStatic:
+ Collaboration diagram for CBlobStoreStatic:

Public Member Functions

 CBlobStoreStatic (CDB_Connection *pConn, const string &table_name, ECompressMethod cm=eNone, size_t image_limit=IMAGE_LIMIT_16MB, CSimpleBlobStore::TFlags flags=CSimpleBlobStore::kDefaults)
 
 CBlobStoreStatic (CDB_Connection *pConn, const string &table_name, ECompressMethod cm, size_t image_limit, bool log_it)
 
 CBlobStoreStatic (CDB_Connection *pConn, const string &tableName, const string &keyColName, const string &numColName, const string *blobColNames, unsigned nofBC, CSimpleBlobStore::TFlags flags=CSimpleBlobStore::kDefaults, ECompressMethod cm=eNone, size_t image_limit=IMAGE_LIMIT_16MB)
 
 CBlobStoreStatic (CDB_Connection *pConn, const string &tableName, const string &keyColName, const string &numColName, const string *blobColNames, unsigned nofBC, bool isText, ECompressMethod cm=eNone, size_t image_limit=IMAGE_LIMIT_16MB, bool log_it=false)
 
virtual ~CBlobStoreStatic ()
 
- 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

CDB_Connectionm_pConn
 

Additional Inherited Members

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

Detailed Description

Definition at line 345 of file blobstore.hpp.

Constructor & Destructor Documentation

◆ CBlobStoreStatic() [1/4]

CBlobStoreStatic::CBlobStoreStatic ( CDB_Connection pConn,
const string table_name,
ECompressMethod  cm = eNone,
size_t  image_limit = IMAGE_LIMIT_16MB,
CSimpleBlobStore::TFlags  flags = CSimpleBlobStore::kDefaults 
)

◆ CBlobStoreStatic() [2/4]

CBlobStoreStatic::CBlobStoreStatic ( CDB_Connection pConn,
const string table_name,
ECompressMethod  cm,
size_t  image_limit,
bool  log_it 
)

Definition at line 885 of file blobstore.cpp.

◆ CBlobStoreStatic() [3/4]

CBlobStoreStatic::CBlobStoreStatic ( CDB_Connection pConn,
const string tableName,
const string keyColName,
const string numColName,
const string blobColNames,
unsigned  nofBC,
CSimpleBlobStore::TFlags  flags = CSimpleBlobStore::kDefaults,
ECompressMethod  cm = eNone,
size_t  image_limit = IMAGE_LIMIT_16MB 
)

◆ CBlobStoreStatic() [4/4]

CBlobStoreStatic::CBlobStoreStatic ( CDB_Connection pConn,
const string tableName,
const string keyColName,
const string numColName,
const string blobColNames,
unsigned  nofBC,
bool  isText,
ECompressMethod  cm = eNone,
size_t  image_limit = IMAGE_LIMIT_16MB,
bool  log_it = false 
)

Definition at line 909 of file blobstore.cpp.

◆ ~CBlobStoreStatic()

CBlobStoreStatic::~CBlobStoreStatic ( )
virtual

Definition at line 956 of file blobstore.cpp.

Member Function Documentation

◆ GetConn()

CDB_Connection * CBlobStoreStatic::GetConn ( )
protectedvirtual

Implements CBlobStoreBase.

Definition at line 949 of file blobstore.cpp.

References DATABASE_DRIVER_ERROR, and m_pConn.

◆ ReleaseConn()

virtual bool CBlobStoreStatic::ReleaseConn ( CDB_Connection )
inlineprotectedvirtual

Implements CBlobStoreBase.

Definition at line 388 of file blobstore.hpp.

Member Data Documentation

◆ m_pConn

CDB_Connection* CBlobStoreStatic::m_pConn
private

Definition at line 391 of file blobstore.hpp.

Referenced by CBlobStoreStatic(), and GetConn().


The documentation for this class was generated from the following files:
Modified on Sun Feb 25 03:06:15 2024 by modify_doxy.py rev. 669887