⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 queryserver.cpp

📁 oracle下调用数据泵接口进行远程数据导出和导入(数据恢复)的CORBA服务
💻 CPP
📖 第 1 页 / 共 5 页
字号:
            STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());            if (_star_stub!=NULL)            {                for(;;)                {                    STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("nTopkSelect", true);                    try                    {                        STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);                        try                        {                            _star_out -> write_string(_star_a0);                            _star_out -> write_long(_star_a1);                            _star_out -> write_short(_star_a2);                        }                        catch(const CORBA::SystemException& _star_ex)                        {                            _star_stub->_STAR_marshalEx(_star_down, _star_ex);                        }                        _star_stub->_STAR_postPrepareHeader(_star_down);                        _star_stub->_STAR_request(_star_down);                        bool _star_uex;                        STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);                        if(_star_uex)                        {                            _star_stub->_STAR_postRemoveHeader(_star_down);                        }                        else                        {                            CORBA::Short _star_r;                            try                            {                                _star_r = _star_in -> read_short();                            }                            catch(const CORBA::SystemException& _star_ex)                            {                                _star_stub->_STAR_unmarshalEx(_star_down, _star_ex);                            }                            _star_stub->_STAR_postRemoveHeader(_star_down);                            return _star_r;                        }                    }                    catch(const STAR::FailureException& _star_ex)                    {                        _star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);                    }                }            }            else            {                throw CORBA::INV_OBJREF();            }        }        catch(const STAR::ExceptionBase& _star_ex)        {            _STAR_handleException(_star_ex, _star_retry);        }    }}//// Operation declare ::IResult::bIsBad//CORBA::BooleanIResult::bIsBad(){    bool _star_retry = true;    while(true)    {        STAR::StubBase_var _star_stubBase = _STAR_getStub();        try        {            STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());            if (_star_stub!=NULL)            {                for(;;)                {                    STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("bIsBad", true);                    try                    {                        _star_stub->_STAR_prePrepareHeader(_star_down);                        _star_stub->_STAR_postPrepareHeader(_star_down);                        _star_stub->_STAR_request(_star_down);                        bool _star_uex;                        STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);                        if(_star_uex)                        {                            _star_stub->_STAR_postRemoveHeader(_star_down);                        }                        else                        {                            CORBA::Boolean _star_r;                            try                            {                                _star_r = _star_in -> read_boolean();                            }                            catch(const CORBA::SystemException& _star_ex)                            {                                _star_stub->_STAR_unmarshalEx(_star_down, _star_ex);                            }                            _star_stub->_STAR_postRemoveHeader(_star_down);                            return _star_r;                        }                    }                    catch(const STAR::FailureException& _star_ex)                    {                        _star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);                    }                }            }            else            {                throw CORBA::INV_OBJREF();            }        }        catch(const STAR::ExceptionBase& _star_ex)        {            _STAR_handleException(_star_ex, _star_retry);        }    }}//// Operation declare ::IResult::strErrorMessage//char*IResult::strErrorMessage(CORBA::Short _star_a0){    bool _star_retry = true;    while(true)    {        STAR::StubBase_var _star_stubBase = _STAR_getStub();        try        {            STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());            if (_star_stub!=NULL)            {                for(;;)                {                    STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("strErrorMessage", true);                    try                    {                        STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);                        try                        {                            _star_out -> write_short(_star_a0);                        }                        catch(const CORBA::SystemException& _star_ex)                        {                            _star_stub->_STAR_marshalEx(_star_down, _star_ex);                        }                        _star_stub->_STAR_postPrepareHeader(_star_down);                        _star_stub->_STAR_request(_star_down);                        bool _star_uex;                        STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);                        if(_star_uex)                        {                            _star_stub->_STAR_postRemoveHeader(_star_down);                        }                        else                        {                            CORBA::String_var _star_r;                            try                            {                                _star_r = _star_in -> read_string();                            }                            catch(const CORBA::SystemException& _star_ex)                            {                                _star_stub->_STAR_unmarshalEx(_star_down, _star_ex);                            }                            _star_stub->_STAR_postRemoveHeader(_star_down);                            return _star_r._retn();                        }                    }                    catch(const STAR::FailureException& _star_ex)                    {                        _star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);                    }                }            }            else            {                throw CORBA::INV_OBJREF();            }        }        catch(const STAR::ExceptionBase& _star_ex)        {            _STAR_handleException(_star_ex, _star_retry);        }    }}//// Interface declare ::IQueryServer//const char* IQueryServer::ids_[] ={    "IDL:IQueryServer:1.0",    "IDL:IRequestCounter:1.0",    "IDL:ILevelControl:1.0",    0};voidSTARDuplicate(IQueryServer_ptr p){    if(p)        p -> _STAR_incRef();}voidSTARRelease(IQueryServer_ptr p){    if(p)        p -> _STAR_decRef();}IQueryServer_ptrIQueryServer::_narrow(CORBA::Object_ptr p){    if(!CORBA::is_nil(p))    {        IQueryServer_ptr v = dynamic_cast<IQueryServer_ptr>(p);        if(v)            return _duplicate(v);        if(p -> _is_a(ids_[0]))        {            IQueryServer_ptr val = new IQueryServer;            val -> _STAR_copyFrom(p);            return val;        }    }    return _nil();}IQueryServer_ptrIQueryServer::_narrow(CORBA::AbstractBase_ptr p){    if(!CORBA::is_nil(p))    {        CORBA::Object_var obj = p -> _to_object();        return _narrow(obj);    }    return _nil();}const char**IQueryServer::_STAR_ids() const{    return ids_;}const char**IQueryServer::_STAR_staticIds(){    return ids_;}voidSTARMarshal(IQueryServer_ptr _star_v, STAR::OutputStreamImpl* _star_out){    _star_out -> write_Object(_star_v);}voidSTARUnmarshal(IQueryServer_ptr& _star_v, STAR::InputStreamImpl* _star_in){    IQueryServer_var old = _star_v;    CORBA::Object_var p = _star_in -> read_Object();    if(!CORBA::is_nil(p))    {        _star_v = new IQueryServer;        _star_v -> _STAR_copyFrom(p);    }    else        _star_v = IQueryServer::_nil();}//// Operation declare ::IQueryServer::strErrorMessage//char*IQueryServer::strErrorMessage(CORBA::Short _star_a0){    bool _star_retry = true;    while(true)    {        STAR::StubBase_var _star_stubBase = _STAR_getStub();        try        {            STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());            if (_star_stub!=NULL)            {                for(;;)                {                    STAR::Downcall_var _star_down = _star_stub->_STAR_createDowncall("strErrorMessage", true);                    try                    {                        STAR::OutputStreamImpl* _star_out = _star_stub->_STAR_prePrepareHeader(_star_down);                        try                        {                            _star_out -> write_short(_star_a0);                        }                        catch(const CORBA::SystemException& _star_ex)                        {                            _star_stub->_STAR_marshalEx(_star_down, _star_ex);                        }                        _star_stub->_STAR_postPrepareHeader(_star_down);                        _star_stub->_STAR_request(_star_down);                        bool _star_uex;                        STAR::InputStreamImpl* _star_in = _star_stub->_STAR_preRemoveHeader(_star_down, _star_uex);                        if(_star_uex)                        {                            _star_stub->_STAR_postRemoveHeader(_star_down);                        }                        else                        {                            CORBA::String_var _star_r;                            try                            {                                _star_r = _star_in -> read_string();                            }                            catch(const CORBA::SystemException& _star_ex)                            {                                _star_stub->_STAR_unmarshalEx(_star_down, _star_ex);                            }                            _star_stub->_STAR_postRemoveHeader(_star_down);                            return _star_r._retn();                        }                    }                    catch(const STAR::FailureException& _star_ex)                    {                        _star_stub->_STAR_handleNetworkFailureException(_star_down, _star_ex);                    }                }            }            else            {                throw CORBA::INV_OBJREF();            }        }        catch(const STAR::ExceptionBase& _star_ex)        {            _STAR_handleException(_star_ex, _star_retry);        }    }}//// Operation declare ::IQueryServer::ResConnect//::IResult_ptrIQueryServer::ResConnect(const char* _star_a0,                         CORBA::Short _star_a1){    bool _star_retry = true;    while(true)    {        STAR::StubBase_var _star_stubBase = _STAR_getStub();        try        {            STAR::MarshalStub_ptr _star_stub = dynamic_cast<STAR::MarshalStub_ptr>(_star_stubBase.in());            if (_star_stub!=NULL)            {                for(;;)                {                    STAR::Downcall_var _star_down = _star_stub->_STAR_cr

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -