#include <TSapDBServer.h>
Inheritance diagram for TSapDBServer:

Public Member Functions | |
| TSapDBServer (const char *db, const char *uid, const char *pw) | |
| ~TSapDBServer () | |
| void | Close (Option_t *opt="") |
| TSQLResult * | Query (const char *sql) |
| Int_t | SelectDataBase (const char *dbname) |
| TSQLResult * | GetDataBases (const char *wild=0) |
| TSQLResult * | GetTables (const char *dbname, const char *wild=0) |
| TSQLResult * | GetColumns (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 |
Definition at line 38 of file TSapDBServer.h.
| TSapDBServer::TSapDBServer | ( | const char * | db, | |
| const char * | uid, | |||
| const char * | pw | |||
| ) |
| TSapDBServer::~TSapDBServer | ( | ) |
| Int_t TSapDBServer::printSQLError | ( | SQLHDBC | hdbc, | |
| SQLHSTMT | hstmt | |||
| ) | [static, private] |
| 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().
SQLHDBC TSapDBServer::fSapDB [private] |
SQLHENV TSapDBServer::fEnv [private] |
SQLHSTMT TSapDBServer::fStmt [private] |
SQLHSTMT TSapDBServer::fStmtCnt [private] |
1.5.1