package com.vci.corba.cache;
|
|
|
/**
|
* Generated from IDL interface "CacheService".
|
*
|
* @author JacORB IDL compiler V 3.9
|
* @version generated at 2022-12-23 15:42:24
|
*/
|
|
public abstract class CacheServicePOA
|
extends org.omg.PortableServer.Servant
|
implements org.omg.CORBA.portable.InvokeHandler, com.vci.corba.cache.CacheServiceOperations
|
{
|
static private final java.util.HashMap<String,Integer> m_opsHash = new java.util.HashMap<String,Integer>();
|
static
|
{
|
m_opsHash.put ( "recordModifyInfo", Integer.valueOf(0));
|
m_opsHash.put ( "getRecordByType", Integer.valueOf(1));
|
m_opsHash.put ( "resetObjType", Integer.valueOf(2));
|
m_opsHash.put ( "getDBCurrentTime", Integer.valueOf(3));
|
m_opsHash.put ( "clearModifyRecordByType", Integer.valueOf(4));
|
m_opsHash.put ( "clearModifyRecord", Integer.valueOf(5));
|
m_opsHash.put ( "getAllRecordByType", Integer.valueOf(6));
|
m_opsHash.put ( "reloadCache", Integer.valueOf(7));
|
}
|
private String[] ids = {"IDL:com/vci/corba/cache/CacheService:1.0"};
|
public com.vci.corba.cache.CacheService _this()
|
{
|
org.omg.CORBA.Object __o = _this_object() ;
|
com.vci.corba.cache.CacheService __r = com.vci.corba.cache.CacheServiceHelper.narrow(__o);
|
return __r;
|
}
|
public com.vci.corba.cache.CacheService _this(org.omg.CORBA.ORB orb)
|
{
|
org.omg.CORBA.Object __o = _this_object(orb) ;
|
com.vci.corba.cache.CacheService __r = com.vci.corba.cache.CacheServiceHelper.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: // recordModifyInfo
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
java.lang.String _arg1=_input.read_wstring();
|
java.lang.String _arg2=_input.read_wstring();
|
_out = handler.createReply();
|
java.lang.String tmpResult1119 = recordModifyInfo(_arg0,_arg1,_arg2);
|
_out.write_wstring( tmpResult1119 );
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 1: // getRecordByType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
long _arg1=_input.read_longlong();
|
_out = handler.createReply();
|
com.vci.corba.cache.PLCacheRecordArrayHelper.write(_out,getRecordByType(_arg0,_arg1));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 2: // resetObjType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
resetObjType(_arg0);
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 3: // getDBCurrentTime
|
{
|
try
|
{
|
_out = handler.createReply();
|
_out.write_longlong(getDBCurrentTime());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 4: // clearModifyRecordByType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
_out.write_boolean(clearModifyRecordByType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 5: // clearModifyRecord
|
{
|
try
|
{
|
_out = handler.createReply();
|
_out.write_boolean(clearModifyRecord());
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 6: // getAllRecordByType
|
{
|
try
|
{
|
java.lang.String _arg0=_input.read_wstring();
|
_out = handler.createReply();
|
com.vci.corba.cache.PLCacheRecordArrayHelper.write(_out,getAllRecordByType(_arg0));
|
}
|
catch(com.vci.corba.common.VCIError _ex0)
|
{
|
_out = handler.createExceptionReply();
|
com.vci.corba.common.VCIErrorHelper.write(_out, _ex0);
|
}
|
break;
|
}
|
case 7: // reloadCache
|
{
|
try
|
{
|
_out = handler.createReply();
|
_out.write_boolean(reloadCache());
|
}
|
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;
|
}
|
}
|