![]() |
Developers ManualProject homepage |
#include <O3DBIDatabase.h>
Inheritance diagram for O3DBIDatabase:
Public Member Functions | |
O3DBIDatabase () | |
O3DBIDatabase (PC_TCHAR pchUsername, PC_TCHAR pchPasswd, PC_TCHAR pchHost) | |
virtual | ~O3DBIDatabase () |
void | LogOn (PC_TCHAR pchUsername, PC_TCHAR pchPasswd, PC_TCHAR pchHost) |
void | LogOff (void) |
bool | IsConnected (void) const |
bool | IsConnectionValid (void) const |
virtual TO3DBIString | ToString (void) const |
Definition at line 51 of file O3DBIDatabase.h.
|
The standard constructor. Definition at line 20 of file O3DBIDatabase.cpp. |
|
This constructor constructs a new O3DBIDatabase object and connects to an Oracle Database simultanously.
Definition at line 29 of file O3DBIDatabase.cpp. References LogOn(). |
|
The virtual destructor. Definition at line 39 of file O3DBIDatabase.cpp. References LogOff(). |
|
Call this member function to check a connection to an Oracle Database.
Definition at line 108 of file O3DBIDatabase.cpp. |
|
Call this member function to validate a connection.
Definition at line 113 of file O3DBIDatabase.cpp. |
|
Call this member function to close a connection to an Oracle Database. O3DBIDatabase::LogOff is also called by the destructor, if a session was not released before. Definition at line 91 of file O3DBIDatabase.cpp. References TO3DBIString, TOCIErrorcode, and TOCIResult. Referenced by ~O3DBIDatabase(). |
|
Call this member function to create a simple logon session.
try { // Try to connect to data base O3DBIDatabase db; db.LogOn(_T("Scott"), _T("Tiger"), _T("oradb")); } catch (O3DBIException* pEx) { // Print error information on std out ::_tprintf(_T("Context: %s - Errorcode: %d\n%s\n"), pEx->GetFailedMethodName(), pEx->GetErrorNumber(), pEx->GetErrorText()); delete pEx; } Definition at line 61 of file O3DBIDatabase.cpp. References TO3DBIString, TOCIErrorcode, and TOCIResult. Referenced by O3DBIDatabase(). |
|
This member function returns a string that "textually represents" this object.
Reimplemented from O3DBIObject. Definition at line 118 of file O3DBIDatabase.cpp. References TO3DBIString. |
|
Generated on Sun Jan 23 11:36:45 2005 for Oracle Object Oriented Database Interface (O3DBI) by
![]() |