EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairDbTableProxyRegistry Class Reference

#include <EicRoot/blob/master/dbase/dbInterface/FairDbTableProxyRegistry.h>

+ Inheritance diagram for FairDbTableProxyRegistry:
+ Collaboration diagram for FairDbTableProxyRegistry:

Classes

struct  Cleaner
 

Public Member Functions

void ShowStatistics () const
 
void Config ()
 
void ClearRollbackDates ()
 
void ClearSimFlagAssociation ()
 
FairDbMultConnectorGetMultConnector ()
 
FairDbTableProxyGetTableProxy (const std::string &tableName, const FairDbTableRow *tableRow)
 
Bool_t HasRowCounter (const std::string &tableName)
 
void PurgeCaches ()
 
void RefreshMetaData (const std::string &tableName)
 
void SetSqlCondition (const std::string &sql="")
 
- Public Member Functions inherited from FairDbConfigurable
 FairDbConfigurable ()
 
virtual ~FairDbConfigurable ()
 
virtual const FairRegistryDefaultConfig () const
 
FairRegistryGetConfig ()
 
const FairRegistryGetConfig () const
 
int Update ()
 
void Set (FairDbConfDialog *d=0)
 
void Set (const char *s)
 

Static Public Member Functions

static FairDbTableProxyRegistryInstance ()
 
static Bool_t IsActive ()
 

Public Attributes

FairDbMultConnectorfMultConnector
 MultConnector.
 

Protected Member Functions

 FairDbTableProxyRegistry ()
 
virtual ~FairDbTableProxyRegistry ()
 
- Protected Member Functions inherited from FairDbConfigurable
virtual void CommitDefaultConfig (const FairRegistry &r)
 

Private Member Functions

void SetConfigFromEnvironment ()
 
 FairDbTableProxyRegistry (const FairDbTableProxyRegistry &)
 
FairDbTableProxyRegistryoperator= (const FairDbTableProxyRegistry &)
 
void ApplySqlCondition () const
 
void ApplySqlCondition (FairDbTableProxy *proxy) const
 

Private Attributes

std::string fSqlCondition
 Default optional condition.
 
std::map< std::string,
FairDbTableProxy * > 
fTPmap
 TableName::RowName -> TableProxy.
 
FairDbRollbackDates fRollbackDates
 Rollback dates for each table.
 
FairDbSimFlagAssociation fSimFlagAss
 Lists of SimFlag associations.
 

Static Private Attributes

static FairDbTableProxyRegistryfgInstance
 Holds only instance.
 

Friends

class Cleaner
 

Detailed Description

Definition at line 21 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 21 of file FairDbTableProxyRegistry.h

Constructor & Destructor Documentation

FairDbTableProxyRegistry::FairDbTableProxyRegistry ( )
protected

Definition at line 23 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 23 of file FairDbTableProxyRegistry.cxx

References fMultConnector, and SetConfigFromEnvironment().

Referenced by Instance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FairDbTableProxyRegistry::~FairDbTableProxyRegistry ( )
protectedvirtual

Definition at line 50 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 50 of file FairDbTableProxyRegistry.cxx

References fgInstance, fMultConnector, fTPmap, FairDbConfigurable::GetConfig(), FairDbExceptionLog::GetGELog(), FairDbExceptionLog::Print(), FairDbServices::SetRecord(), and FairDbExceptionLog::Size().

+ Here is the call graph for this function:

FairDbTableProxyRegistry::FairDbTableProxyRegistry ( const FairDbTableProxyRegistry )
private

Member Function Documentation

void FairDbTableProxyRegistry::ApplySqlCondition ( ) const
private

Definition at line 92 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 92 of file FairDbTableProxyRegistry.cxx

References fTPmap.

Referenced by ClearRollbackDates(), Config(), GetTableProxy(), and SetSqlCondition().

+ Here is the caller graph for this function:

void FairDbTableProxyRegistry::ApplySqlCondition ( FairDbTableProxy proxy) const
private

Definition at line 101 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 101 of file FairDbTableProxyRegistry.cxx

References fRollbackDates, fSqlCondition, FairDbRollbackDates::GetDate(), FairDbTableProxy::GetTableName(), FairDbRollbackDates::GetType(), and FairDbTableProxy::SetSqlCondition().

+ Here is the call graph for this function:

void FairDbTableProxyRegistry::ClearRollbackDates ( )

Definition at line 119 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 119 of file FairDbTableProxyRegistry.cxx

References ApplySqlCondition(), FairDbRollbackDates::Clear(), and fRollbackDates.

+ Here is the call graph for this function:

void FairDbTableProxyRegistry::ClearSimFlagAssociation ( )

Definition at line 127 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 127 of file FairDbTableProxyRegistry.cxx

References FairDbSimFlagAssociation::Clear(), and fSimFlagAss.

+ Here is the call graph for this function:

void FairDbTableProxyRegistry::Config ( )
virtual
FairDbMultConnector& FairDbTableProxyRegistry::GetMultConnector ( )
inline

Definition at line 36 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 36 of file FairDbTableProxyRegistry.h

References fMultConnector.

Referenced by FairDbSqlValPacket::Recreate(), FairDbSqlValPacket::SetMetaData(), FairDbLogEntry::SetServerName(), ShowStatistics(), and FairDbConfigStream::Write().

+ Here is the caller graph for this function:

FairDbTableProxy & FairDbTableProxyRegistry::GetTableProxy ( const std::string &  tableName,
const FairDbTableRow tableRow 
)

Definition at line 228 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 228 of file FairDbTableProxyRegistry.cxx

References ApplySqlCondition(), fMultConnector, fTPmap, FairDbMultConnector::TableExists(), and FairUtilString::ToUpper().

Referenced by ClassImp(), HasRowCounter(), FairDbSqlValPacket::Recreate(), FairDbSqlValPacket::SetMetaData(), FairDbSqlValPacket::Store(), and FairDbLogEntry::Write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairDbTableProxyRegistry::HasRowCounter ( const std::string &  tableName)

Definition at line 255 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 255 of file FairDbTableProxyRegistry.cxx

References FairDbTableProxy::GetMetaData(), GetTableProxy(), and FairDbTableMetaData::HasRowCounter().

+ Here is the call graph for this function:

FairDbTableProxyRegistry & FairDbTableProxyRegistry::Instance ( )
static

Definition at line 264 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 264 of file FairDbTableProxyRegistry.cxx

References FairDbTableProxyRegistry(), and fgInstance.

Referenced by ClassImp(), FairDbSqlValPacket::CreateTable(), FairDbSqlValPacket::Recreate(), FairDbSqlValPacket::SetMetaData(), FairDbLogEntry::SetServerName(), FairDbSqlValPacket::Store(), FairDbConfigStream::Write(), and FairDbLogEntry::Write().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool_t FairDbTableProxyRegistry::IsActive ( )
inlinestatic

Definition at line 31 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 31 of file FairDbTableProxyRegistry.h

References fgInstance.

FairDbTableProxyRegistry& FairDbTableProxyRegistry::operator= ( const FairDbTableProxyRegistry )
private
void FairDbTableProxyRegistry::PurgeCaches ( )

Definition at line 276 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 276 of file FairDbTableProxyRegistry.cxx

References fTPmap, FairDbTableProxy::GetCache(), and FairDbCache::Purge().

+ Here is the call graph for this function:

void FairDbTableProxyRegistry::RefreshMetaData ( const std::string &  tableName)

Definition at line 289 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 289 of file FairDbTableProxyRegistry.cxx

References fTPmap, FairDbTableProxy::GetTableName(), and FairDbTableProxy::RefreshMetaData().

Referenced by FairDbSqlValPacket::CreateTable().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairDbTableProxyRegistry::SetConfigFromEnvironment ( )
private

Definition at line 301 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 301 of file FairDbTableProxyRegistry.cxx

References FairDbConfigurable::Set(), FairUtilString::StringTok(), and FairDbConfigurable::Update().

Referenced by FairDbTableProxyRegistry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void FairDbTableProxyRegistry::SetSqlCondition ( const std::string &  sql = "")

Definition at line 317 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 317 of file FairDbTableProxyRegistry.cxx

References ApplySqlCondition(), and fSqlCondition.

+ Here is the call graph for this function:

void FairDbTableProxyRegistry::ShowStatistics ( ) const

Definition at line 324 of file FairDbTableProxyRegistry.cxx.

View newest version in sPHENIX GitHub at line 324 of file FairDbTableProxyRegistry.cxx

References fTPmap, GetMultConnector(), and name.

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class Cleaner
friend

Definition at line 67 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 67 of file FairDbTableProxyRegistry.h

Member Data Documentation

FairDbTableProxyRegistry* FairDbTableProxyRegistry::fgInstance
staticprivate

Holds only instance.

Definition at line 103 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 103 of file FairDbTableProxyRegistry.h

Referenced by Instance(), IsActive(), FairDbTableProxyRegistry::Cleaner::~Cleaner(), and ~FairDbTableProxyRegistry().

FairDbMultConnector* FairDbTableProxyRegistry::fMultConnector

MultConnector.

Definition at line 71 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 71 of file FairDbTableProxyRegistry.h

Referenced by Config(), FairDbTableProxyRegistry(), GetMultConnector(), GetTableProxy(), and ~FairDbTableProxyRegistry().

FairDbRollbackDates FairDbTableProxyRegistry::fRollbackDates
private

Rollback dates for each table.

Definition at line 96 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 96 of file FairDbTableProxyRegistry.h

Referenced by ApplySqlCondition(), ClearRollbackDates(), and Config().

FairDbSimFlagAssociation FairDbTableProxyRegistry::fSimFlagAss
private

Lists of SimFlag associations.

Definition at line 99 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 99 of file FairDbTableProxyRegistry.h

Referenced by ClearSimFlagAssociation(), and Config().

std::string FairDbTableProxyRegistry::fSqlCondition
private

Default optional condition.

Definition at line 88 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 88 of file FairDbTableProxyRegistry.h

Referenced by ApplySqlCondition(), and SetSqlCondition().

std::map<std::string,FairDbTableProxy*> FairDbTableProxyRegistry::fTPmap
private

TableName::RowName -> TableProxy.

Definition at line 92 of file FairDbTableProxyRegistry.h.

View newest version in sPHENIX GitHub at line 92 of file FairDbTableProxyRegistry.h

Referenced by ApplySqlCondition(), GetTableProxy(), PurgeCaches(), RefreshMetaData(), ShowStatistics(), and ~FairDbTableProxyRegistry().


The documentation for this class was generated from the following files: