package com.vci.corba.omd.linkTypeManager;
|
|
|
/**
|
* Generated from IDL interface "LinkTypeService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public abstract class LinkTypeServicePOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.linkTypeManager.LinkTypeServiceOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "getLinkTypeByBtmName", Integer.valueOf(0));
|
m_opsHash.put ( "deleteLinkType", Integer.valueOf(1));
|
m_opsHash.put ( "xml2DB", Integer.valueOf(2));
|
m_opsHash.put ( "executeRepair", Integer.valueOf(3));
|
m_opsHash.put ( "getLinkTypes", Integer.valueOf(4));
|
m_opsHash.put ( "getLTData", Integer.valueOf(5));
|
m_opsHash.put ( "addLinkType", Integer.valueOf(6));
|
m_opsHash.put ( "addLinkTypeNoCache", Integer.valueOf(7));
|
m_opsHash.put ( "deleteLtsAndTables", Integer.valueOf(8));
|
m_opsHash.put ( "deleteLinkTypes", Integer.valueOf(9));
|
m_opsHash.put ( "createView", Integer.valueOf(10));
|
m_opsHash.put ( "modifyLinkType", Integer.valueOf(11));
|
m_opsHash.put ( "createTable", Integer.valueOf(12));
|
m_opsHash.put ( "getLinkType", Integer.valueOf(13));
|
m_opsHash.put ( "deleteLinkTypeNoCache", Integer.valueOf(14));
|
m_opsHash.put ( "getAttributes", Integer.valueOf(15));
|
m_opsHash.put ( "linkTypeConsistencyCheck", Integer.valueOf(16));
|
m_opsHash.put ( "getLTNamesByAPName", Integer.valueOf(17));
|
m_opsHash.put ( "hasData", Integer.valueOf(18));
|
}
|
private String[] ids = {"IDL:com/vci/corba/omd/linkTypeManager/LinkTypeService:1.0"};
|
public com.vci.corba.omd.linkTypeManager.LinkTypeService _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.omd.linkTypeManager.LinkTypeService __r = com.vci.corba.omd.linkTypeManager.LinkTypeServiceHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.omd.linkTypeManager.LinkTypeService _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.omd.linkTypeManager.LinkTypeService __r = com.vci.corba.omd.linkTypeManager.LinkTypeServiceHelper.narrow(__o);
|
return __r;
|
}
|
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
|
throws org.omg.CORBA.SystemException
|
{
|
org.omg.CORBA.portable.OutputStream _out = null;
|
// do something
|
// quick lookup of operation
|
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
|
if ( null == opsIndex )
|
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
|
switch ( opsIndex.intValue() )
|
{
|
case 0: // getLinkTypeByBtmName
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.omd.linkTypeManager.LinkTypeArrayHelper.write(_out,getLinkTypeByBtmName(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // deleteLinkType
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteLinkType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // xml2DB
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(xml2DB(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // executeRepair
|
{
|
try
|
{
|
java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
_out = handler.createReply();
|
com.vci.corba.common.data.WStringArrayHelper.write(_out,executeRepair(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // getLinkTypes
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.omd.linkTypeManager.LinkTypeArrayHelper.write(_out,getLinkTypes());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // getLTData
|
{
|
try
|
{
|
_out = handler.createReply();
|
java.lang.String tmpResult1007 = getLTData();
|
_out.write_wstring( tmpResult1007 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 6: // addLinkType
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(addLinkType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 7: // addLinkTypeNoCache
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(addLinkTypeNoCache(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 8: // deleteLtsAndTables
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType[] _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteLtsAndTables(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 9: // deleteLinkTypes
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType[] _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteLinkTypes(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 10: // createView
|
{
|
try
|
{
|
_out = handler.createReply();
|
_out.write_boolean(createView());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 11: // modifyLinkType
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(modifyLinkType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 12: // createTable
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(createTable(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 13: // getLinkType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.omd.linkTypeManager.LinkTypeHelper.write(_out,getLinkType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 14: // deleteLinkTypeNoCache
|
{
|
try
|
{
|
com.vci.corba.omd.linkTypeManager.LinkType _arg0=com.vci.corba.omd.linkTypeManager.LinkTypeHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteLinkTypeNoCache(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 15: // getAttributes
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.omd.attribpool.AttribItemArrayHelper.write(_out,getAttributes(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 16: // linkTypeConsistencyCheck
|
{
|
try
|
{
|
_out = handler.createReply();
|
com.vci.corba.common.data.WStringArrayHelper.write(_out,linkTypeConsistencyCheck());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 17: // getLTNamesByAPName
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.common.data.WStringArrayHelper.write(_out,getLTNamesByAPName(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 18: // hasData
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(hasData(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
}
|
return _out;
|
}
|
|
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
|
{
|
return ids;
|
}
|
}
|