diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-08-10 18:36:30 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-08-10 18:36:30 +0000 |
commit | 667420c66b32e2200fd15c57e108a35d40499d48 (patch) | |
tree | 11c38ec276c28932ce631189954d25472031a2cc /cpp/demo/Database/Oracle/proc/DeptI.h | |
parent | remove redundant batch labels (diff) | |
download | ice-667420c66b32e2200fd15c57e108a35d40499d48.tar.bz2 ice-667420c66b32e2200fd15c57e108a35d40499d48.tar.xz ice-667420c66b32e2200fd15c57e108a35d40499d48.zip |
Oracle Pro*C demo
Diffstat (limited to 'cpp/demo/Database/Oracle/proc/DeptI.h')
-rw-r--r-- | cpp/demo/Database/Oracle/proc/DeptI.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cpp/demo/Database/Oracle/proc/DeptI.h b/cpp/demo/Database/Oracle/proc/DeptI.h new file mode 100644 index 00000000000..57ab29e932b --- /dev/null +++ b/cpp/demo/Database/Oracle/proc/DeptI.h @@ -0,0 +1,38 @@ +// ********************************************************************** +// +// 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 DEPTI_H +#define DEPTI_H + +#include <HR.h> +#include <CurrentSqlContext.h> + +class DeptI : public HR::Dept +{ +public: + + DeptI(const CurrentSqlContext&, const std::string&); + + virtual void ice_ping(const Ice::Current&); + + virtual HR::EmpPrx createEmp(int, const HR::EmpDesc&, const Ice::Current&); + + virtual HR::DeptDesc getDesc(const Ice::Current&); + virtual void updateDesc(const HR::DeptDesc& newDesc, const Ice::Current&); + virtual void remove(const Ice::Current&); + + virtual HR::EmpPrxSeq findAll(const Ice::Current&); + virtual HR::EmpPrxSeq findByName(const std::string&, const Ice::Current&); + +private: + const CurrentSqlContext _currentCtx; + const std::string _empCategory; +}; + +#endif |