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

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

+ Inheritance diagram for TSQLImporter:
+ Collaboration diagram for TSQLImporter:

Public Member Functions

 TSQLImporter ()
 
 TSQLImporter (const TString &url, TSQLConnection *con)
 
virtual ~TSQLImporter ()
 
virtual Int_t Import (const TString &url, TSQLConnection *con)
 
virtual Bool_t IsValid () const
 
void Throw (TSQLException *e)
 

Protected Attributes

TSQLConnectionfConnection
 
TSQLImportClientfClient
 

Private Member Functions

void LoadCatalog (const TString &url)
 
void LoadTable (const TString &url)
 

Private Attributes

Int_t fStatus
 

Detailed Description

Definition at line 18 of file TSQLImporter.h.

View newest version in sPHENIX GitHub at line 18 of file TSQLImporter.h

Constructor & Destructor Documentation

TSQLImporter::TSQLImporter ( )
TSQLImporter::TSQLImporter ( const TString &  url,
TSQLConnection con 
)
inline

Definition at line 31 of file TSQLImporter.h.

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

References Import().

+ Here is the call graph for this function:

TSQLImporter::~TSQLImporter ( )
virtual

Definition at line 189 of file TSQLImporter.cxx.

View newest version in sPHENIX GitHub at line 189 of file TSQLImporter.cxx

References fClient.

Member Function Documentation

Int_t TSQLImporter::Import ( const TString &  url,
TSQLConnection con 
)
virtual

Definition at line 159 of file TSQLImporter.cxx.

View newest version in sPHENIX GitHub at line 159 of file TSQLImporter.cxx

References con, fConnection, fStatus, HTTP_FORBIDDEN, HTTP_OK, LoadCatalog(), and LoadTable().

Referenced by TSQLDriverManager::GetConnection(), and TSQLImporter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t TSQLImporter::IsValid ( ) const
virtual

Definition at line 181 of file TSQLImporter.cxx.

View newest version in sPHENIX GitHub at line 181 of file TSQLImporter.cxx

References fStatus.

Referenced by TSQLDriverManager::GetConnection().

+ Here is the caller graph for this function:

void TSQLImporter::LoadCatalog ( const TString &  url)
private

Definition at line 112 of file TSQLImporter.cxx.

View newest version in sPHENIX GitHub at line 112 of file TSQLImporter.cxx

References TSQLConnection::CreateStatement(), TSQLStatement::ExecuteQuery(), fClient, fConnection, fStatus, TSQLResultSet::GetString(), TSQLImportClient::GetTableName(), HTTP_NOT_ACCEPTABLE, HTTP_OK, LoadTable(), and TSQLResultSet::Next().

Referenced by Import().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLImporter::LoadTable ( const TString &  url)
private

Definition at line 31 of file TSQLImporter.cxx.

View newest version in sPHENIX GitHub at line 31 of file TSQLImporter.cxx

References TSQLConnection::CreateStatement(), Acts::UnitConstants::e, TSQLStatement::ExecuteUpdate(), fClient, fConnection, file, fStatus, TSQLImportClient::GetColumns(), TSQLImportClient::GetException(), TSQLImportClient::GetLocal(), TSQLImportClient::GetLocalFile(), TSQLImportClient::GetSkipLines(), TSQLImportClient::GetStatus(), TSQLImportClient::GetTableName(), HTTP_NOT_ACCEPTABLE, HTTP_OK, TSQLImportClient::Init(), TSQLImportClient::IsValid(), and Throw().

Referenced by Import(), and LoadCatalog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TSQLImporter::Throw ( TSQLException e)
inline

Definition at line 35 of file TSQLImporter.h.

View newest version in sPHENIX GitHub at line 35 of file TSQLImporter.h

Referenced by LoadTable().

+ Here is the caller graph for this function:

Member Data Documentation

TSQLImportClient* TSQLImporter::fClient
protected

Definition at line 22 of file TSQLImporter.h.

View newest version in sPHENIX GitHub at line 22 of file TSQLImporter.h

Referenced by LoadCatalog(), LoadTable(), and ~TSQLImporter().

TSQLConnection* TSQLImporter::fConnection
protected

Definition at line 21 of file TSQLImporter.h.

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

Referenced by Import(), LoadCatalog(), and LoadTable().

Int_t TSQLImporter::fStatus
private

Definition at line 27 of file TSQLImporter.h.

View newest version in sPHENIX GitHub at line 27 of file TSQLImporter.h

Referenced by Import(), IsValid(), LoadCatalog(), and LoadTable().


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