Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PgPostApplication Class Reference

#include <coresoftware/blob/master/offline/database/pdbcal/pg/PgPostApplication.h>

+ Inheritance diagram for PgPostApplication:
+ Collaboration diagram for PgPostApplication:

Public Member Functions

virtual ~PgPostApplication ()
 
PdbStatus startUpdate ()
 
PdbStatus startRead ()
 
PdbStatus commit ()
 
PdbStatus commit (PdbCalBank *)
 
PdbStatus commit (PdbCalBank *, int rid, long, long, long)
 
PdbStatus abort ()
 
PdbStatus isActive ()
 
TSQLConnectiongetConnection ()
 
int setDBName (const std::string &name)
 
int DisconnectDB ()
 
- Public Member Functions inherited from PdbApplication
virtual ~PdbApplication ()
 

Static Public Member Functions

static int Register (const std::string &dbname="calibrations")
 
static int releaseConnection ()
 
static PgPostApplicationinstance ()
 
- Static Public Member Functions inherited from PdbApplication
static PdbApplicationinstance ()
 

Protected Member Functions

 PgPostApplication (const std::string &dbname)
 
- Protected Member Functions inherited from PdbApplication
 PdbApplication ()
 

Protected Attributes

bool readOnly
 
std::string dsn
 

Static Protected Attributes

static TSQLConnectioncon = nullptr
 
static PgPostApplicationmySpecificCopy = nullptr
 
- Static Protected Attributes inherited from PdbApplication
static std::unique_ptr
< PdbApplication
__instance
 

Detailed Description

Definition at line 14 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 14 of file PgPostApplication.h

Constructor & Destructor Documentation

PgPostApplication::PgPostApplication ( const std::string &  dbname)
protected

Definition at line 66 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 66 of file PgPostApplication.cc

PgPostApplication::~PgPostApplication ( )
virtual

Definition at line 72 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 72 of file PgPostApplication.cc

References TSQLConnection::Close(), con, and mySpecificCopy.

+ Here is the call graph for this function:

Member Function Documentation

PdbStatus PgPostApplication::abort ( )
virtual

Implements PdbApplication.

Definition at line 132 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 132 of file PgPostApplication.cc

References PgPostBankWrapperManager::clear(), con, PgPostBankWrapperManager::instance(), and TSQLConnection::Rollback().

+ Here is the call graph for this function:

PdbStatus PgPostApplication::commit ( )
virtual

Implements PdbApplication.

Definition at line 141 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 141 of file PgPostApplication.cc

References PgPostBankWrapperManager::clear(), PgPostBankWrapperManager::commit(), TSQLConnection::Commit(), con, PgPostBankWrapperManager::instance(), and readOnly.

+ Here is the call graph for this function:

PdbStatus PgPostApplication::commit ( PdbCalBank b)
virtual

Implements PdbApplication.

Definition at line 159 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 159 of file PgPostApplication.cc

References KFPMath::b, PgPostBankWrapper::commit(), and PHWHERE.

+ Here is the call graph for this function:

PdbStatus PgPostApplication::commit ( PdbCalBank b,
int  rid,
long  ,
long  ,
long   
)
virtual

Implements PdbApplication.

Definition at line 174 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 174 of file PgPostApplication.cc

References KFPMath::b, PgPostBankWrapper::commit(), and PHWHERE.

+ Here is the call graph for this function:

int PgPostApplication::DisconnectDB ( )
virtual

Implements PdbApplication.

Definition at line 188 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 188 of file PgPostApplication.cc

References TSQLConnection::Close(), and con.

+ Here is the call graph for this function:

TSQLConnection * PgPostApplication::getConnection ( )
PdbStatus PgPostApplication::isActive ( )
inlinevirtual

Implements PdbApplication.

Definition at line 28 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 28 of file PgPostApplication.h

int PgPostApplication::Register ( const std::string &  dbname = "calibrations")
static

Definition at line 47 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 47 of file PgPostApplication.cc

Referenced by getConnection().

+ Here is the caller graph for this function:

int PgPostApplication::releaseConnection ( )
static

Definition at line 55 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 55 of file PgPostApplication.cc

References con.

int PgPostApplication::setDBName ( const std::string &  name)
virtual

Implements PdbApplication.

Definition at line 97 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 97 of file PgPostApplication.cc

References TSQLConnection::Close(), con, dsn, TSQLDriverManager::GetConnection(), gSQLDriverManager, perf_headwind::name, and PHWHERE.

+ Here is the call graph for this function:

PdbStatus PgPostApplication::startRead ( )
virtual

Implements PdbApplication.

Definition at line 125 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 125 of file PgPostApplication.cc

References readOnly.

Referenced by PgPostCalBankIterator::init().

+ Here is the caller graph for this function:

PdbStatus PgPostApplication::startUpdate ( )
virtual

Implements PdbApplication.

Definition at line 118 of file PgPostApplication.cc.

View newest version in sPHENIX GitHub at line 118 of file PgPostApplication.cc

References readOnly.

Member Data Documentation

TSQLConnection * PgPostApplication::con = nullptr
staticprotected

Definition at line 38 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 38 of file PgPostApplication.h

Referenced by abort(), commit(), DisconnectDB(), getConnection(), setDBName(), and ~PgPostApplication().

std::string PgPostApplication::dsn
protected

Definition at line 41 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 41 of file PgPostApplication.h

Referenced by getConnection(), and setDBName().

PgPostApplication * PgPostApplication::mySpecificCopy = nullptr
staticprotected

Definition at line 39 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 39 of file PgPostApplication.h

Referenced by ~PgPostApplication().

bool PgPostApplication::readOnly
protected

Definition at line 40 of file PgPostApplication.h.

View newest version in sPHENIX GitHub at line 40 of file PgPostApplication.h

Referenced by commit(), startRead(), and startUpdate().


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