package com.vci.corba.omd.attribpool;
|
|
|
/**
|
* Generated from IDL interface "AttPoolService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public abstract class AttPoolServicePOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.omd.attribpool.AttPoolServiceOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "getAttribItemsOutNames", Integer.valueOf(0));
|
m_opsHash.put ( "deleteAbItem", Integer.valueOf(1));
|
m_opsHash.put ( "checkRowIsExists", Integer.valueOf(2));
|
m_opsHash.put ( "deleteAbItemNoCache", Integer.valueOf(3));
|
m_opsHash.put ( "deleteAbItems", Integer.valueOf(4));
|
m_opsHash.put ( "modifyAbItem", Integer.valueOf(5));
|
m_opsHash.put ( "getAttribItemDataType", Integer.valueOf(6));
|
m_opsHash.put ( "addAttribItem", Integer.valueOf(7));
|
m_opsHash.put ( "xml2DB", Integer.valueOf(8));
|
m_opsHash.put ( "getAttribItems", Integer.valueOf(9));
|
m_opsHash.put ( "addAttribItemNoCache", Integer.valueOf(10));
|
m_opsHash.put ( "getAttribItemByName", Integer.valueOf(11));
|
m_opsHash.put ( "getAPData", Integer.valueOf(12));
|
m_opsHash.put ( "getAttribItemsByNames", Integer.valueOf(13));
|
m_opsHash.put ( "getAPNamesByEMName", Integer.valueOf(14));
|
}
|
private String[] ids = {"IDL:com/vci/corba/omd/attribpool/AttPoolService:1.0"};
|
public com.vci.corba.omd.attribpool.AttPoolService _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.omd.attribpool.AttPoolService __r = com.vci.corba.omd.attribpool.AttPoolServiceHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.omd.attribpool.AttPoolService _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.omd.attribpool.AttPoolService __r = com.vci.corba.omd.attribpool.AttPoolServiceHelper.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: // getAttribItemsOutNames
|
{
|
try
|
{
|
java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
java.lang.String _arg1=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.omd.attribpool.AttribItemArrayHelper.write(_out,getAttribItemsOutNames(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // deleteAbItem
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem _arg0=com.vci.corba.omd.attribpool.AttribItemHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteAbItem(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // checkRowIsExists
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(checkRowIsExists(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // deleteAbItemNoCache
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem _arg0=com.vci.corba.omd.attribpool.AttribItemHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteAbItemNoCache(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // deleteAbItems
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem[] _arg0=com.vci.corba.omd.attribpool.AttribItemArrayHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(deleteAbItems(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // modifyAbItem
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem _arg0=com.vci.corba.omd.attribpool.AttribItemHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(modifyAbItem(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 6: // getAttribItemDataType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
java.lang.String tmpResult873 = getAttribItemDataType(_arg0);
|
_out.write_wstring( tmpResult873 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 7: // addAttribItem
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem _arg0=com.vci.corba.omd.attribpool.AttribItemHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(addAttribItem(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 8: // 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 9: // getAttribItems
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItemFilter _arg0=com.vci.corba.omd.attribpool.AttribItemFilterHelper.read(_input);
|
int _arg1=_input.read_long();
|
int _arg2=_input.read_long();
|
_out = handler.createReply();
|
com.vci.corba.omd.attribpool.AttribItemArrayHelper.write(_out,getAttribItems(_arg0,_arg1,_arg2));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 10: // addAttribItemNoCache
|
{
|
try
|
{
|
com.vci.corba.omd.attribpool.AttribItem _arg0=com.vci.corba.omd.attribpool.AttribItemHelper.read(_input);
|
_out = handler.createReply();
|
_out.write_boolean(addAttribItemNoCache(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 11: // getAttribItemByName
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.omd.attribpool.AttribItemHelper.write(_out,getAttribItemByName(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 12: // getAPData
|
{
|
try
|
{
|
_out = handler.createReply();
|
java.lang.String tmpResult874 = getAPData();
|
_out.write_wstring( tmpResult874 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 13: // getAttribItemsByNames
|
{
|
try
|
{
|
java.lang.String[] _arg0=com.vci.corba.common.data.WStringArrayHelper.read(_input);
|
_out = handler.createReply();
|
com.vci.corba.omd.attribpool.AttribItemArrayHelper.write(_out,getAttribItemsByNames(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 14: // getAPNamesByEMName
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.common.data.WStringArrayHelper.write(_out,getAPNamesByEMName(_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;
|
}
|
}
|