summaryrefslogtreecommitdiff
path: root/cpp/demo/Database/Oracle/proc/DeptFactoryI.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Database/Oracle/proc/DeptFactoryI.h')
-rw-r--r--cpp/demo/Database/Oracle/proc/DeptFactoryI.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp/demo/Database/Oracle/proc/DeptFactoryI.h b/cpp/demo/Database/Oracle/proc/DeptFactoryI.h
new file mode 100644
index 00000000000..a32f981c832
--- /dev/null
+++ b/cpp/demo/Database/Oracle/proc/DeptFactoryI.h
@@ -0,0 +1,32 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#ifndef DEPT_FACTORYI_H
+#define DEPT_FACTORYI_H
+
+#include <HR.h>
+#include <CurrentSqlContext.h>
+
+class DeptFactoryI : public HR::DeptFactory
+{
+public:
+
+ DeptFactoryI(const CurrentSqlContext&, const std::string&);
+
+ virtual HR::DeptPrx createDept(int, const HR::DeptDesc&, const Ice::Current&);
+
+ virtual HR::DeptPrxSeq findAll(const Ice::Current&);
+ virtual HR::DeptPrxSeq findByName(const std::string&, const Ice::Current&);
+
+private:
+ const CurrentSqlContext _currentCtx;
+ const std::string _deptCategory;
+};
+
+#endif