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

#include <RDBC/blob/master/include/RDBC/TSQLConnection.h>

+ Inheritance diagram for TSQLConnection:
+ Collaboration diagram for TSQLConnection:

Public Member Functions

virtual Bool_t GetAutoCommit ()=0
 
virtual void SetAutoCommit (Bool_t autoCommit=kTRUE)=0
 
virtual TString GetCatalog ()=0
 
virtual void SetCatalog (const TString &catalog)=0
 
virtual Bool_t IsClosed ()
 
virtual Bool_t IsReadOnly ()=0
 
virtual void SetReadOnly (Bool_t readOnly=kTRUE)=0
 
virtual Bool_t GetTrace ()=0
 
virtual void SetTrace (Bool_t trace=kTRUE)=0
 
virtual void SetTraceFile (const TString &filename)=0
 
virtual TString GetTraceFile ()=0
 
virtual Int_t GetTransactionIsolation ()=0
 
virtual void SetTransactionIsolation (Int_t level)=0
 
virtual TString NativeSQL (const TString &sql)=0
 
virtual void Commit ()=0
 
virtual void Rollback ()=0
 
virtual TSQLStatementCreateStatement ()=0
 
virtual TSQLStatementCreateStatement (Int_t resultSetType, Int_t resultSetConcurrency)=0
 
virtual TSQLPreparedStatementPrepareStatement (const TString &sql)=0
 
virtual TSQLPreparedStatementPrepareStatement (const TString &sql, Int_t resultSetType, Int_t resultSetConcurrency)=0
 
virtual TSQLCallableStatementPrepareCall (const TString &sql)=0
 
virtual TSQLCallableStatementPrepareCall (const TString &sql, Int_t resultSetType, Int_t resultSetConcurrency)=0
 
virtual TSQLDatabaseMetaDataGetMetaData ()=0
 
virtual Bool_t HasBatchSupport ()=0
 
virtual void Close ()
 
TList * GetListOfStatements () const
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual void Print (Option_t *option="") const
 
virtual void ls (Option_t *option="") const
 
- Public Member Functions inherited from TSQL
 TSQL (void *imp=0)
 
virtual ~TSQL ()
 
virtual void Throw (TSQLException *e)
 
TList * GetWarnings () const
 
void ClearWarnings ()
 
virtual Bool_t IsValid () const
 

Protected Member Functions

 TSQLConnection (const TString &url, const TString &username, const TString &password)
 
 TSQLConnection (const TString &connectString)
 
void SetURL (const TString &url)
 
virtual ~TSQLConnection ()
 

Protected Attributes

TSQLDatabaseMetaDatafMetaData
 
TList * fListOfStatements
 
- Protected Attributes inherited from TSQL
TList * fWarnings
 
void * fImp
 

Friends

class TSQLDriverManager
 

Additional Inherited Members

- Static Public Member Functions inherited from TSQL
static Bool_t SetHandler (const TString &handler)
 
static Bool_t UnsetHandler (const TString &handler="")
 

Detailed Description

Definition at line 37 of file TSQLConnection.h.

View newest version in sPHENIX GitHub at line 37 of file TSQLConnection.h

Constructor & Destructor Documentation

TSQLConnection::TSQLConnection ( const TString &  url,
const TString &  username,
const TString &  password 
)
protected

Definition at line 183 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 183 of file MySQLConnection.cxx

References TSQL::fImp, MySQLConnectionPrivate::fIsConnected, fListOfStatements, MySQLConnectionPrivate::fLocked, fMetaData, MySQLConnectionPrivate::fMYSQL, TSQL::Throw(), and summary::url.

+ Here is the call graph for this function:

TSQLConnection::TSQLConnection ( const TString &  connectString)
protected

Definition at line 161 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 161 of file MySQLConnection.cxx

References TSQL::fImp, fListOfStatements, and fMetaData.

TSQLConnection::~TSQLConnection ( )
protectedvirtual

Definition at line 231 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 231 of file MySQLConnection.cxx

References Close().

+ Here is the call graph for this function:

Member Function Documentation

void TSQLConnection::Close ( )
virtual

Reimplemented in ODBCConnection.

Definition at line 511 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 511 of file MySQLConnection.cxx

References TSQL::fImp, fListOfStatements, fMetaData, MySQLConnectionPrivate::fMYSQL, TSQLDriverManager::GetConnections(), IsClosed(), and TSQL::Throw().

Referenced by TRDBCServer::Close(), ODBCConnection::Close(), PgPostApplication::DisconnectDB(), DbForm::HandleDisconnect(), oproducer(), RDBCconsumer(), RDBCfirst(), RDBCTestConnect(), RDBCTestInt(), RDBCTestMetaData(), PgPostApplication::setDBName(), PgPostApplication::~PgPostApplication(), and ~TSQLConnection().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLConnection::Commit ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 476 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 476 of file MySQLConnection.cxx

References IsClosed(), and TSQL::Throw().

Referenced by PgPostBankBackupManager::CleanTable(), PgPostApplication::commit(), PgPostBankWrapper::commit(), PgPostBankBackupManager::commit(), PgPostBankBackupManager::commitAllBankfromTFile(), CreateStuff(), Fill(), PgPostBankBackupLog::Log(), oproducer(), Populate(), and RDBCconsumer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TSQLStatement * TSQLConnection::CreateStatement ( Int_t  resultSetType,
Int_t  resultSetConcurrency 
)
pure virtual

Implemented in ODBCConnection.

Definition at line 264 of file MySQLConnection.cxx.

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

References fListOfStatements.

Bool_t TSQLConnection::GetAutoCommit ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 461 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 461 of file MySQLConnection.cxx

TString TSQLConnection::GetCatalog ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 649 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 649 of file MySQLConnection.cxx

References TSQL::fImp, IsClosed(), and TSQL::Throw().

Referenced by TSQLStatement::Execute(), and TSQLStatement::ExecuteQuery().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TList* TSQLConnection::GetListOfStatements ( ) const
inline

Definition at line 84 of file TSQLConnection.h.

View newest version in sPHENIX GitHub at line 84 of file TSQLConnection.h

References fListOfStatements.

Referenced by PgPostBankBackupManager::deleteODBCPreparedStatement(), PgPostBankBackupManager::deleteSQLStatement(), and TSQLStatement::~TSQLStatement().

+ Here is the caller graph for this function:

TSQLDatabaseMetaData * TSQLConnection::GetMetaData ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 567 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 567 of file MySQLConnection.cxx

References fMetaData.

Referenced by Compare(), DbForm::HandleConnect(), oproducer(), and RDBCTestMetaData().

+ Here is the caller graph for this function:

const char * TSQLConnection::GetName ( ) const
virtual

Definition at line 1069 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 1069 of file MySQLConnection.cxx

References fMetaData, and TSQLDatabaseMetaData::GetURL().

+ Here is the call graph for this function:

const char * TSQLConnection::GetTitle ( ) const
virtual

Definition at line 1077 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 1077 of file MySQLConnection.cxx

Bool_t TSQLConnection::GetTrace ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 708 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 708 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

TString TSQLConnection::GetTraceFile ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 725 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 725 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

Int_t TSQLConnection::GetTransactionIsolation ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 695 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 695 of file MySQLConnection.cxx

References kTRANSACTION_SERIALIZABLE.

Bool_t TSQLConnection::HasBatchSupport ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 742 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 742 of file MySQLConnection.cxx

Bool_t TSQLConnection::IsReadOnly ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 610 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 610 of file MySQLConnection.cxx

References TSQL::fImp, and MySQLConnectionPrivate::fReadOnly.

virtual void TSQLConnection::ls ( Option_t *  option = "") const
inlinevirtual

Definition at line 88 of file TSQLConnection.h.

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

References Print().

+ Here is the call graph for this function:

TString TSQLConnection::NativeSQL ( const TString &  sql)
pure virtual

Implemented in ODBCConnection.

Definition at line 412 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 412 of file MySQLConnection.cxx

TSQLCallableStatement * TSQLConnection::PrepareCall ( const TString &  sql)
pure virtual

Implemented in ODBCConnection.

Definition at line 325 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 325 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

TSQLCallableStatement * TSQLConnection::PrepareCall ( const TString &  sql,
Int_t  resultSetType,
Int_t  resultSetConcurrency 
)
pure virtual

