summaryrefslogtreecommitdiff
path: root/cpp/demo/Database/Oracle/occi/EmpI.h
blob: e33504ba8290a7b3f91f760cd4c6f5219469d9b6 (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
// **********************************************************************
//
// Copyright (c) 2003-2007 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 EMPI_H
#define EMPI_H

#include <Ice/Ice.h>
#include <DeptFactoryI.h>
#include <HR.h>
#include <occi.h>
#include <DbTypes.h>
#include <Util.h>

class EmpI : public HR::Emp
{
public:

    EmpI(const oracle::occi::RefAny&, const ConnectionHolderPtr&, const DeptFactoryIPtr&);
  
    virtual HR::EmpDesc getDesc(const Ice::Current&);
    virtual void updateField(const std::string&, const std::string&, const Ice::Current&);
    virtual void updateMgr(int, const Ice::Current&);
    virtual void updateDept(int, const Ice::Current&);
  
    virtual void remove(const Ice::Current&);

private:
    
    const oracle::occi::Ref<EMP_T> _ref;
    const ConnectionHolderPtr _conh;
    const DeptFactoryIPtr _factory;
};

#endif