|
Public Member Functions |
| DBConnect () |
| ~DBConnect () |
void | init (RString testtable, int numberOfTestRecords, RConnection connection=Nil,::acdk::io::RPrintWriter out=System::out) |
RString | getURL () |
bool | getStatus () |
RString | getTestTable () |
void | setTestTable (RString table) |
int | getNumberOfTestRecords () |
void | setNumberOfTestRecords (int newVal) |
jlong | getStartTime () |
bool | getTestSuccessful () |
bool | connect (RString url) |
void | execute (RString sql) |
| Send SQL string to Database.
|
void | executeUpdate (RString sql) |
| Send SQL string to Database for INSERT, UPDATE, DELETE.
|
RResultSet | executeQuery (RString sql) |
| Send SQL string to Database.
|
virtual void | run () |
void | println (RString message) |
void | print (RString message) |
Static Public Member Functions |
void | loadDriver (RString driverClassName) |
Private Member Functions |
void | setStatus (bool stat) |
| Status can only be set by member-functions.
|
void | setURL (RString url) |
| URL will only be set by connect.
|
void | setStartTime (jlong starttime) |
void | setTestSuccessful (bool stat) |
Private Attributes |
RString | _url |
| ODBC connection url.
|
bool | _status |
| set if a connection is established at present
|
RDriver | _driver |
| The Driver.
|
RConnection | _connection |
| The Connection.
|
::acdk::util::RProperties | _connectionProperties |
| The Properties acdk::lang::Object.
|
::acdk::io::RPrintWriter | _out |
| Textoutput will be passed to this PrintWriter.
|
RString | _testTable |
| Tablename for Testing.
|
int | _numberOfTestRecords |
| The total Number of records to be inserted by the test.
|
jlong | _starttime |
| Start-Timestamp of Test.
|
int | _sizeOfTimeStamp |
| Lenght of Timestamp in output.
|
bool | _testSuccessful |
| indicates success of Test
|