| 399 | }; |
| 400 | |
| 401 | static JTransaction* checkTranIntf(StableAttachmentPart* sAtt, JTransaction* jt, jrd_tra* tra) |
| 402 | { |
| 403 | if (jt && !tra) |
| 404 | { |
| 405 | jt->setHandle(NULL); |
| 406 | jt->release(); |
| 407 | jt = NULL; |
| 408 | } |
| 409 | else if (tra && !jt) |
| 410 | { |
| 411 | jt = tra->getInterface(false); |
| 412 | if (jt) |
| 413 | tra->tra_flags &= ~TRA_own_interface; |
| 414 | else |
| 415 | { |
| 416 | jt = FB_NEW JTransaction(tra, sAtt); |
| 417 | tra->setInterface(jt); |
| 418 | jt->addRef(); |
| 419 | } |
| 420 | } |
| 421 | else if (tra && jt) |
| 422 | { |
| 423 | jt->setHandle(tra); |
| 424 | tra->setInterface(jt); |
| 425 | } |
| 426 | |
| 427 | return jt; |
| 428 | }; |
| 429 | |
| 430 | class EngineFactory : public AutoIface<IPluginFactoryImpl<EngineFactory, CheckStatusWrapper> > |
| 431 | { |
no test coverage detected