Definition at line 317 of file SQLDriver.cpp.
◆ clear()
void SQLDriverPool::clear |
( |
SQLDriver * | pDriver | ) |
|
Definition at line 396 of file SQLDriver.cpp.
398{
399 PointerArray::Iterator it = __drivers.find(pSQLDriver);
401 __drivers.erase(it);
402
404 try {
405 pSQLDriver->close();
407 pSQLDriver,
408 pSQLDriver->driverName().data(),
409 pSQLDriver->fileName().data()
410 );
411 }
412 catch (Exception* _e) {
413 e = _e;
414 }
415
416 delete pSQLDriver;
417
419 throw e;
420 }
421}
#define __DCL_TRACE3(fmt, arg1, arg2, arg3)
#define __DCL_ASSERT(expr)
◆ clearAll()
void SQLDriverPool::clearAll |
( |
| ) |
|
Definition at line 365 of file SQLDriver.cpp.
366{
367
368 SQLDriver* pSQLDriver =
NULL;
369 for(PointerArray::Iterator it = __drivers.begin();
370 it != __drivers.end(); it++) {
371 pSQLDriver = (SQLDriver*)(*it);
373
374 try {
377 pSQLDriver,
379 pSQLDriver->fileName().data()
380 );
381 }
382 catch (Exception* e) {
384 pSQLDriver,
386 );
388 }
389
390 delete pSQLDriver;
391 }
392
393 __drivers.clear();
394}
#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 330 of file SQLDriver.cpp.
330{ return __drivers.isEmpty(); }
The documentation for this class was generated from the following file: