summaryrefslogtreecommitdiff
path: root/cpp/src/Freeze/TransactionI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Freeze/TransactionI.h')
-rw-r--r--cpp/src/Freeze/TransactionI.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/cpp/src/Freeze/TransactionI.h b/cpp/src/Freeze/TransactionI.h
index b8e5a9a582d..a44e782bbc0 100644
--- a/cpp/src/Freeze/TransactionI.h
+++ b/cpp/src/Freeze/TransactionI.h
@@ -10,6 +10,7 @@
#ifndef FREEZE_TRANSACTIONI_H
#define FREEZE_TRANSACTIONI_H
+#include <Ice/CommunicatorF.h>
#include <Freeze/Transaction.h>
#include <db_cxx.h>
@@ -27,7 +28,6 @@ public:
};
typedef IceUtil::Handle<PostCompletionCallback> PostCompletionCallbackPtr;
-
class TransactionI : public Transaction
{
public:
@@ -41,12 +41,11 @@ public:
//
// Custom refcounting implementation
//
- virtual void __incRef();
virtual void __decRef();
void setPostCompletionCallback(const PostCompletionCallbackPtr&);
- TransactionI(ConnectionI*);
+ TransactionI(const ConnectionIPtr&);
~TransactionI();
DbTxn*
@@ -55,23 +54,15 @@ public:
return _txn;
}
- const ConnectionI*
- getConnectionI() const
- {
- return _connection;
- }
-
private:
friend class ConnectionI;
- void internalIncRef();
- void internalDecRef();
-
void postCompletion(bool, bool);
- ConnectionI* const _connection;
- Ice::Int _txTrace;
+ const Ice::CommunicatorPtr _communicator;
+ ConnectionIPtr _connection;
+ const Ice::Int _txTrace;
DbTxn* _txn;
PostCompletionCallbackPtr _postCompletionCallback;
};