Definition at line 313 of file SQLDriver.cpp.
◆ clear()
| void SQLDriverPool::clear |
( |
SQLDriver * | pDriver | ) |
|
Definition at line 392 of file SQLDriver.cpp.
394{
395 PointerArray::Iterator it = __drivers.find(driver);
397 __drivers.erase(it);
398
400 try {
401 driver->close();
403 driver,
404 driver->driverName().data(),
405 driver->fileName().data()
406 );
407 }
408 catch (Exception* _e) {
409 e = _e;
410 }
411
412 delete driver;
413
415 throw e;
416 }
417}
#define __DCL_TRACE3(fmt, arg1, arg2, arg3)
#define __DCL_ASSERT(expr)
◆ clearAll()
| void SQLDriverPool::clearAll |
( |
| ) |
|
Definition at line 361 of file SQLDriver.cpp.
362{
363
364 SQLDriver* driver =
NULL;
365 for(PointerArray::Iterator it = __drivers.begin();
366 it != __drivers.end(); it++) {
367 driver = (SQLDriver*)(*it);
369
370 try {
373 driver,
375 driver->fileName().data()
376 );
377 }
378 catch (Exception* e) {
380 driver,
382 );
384 }
385
386 delete driver;
387 }
388
389 __drivers.clear();
390}
#define __DCL_TRACE2(fmt, arg1, arg2)
virtual String toString() const
void close() __DCL_THROWS1(SQLDriverException *)
const String & driverName() const
◆ getDriver()
| SQLDriver * SQLDriverPool::getDriver |
( |
const String & | _name | ) |
|
◆ isEmpty()
| bool SQLDriverPool::isEmpty |
( |
| ) |
const |
|
inline |
Definition at line 326 of file SQLDriver.cpp.
326{ return __drivers.isEmpty(); }
The documentation for this class was generated from the following file: