TSapDBServer Class Reference

#include <TSapDBServer.h>

Inheritance diagram for TSapDBServer:

TSQLServer TObject TObject List of all members.

Public Member Functions

 TSapDBServer (const char *db, const char *uid, const char *pw)
 ~TSapDBServer ()
void Close (Option_t *opt="")
TSQLResultQuery (const char *sql)
Int_t SelectDataBase (const char *dbname)
TSQLResultGetDataBases (const char *wild=0)
TSQLResultGetTables (const char *dbname, const char *wild=0)
TSQLResultGetColumns (const char *dbname, const char *table, const char *wild=0)
Int_t CreateDataBase (const char *dbname)
Int_t DropDataBase (const char *dbname)
Int_t Reload ()
Int_t Shutdown ()
const char * ServerInfo ()

Static Private Member Functions

static Int_t printSQLError (SQLHDBC hdbc, SQLHSTMT hstmt)

Private Attributes

SQLHDBC fSapDB
SQLHENV fEnv
SQLHSTMT fStmt
SQLHSTMT fStmtCnt

Detailed Description

Definition at line 38 of file TSapDBServer.h.


Constructor & Destructor Documentation

TSapDBServer::TSapDBServer ( const char *  db,
const char *  uid,
const char *  pw 
)

TSapDBServer::~TSapDBServer (  ) 

Definition at line 101 of file TSapDBServer.cxx.

References Close(), and TSQLServer::IsConnected().


Member Function Documentation

Int_t TSapDBServer::printSQLError ( SQLHDBC  hdbc,
SQLHSTMT  hstmt 
) [static, private]

Definition at line 398 of file TSapDBServer.cxx.

Referenced by Close(), and Query().

void TSapDBServer::Close ( Option_t opt = ""  )  [virtual]

Implements TSQLServer.

Definition at line 110 of file TSapDBServer.cxx.

References TObject::Error(), fEnv, TSQLServer::fPort, fSapDB, fStmt, fStmtCnt, and printSQLError().

Referenced by ~TSapDBServer().

TSQLResult * TSapDBServer::Query ( const char *  sql  )  [virtual]

Implements TSQLServer.

Definition at line 146 of file TSapDBServer.cxx.

References TString::BeginsWith(), TString::Data(), TObject::Error(), fSapDB, fStmt, fStmtCnt, i, TString::Index(), TSQLServer::IsConnected(), TString::kBoth, TString::kIgnoreCase, kNPOS, TString::Length(), printSQLError(), and TString::Strip().

Referenced by GetColumns(), GetTables(), and ServerInfo().

Int_t TSapDBServer::SelectDataBase ( const char *  dbname  )  [virtual]

Implements TSQLServer.

Definition at line 221 of file TSapDBServer.cxx.

References TObject::Error(), TSQLServer::fDB, and TSQLServer::IsConnected().

Referenced by GetColumns().

TSQLResult * TSapDBServer::GetDataBases ( const char *  wild = 0  )  [virtual]

Implements TSQLServer.

Definition at line 240 of file TSapDBServer.cxx.

References TObject::Error(), TSQLServer::fDB, GetTables(), and TSQLServer::IsConnected().

TSQLResult * TSapDBServer::GetTables ( const char *  dbname,
const char *  wild = 0 
) [virtual]

Implements TSQLServer.

Definition at line 258 of file TSapDBServer.cxx.

References TObject::Error(), Form(), TSQLServer::IsConnected(), and Query().

Referenced by GetDataBases().

TSQLResult * TSapDBServer::GetColumns ( const char *  dbname,
const char *  table,
const char *  wild = 0 
) [virtual]

Implements TSQLServer.

Definition at line 278 of file TSapDBServer.cxx.

References TObject::Error(), Form(), TSQLServer::IsConnected(), Query(), and SelectDataBase().

Int_t TSapDBServer::CreateDataBase ( const char *  dbname  )  [virtual]

Implements TSQLServer.

Definition at line 306 of file TSapDBServer.cxx.

References TObject::Error(), and TSQLServer::IsConnected().

Int_t TSapDBServer::DropDataBase ( const char *  dbname  )  [virtual]

Implements TSQLServer.

Definition at line 321 of file TSapDBServer.cxx.

References TObject::Error(), and TSQLServer::IsConnected().

Int_t TSapDBServer::Reload (  )  [virtual]

Implements TSQLServer.

Definition at line 337 of file TSapDBServer.cxx.

References TObject::Error(), and TSQLServer::IsConnected().

Int_t TSapDBServer::Shutdown (  )  [virtual]

Implements TSQLServer.

Definition at line 353 of file TSapDBServer.cxx.

References TObject::Error(), and TSQLServer::IsConnected().

const char * TSapDBServer::ServerInfo (  )  [virtual]

Implements TSQLServer.

Definition at line 369 of file TSapDBServer.cxx.

References TObject::Error(), TSQLRow::GetField(), info, TSQLServer::IsConnected(), TSQLResult::Next(), and Query().


Member Data Documentation

SQLHDBC TSapDBServer::fSapDB [private]

Definition at line 41 of file TSapDBServer.h.

Referenced by Close(), and Query().

SQLHENV TSapDBServer::fEnv [private]

Definition at line 42 of file TSapDBServer.h.

Referenced by Close().

SQLHSTMT TSapDBServer::fStmt [private]

Definition at line 43 of file TSapDBServer.h.

Referenced by Close(), and Query().

SQLHSTMT TSapDBServer::fStmtCnt [private]

Definition at line 44 of file TSapDBServer.h.

Referenced by Close(), and Query().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:46:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1