Implemented in ODBCConnection.

Definition at line 384 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 384 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

TSQLPreparedStatement * TSQLConnection::PrepareStatement ( const TString &  sql)
pure virtual

Implemented in ODBCConnection.

Definition at line 289 of file MySQLConnection.cxx.

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

References fListOfStatements, and TSQLPreparedStatement.

Referenced by PgPostBankBackupManager::CleanTable(), PgPostBankWrapper::commit(), PgPostBankBackupManager::commit(), PgPostBankBackupManager::commitAllBankfromTFile(), CreateStuff(), createTables(), dropTable(), PgPostBankBackupLog::Init(), Populate(), populateTables(), and RDBCTestInt().

+ Here is the caller graph for this function:

TSQLPreparedStatement * TSQLConnection::PrepareStatement ( const TString &  sql,
Int_t  resultSetType,
Int_t  resultSetConcurrency 
)
pure virtual

Implemented in ODBCConnection.

Definition at line 356 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 356 of file MySQLConnection.cxx

References fListOfStatements, and TSQLPreparedStatement.

void TSQLConnection::Print ( Option_t *  option = "") const
virtual

Definition at line 1007 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 1007 of file MySQLConnection.cxx

References catalogInfo(), driverInfo(), fMetaData, funcInfo(), TSQLDatabaseMetaData::GetURL(), keywordInfo(), kTYPE_FORWARD_ONLY, kTYPE_SCROLL_INSENSITIVE, kTYPE_SCROLL_SENSITIVE, printf(), productInfo(), rsInfo(), schemaInfo(), and transactionInfo().

Referenced by Fill(), and ls().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLConnection::Rollback ( )
pure virtual

Implemented in ODBCConnection.

Definition at line 494 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 494 of file MySQLConnection.cxx

References IsClosed(), and TSQL::Throw().

Referenced by PgPostApplication::abort().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLConnection::SetAutoCommit ( Bool_t  autoCommit = kTRUE)
pure virtual

Implemented in ODBCConnection.

Definition at line 432 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 432 of file MySQLConnection.cxx

References TSQL::Throw().

Referenced by oproducer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLConnection::SetCatalog ( const TString &  catalog)
pure virtual

Implemented in ODBCConnection.

Definition at line 624 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 624 of file MySQLConnection.cxx

References TSQL::fImp, MySQLConnectionPrivate::fMYSQL, IsClosed(), and TSQL::Throw().

Referenced by TSQLStatement::Execute(), and TSQLStatement::ExecuteQuery().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLConnection::SetReadOnly ( Bool_t  readOnly = kTRUE)
pure virtual

Implemented in ODBCConnection.

Definition at line 585 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 585 of file MySQLConnection.cxx

References TSQL::fImp, MySQLConnectionPrivate::fReadOnly, IsClosed(), and TSQL::Throw().

+ Here is the call graph for this function:

void TSQLConnection::SetTrace ( Bool_t  trace = kTRUE)
pure virtual

Implemented in ODBCConnection.

Definition at line 717 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 717 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

void TSQLConnection::SetTraceFile ( const TString &  filename)
pure virtual

Implemented in ODBCConnection.

Definition at line 734 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 734 of file MySQLConnection.cxx

References TSQL::Throw().

+ Here is the call graph for this function:

void TSQLConnection::SetTransactionIsolation ( Int_t  level)
pure virtual

Implemented in ODBCConnection.

Definition at line 669 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 669 of file MySQLConnection.cxx

References IsClosed(), and TSQL::Throw().

+ Here is the call graph for this function:

void TSQLConnection::SetURL ( const TString &  url)
protected

Definition at line 753 of file MySQLConnection.cxx.

View newest version in sPHENIX GitHub at line 753 of file MySQLConnection.cxx

References TSQL::fImp, fMetaData, MySQLConnectionPrivate::fURL, TSQLDatabaseMetaData::SetURL(), and summary::url.

Referenced by TSQLDriverManager::GetConnection().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class TSQLDriverManager
friend

Definition at line 39 of file TSQLConnection.h.

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

Member Data Documentation

TList* TSQLConnection::fListOfStatements
protected
TSQLDatabaseMetaData* TSQLConnection::fMetaData
protected

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