blob: 60034433cdca78e1bad2e4934733e31941bc91da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// **********************************************************************
//
// Copyright (c) 2003-2015 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 <Ice/Ice.h>
#include <DeptFactoryI.h>
#include <HR.h>
#include <occi.h>
#include <DbTypes.h>
#include <Util.h>
class DeptI : public HR::Dept
{
public:
DeptI(const oracle::occi::RefAny&, const ConnectionHolderPtr&, const DeptFactoryIPtr&);
virtual HR::EmpPrx createEmp(int, const HR::EmpDesc&, const Ice::Current&);
virtual HR::DeptDesc getDesc(const Ice::Current&);
virtual void updateField(const std::string&, const std::string&, 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 oracle::occi::Ref<DEPT_T> _ref;
const ConnectionHolderPtr _conh;
const DeptFactoryIPtr _factory;
};
#endif
|